stm32f10x_gpio.h 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380
  1. /**
  2. ******************************************************************************
  3. * @file stm32f10x_gpio.h
  4. * @author MCD Application Team
  5. * @version V3.3.0
  6. * @date 04/16/2010
  7. * @brief This file contains all the functions prototypes for the GPIO
  8. * firmware library.
  9. ******************************************************************************
  10. * @copy
  11. *
  12. * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
  13. * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
  14. * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
  15. * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
  16. * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
  17. * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
  18. *
  19. * <h2><center>&copy; COPYRIGHT 2010 STMicroelectronics</center></h2>
  20. */
  21. /* Define to prevent recursive inclusion -------------------------------------*/
  22. #ifndef __STM32F10x_GPIO_H
  23. #define __STM32F10x_GPIO_H
  24. #ifdef __cplusplus
  25. extern "C" {
  26. #endif
  27. /* Includes ------------------------------------------------------------------*/
  28. #include "stm32f10x.h"
  29. /** @addtogroup STM32F10x_StdPeriph_Driver
  30. * @{
  31. */
  32. /** @addtogroup GPIO
  33. * @{
  34. */
  35. /** @defgroup GPIO_Exported_Types
  36. * @{
  37. */
  38. #define IS_GPIO_ALL_PERIPH(PERIPH) (((PERIPH) == GPIOA) || \
  39. ((PERIPH) == GPIOB) || \
  40. ((PERIPH) == GPIOC) || \
  41. ((PERIPH) == GPIOD) || \
  42. ((PERIPH) == GPIOE) || \
  43. ((PERIPH) == GPIOF) || \
  44. ((PERIPH) == GPIOG))
  45. /**
  46. * @brief Output Maximum frequency selection
  47. */
  48. typedef enum
  49. {
  50. GPIO_Speed_10MHz = 1,
  51. GPIO_Speed_2MHz,
  52. GPIO_Speed_50MHz
  53. }GPIOSpeed_TypeDef;
  54. #define IS_GPIO_SPEED(SPEED) (((SPEED) == GPIO_Speed_10MHz) || ((SPEED) == GPIO_Speed_2MHz) || \
  55. ((SPEED) == GPIO_Speed_50MHz))
  56. /**
  57. * @brief Configuration Mode enumeration
  58. */
  59. typedef enum
  60. { GPIO_Mode_AIN = 0x0,
  61. GPIO_Mode_IN_FLOATING = 0x04,
  62. GPIO_Mode_IPD = 0x28,
  63. GPIO_Mode_IPU = 0x48,
  64. GPIO_Mode_Out_OD = 0x14,
  65. GPIO_Mode_Out_PP = 0x10,
  66. GPIO_Mode_AF_OD = 0x1C,
  67. GPIO_Mode_AF_PP = 0x18
  68. }GPIOMode_TypeDef;
  69. #define IS_GPIO_MODE(MODE) (((MODE) == GPIO_Mode_AIN) || ((MODE) == GPIO_Mode_IN_FLOATING) || \
  70. ((MODE) == GPIO_Mode_IPD) || ((MODE) == GPIO_Mode_IPU) || \
  71. ((MODE) == GPIO_Mode_Out_OD) || ((MODE) == GPIO_Mode_Out_PP) || \
  72. ((MODE) == GPIO_Mode_AF_OD) || ((MODE) == GPIO_Mode_AF_PP))
  73. /**
  74. * @brief GPIO Init structure definition
  75. */
  76. typedef struct
  77. {
  78. uint16_t GPIO_Pin; /*!< Specifies the GPIO pins to be configured.
  79. This parameter can be any value of @ref GPIO_pins_define */
  80. GPIOSpeed_TypeDef GPIO_Speed; /*!< Specifies the speed for the selected pins.
  81. This parameter can be a value of @ref GPIOSpeed_TypeDef */
  82. GPIOMode_TypeDef GPIO_Mode; /*!< Specifies the operating mode for the selected pins.
  83. This parameter can be a value of @ref GPIOMode_TypeDef */
  84. }GPIO_InitTypeDef;
  85. /**
  86. * @brief Bit_SET and Bit_RESET enumeration
  87. */
  88. typedef enum
  89. { Bit_RESET = 0,
  90. Bit_SET
  91. }BitAction;
  92. #define IS_GPIO_BIT_ACTION(ACTION) (((ACTION) == Bit_RESET) || ((ACTION) == Bit_SET))
  93. /**
  94. * @}
  95. */
  96. /** @defgroup GPIO_Exported_Constants
  97. * @{
  98. */
  99. /** @defgroup GPIO_pins_define
  100. * @{
  101. */
  102. #define GPIO_Pin_0 ((uint16_t)0x0001) /*!< Pin 0 selected */
  103. #define GPIO_Pin_1 ((uint16_t)0x0002) /*!< Pin 1 selected */
  104. #define GPIO_Pin_2 ((uint16_t)0x0004) /*!< Pin 2 selected */
  105. #define GPIO_Pin_3 ((uint16_t)0x0008) /*!< Pin 3 selected */
  106. #define GPIO_Pin_4 ((uint16_t)0x0010) /*!< Pin 4 selected */
  107. #define GPIO_Pin_5 ((uint16_t)0x0020) /*!< Pin 5 selected */
  108. #define GPIO_Pin_6 ((uint16_t)0x0040) /*!< Pin 6 selected */
  109. #define GPIO_Pin_7 ((uint16_t)0x0080) /*!< Pin 7 selected */
  110. #define GPIO_Pin_8 ((uint16_t)0x0100) /*!< Pin 8 selected */
  111. #define GPIO_Pin_9 ((uint16_t)0x0200) /*!< Pin 9 selected */
  112. #define GPIO_Pin_10 ((uint16_t)0x0400) /*!< Pin 10 selected */
  113. #define GPIO_Pin_11 ((uint16_t)0x0800) /*!< Pin 11 selected */
  114. #define GPIO_Pin_12 ((uint16_t)0x1000) /*!< Pin 12 selected */
  115. #define GPIO_Pin_13 ((uint16_t)0x2000) /*!< Pin 13 selected */
  116. #define GPIO_Pin_14 ((uint16_t)0x4000) /*!< Pin 14 selected */
  117. #define GPIO_Pin_15 ((uint16_t)0x8000) /*!< Pin 15 selected */
  118. #define GPIO_Pin_All ((uint16_t)0xFFFF) /*!< All pins selected */
  119. #define IS_GPIO_PIN(PIN) ((((PIN) & (uint16_t)0x00) == 0x00) && ((PIN) != (uint16_t)0x00))
  120. #define IS_GET_GPIO_PIN(PIN) (((PIN) == GPIO_Pin_0) || \
  121. ((PIN) == GPIO_Pin_1) || \
  122. ((PIN) == GPIO_Pin_2) || \
  123. ((PIN) == GPIO_Pin_3) || \
  124. ((PIN) == GPIO_Pin_4) || \
  125. ((PIN) == GPIO_Pin_5) || \
  126. ((PIN) == GPIO_Pin_6) || \
  127. ((PIN) == GPIO_Pin_7) || \
  128. ((PIN) == GPIO_Pin_8) || \
  129. ((PIN) == GPIO_Pin_9) || \
  130. ((PIN) == GPIO_Pin_10) || \
  131. ((PIN) == GPIO_Pin_11) || \
  132. ((PIN) == GPIO_Pin_12) || \
  133. ((PIN) == GPIO_Pin_13) || \
  134. ((PIN) == GPIO_Pin_14) || \
  135. ((PIN) == GPIO_Pin_15))
  136. /**
  137. * @}
  138. */
  139. /** @defgroup GPIO_Remap_define
  140. * @{
  141. */
  142. #define GPIO_Remap_SPI1 ((uint32_t)0x00000001) /*!< SPI1 Alternate Function mapping */
  143. #define GPIO_Remap_I2C1 ((uint32_t)0x00000002) /*!< I2C1 Alternate Function mapping */
  144. #define GPIO_Remap_USART1 ((uint32_t)0x00000004) /*!< USART1 Alternate Function mapping */
  145. #define GPIO_Remap_USART2 ((uint32_t)0x00000008) /*!< USART2 Alternate Function mapping */
  146. #define GPIO_PartialRemap_USART3 ((uint32_t)0x00140010) /*!< USART3 Partial Alternate Function mapping */
  147. #define GPIO_FullRemap_USART3 ((uint32_t)0x00140030) /*!< USART3 Full Alternate Function mapping */
  148. #define GPIO_PartialRemap_TIM1 ((uint32_t)0x00160040) /*!< TIM1 Partial Alternate Function mapping */
  149. #define GPIO_FullRemap_TIM1 ((uint32_t)0x001600C0) /*!< TIM1 Full Alternate Function mapping */
  150. #define GPIO_PartialRemap1_TIM2 ((uint32_t)0x00180100) /*!< TIM2 Partial1 Alternate Function mapping */
  151. #define GPIO_PartialRemap2_TIM2 ((uint32_t)0x00180200) /*!< TIM2 Partial2 Alternate Function mapping */
  152. #define GPIO_FullRemap_TIM2 ((uint32_t)0x00180300) /*!< TIM2 Full Alternate Function mapping */
  153. #define GPIO_PartialRemap_TIM3 ((uint32_t)0x001A0800) /*!< TIM3 Partial Alternate Function mapping */
  154. #define GPIO_FullRemap_TIM3 ((uint32_t)0x001A0C00) /*!< TIM3 Full Alternate Function mapping */
  155. #define GPIO_Remap_TIM4 ((uint32_t)0x00001000) /*!< TIM4 Alternate Function mapping */
  156. #define GPIO_Remap1_CAN1 ((uint32_t)0x001D4000) /*!< CAN1 Alternate Function mapping */
  157. #define GPIO_Remap2_CAN1 ((uint32_t)0x001D6000) /*!< CAN1 Alternate Function mapping */
  158. #define GPIO_Remap_PD01 ((uint32_t)0x00008000) /*!< PD01 Alternate Function mapping */
  159. #define GPIO_Remap_TIM5CH4_LSI ((uint32_t)0x00200001) /*!< LSI connected to TIM5 Channel4 input capture for calibration */
  160. #define GPIO_Remap_ADC1_ETRGINJ ((uint32_t)0x00200002) /*!< ADC1 External Trigger Injected Conversion remapping */
  161. #define GPIO_Remap_ADC1_ETRGREG ((uint32_t)0x00200004) /*!< ADC1 External Trigger Regular Conversion remapping */
  162. #define GPIO_Remap_ADC2_ETRGINJ ((uint32_t)0x00200008) /*!< ADC2 External Trigger Injected Conversion remapping */
  163. #define GPIO_Remap_ADC2_ETRGREG ((uint32_t)0x00200010) /*!< ADC2 External Trigger Regular Conversion remapping */
  164. #define GPIO_Remap_ETH ((uint32_t)0x00200020) /*!< Ethernet remapping (only for Connectivity line devices) */
  165. #define GPIO_Remap_CAN2 ((uint32_t)0x00200040) /*!< CAN2 remapping (only for Connectivity line devices) */
  166. #define GPIO_Remap_SWJ_NoJTRST ((uint32_t)0x00300100) /*!< Full SWJ Enabled (JTAG-DP + SW-DP) but without JTRST */
  167. #define GPIO_Remap_SWJ_JTAGDisable ((uint32_t)0x00300200) /*!< JTAG-DP Disabled and SW-DP Enabled */
  168. #define GPIO_Remap_SWJ_Disable ((uint32_t)0x00300400) /*!< Full SWJ Disabled (JTAG-DP + SW-DP) */
  169. #define GPIO_Remap_SPI3 ((uint32_t)0x00201000) /*!< SPI3/I2S3 Alternate Function mapping (only for Connectivity line devices) */
  170. #define GPIO_Remap_TIM2ITR1_PTP_SOF ((uint32_t)0x00202000) /*!< Ethernet PTP output or USB OTG SOF (Start of Frame) connected
  171. to TIM2 Internal Trigger 1 for calibration
  172. (only for Connectivity line devices) */
  173. #define GPIO_Remap_PTP_PPS ((uint32_t)0x00204000) /*!< Ethernet MAC PPS_PTS output on PB05 (only for Connectivity line devices) */
  174. #define GPIO_Remap_TIM15 ((uint32_t)0x80000001) /*!< TIM15 Alternate Function mapping (only for Value line devices) */
  175. #define GPIO_Remap_TIM16 ((uint32_t)0x80000002) /*!< TIM16 Alternate Function mapping (only for Value line devices) */
  176. #define GPIO_Remap_TIM17 ((uint32_t)0x80000004) /*!< TIM17 Alternate Function mapping (only for Value line devices) */
  177. #define GPIO_Remap_CEC ((uint32_t)0x80000008) /*!< CEC Alternate Function mapping (only for Value line devices) */
  178. #define GPIO_Remap_TIM1_DMA ((uint32_t)0x80000010) /*!< TIM1 DMA requests mapping (only for Value line devices) */
  179. #define GPIO_Remap_TIM9 ((uint32_t)0x80000020) /*!< TIM9 Alternate Function mapping (only for XL-density devices) */
  180. #define GPIO_Remap_TIM10 ((uint32_t)0x80000040) /*!< TIM10 Alternate Function mapping (only for XL-density devices) */
  181. #define GPIO_Remap_TIM11 ((uint32_t)0x80000080) /*!< TIM11 Alternate Function mapping (only for XL-density devices) */
  182. #define GPIO_Remap_TIM13 ((uint32_t)0x80000100) /*!< TIM13 Alternate Function mapping (only for XL-density devices) */
  183. #define GPIO_Remap_TIM14 ((uint32_t)0x80000200) /*!< TIM14 Alternate Function mapping (only for XL-density devices) */
  184. #define GPIO_Remap_FSMC_NADV ((uint32_t)0x80000400) /*!< FSMC_NADV Alternate Function mapping (only for XL-density devices) */
  185. #define IS_GPIO_REMAP(REMAP) (((REMAP) == GPIO_Remap_SPI1) || ((REMAP) == GPIO_Remap_I2C1) || \
  186. ((REMAP) == GPIO_Remap_USART1) || ((REMAP) == GPIO_Remap_USART2) || \
  187. ((REMAP) == GPIO_PartialRemap_USART3) || ((REMAP) == GPIO_FullRemap_USART3) || \
  188. ((REMAP) == GPIO_PartialRemap_TIM1) || ((REMAP) == GPIO_FullRemap_TIM1) || \
  189. ((REMAP) == GPIO_PartialRemap1_TIM2) || ((REMAP) == GPIO_PartialRemap2_TIM2) || \
  190. ((REMAP) == GPIO_FullRemap_TIM2) || ((REMAP) == GPIO_PartialRemap_TIM3) || \
  191. ((REMAP) == GPIO_FullRemap_TIM3) || ((REMAP) == GPIO_Remap_TIM4) || \
  192. ((REMAP) == GPIO_Remap1_CAN1) || ((REMAP) == GPIO_Remap2_CAN1) || \
  193. ((REMAP) == GPIO_Remap_PD01) || ((REMAP) == GPIO_Remap_TIM5CH4_LSI) || \
  194. ((REMAP) == GPIO_Remap_ADC1_ETRGINJ) ||((REMAP) == GPIO_Remap_ADC1_ETRGREG) || \
  195. ((REMAP) == GPIO_Remap_ADC2_ETRGINJ) ||((REMAP) == GPIO_Remap_ADC2_ETRGREG) || \
  196. ((REMAP) == GPIO_Remap_ETH) ||((REMAP) == GPIO_Remap_CAN2) || \
  197. ((REMAP) == GPIO_Remap_SWJ_NoJTRST) || ((REMAP) == GPIO_Remap_SWJ_JTAGDisable) || \
  198. ((REMAP) == GPIO_Remap_SWJ_Disable)|| ((REMAP) == GPIO_Remap_SPI3) || \
  199. ((REMAP) == GPIO_Remap_TIM2ITR1_PTP_SOF) || ((REMAP) == GPIO_Remap_PTP_PPS) || \
  200. ((REMAP) == GPIO_Remap_TIM15) || ((REMAP) == GPIO_Remap_TIM16) || \
  201. ((REMAP) == GPIO_Remap_TIM17) || ((REMAP) == GPIO_Remap_CEC) || \
  202. ((REMAP) == GPIO_Remap_TIM1_DMA) || ((REMAP) == GPIO_Remap_TIM9) || \
  203. ((REMAP) == GPIO_Remap_TIM10) || ((REMAP) == GPIO_Remap_TIM11) || \
  204. ((REMAP) == GPIO_Remap_TIM13) || ((REMAP) == GPIO_Remap_TIM14) || \
  205. ((REMAP) == GPIO_Remap_FSMC_NADV))
  206. /**
  207. * @}
  208. */
  209. /** @defgroup GPIO_Port_Sources
  210. * @{
  211. */
  212. #define GPIO_PortSourceGPIOA ((uint8_t)0x00)
  213. #define GPIO_PortSourceGPIOB ((uint8_t)0x01)
  214. #define GPIO_PortSourceGPIOC ((uint8_t)0x02)
  215. #define GPIO_PortSourceGPIOD ((uint8_t)0x03)
  216. #define GPIO_PortSourceGPIOE ((uint8_t)0x04)
  217. #define GPIO_PortSourceGPIOF ((uint8_t)0x05)
  218. #define GPIO_PortSourceGPIOG ((uint8_t)0x06)
  219. #define IS_GPIO_EVENTOUT_PORT_SOURCE(PORTSOURCE) (((PORTSOURCE) == GPIO_PortSourceGPIOA) || \
  220. ((PORTSOURCE) == GPIO_PortSourceGPIOB) || \
  221. ((PORTSOURCE) == GPIO_PortSourceGPIOC) || \
  222. ((PORTSOURCE) == GPIO_PortSourceGPIOD) || \
  223. ((PORTSOURCE) == GPIO_PortSourceGPIOE))
  224. #define IS_GPIO_EXTI_PORT_SOURCE(PORTSOURCE) (((PORTSOURCE) == GPIO_PortSourceGPIOA) || \
  225. ((PORTSOURCE) == GPIO_PortSourceGPIOB) || \
  226. ((PORTSOURCE) == GPIO_PortSourceGPIOC) || \
  227. ((PORTSOURCE) == GPIO_PortSourceGPIOD) || \
  228. ((PORTSOURCE) == GPIO_PortSourceGPIOE) || \
  229. ((PORTSOURCE) == GPIO_PortSourceGPIOF) || \
  230. ((PORTSOURCE) == GPIO_PortSourceGPIOG))
  231. /**
  232. * @}
  233. */
  234. /** @defgroup GPIO_Pin_sources
  235. * @{
  236. */
  237. #define GPIO_PinSource0 ((uint8_t)0x00)
  238. #define GPIO_PinSource1 ((uint8_t)0x01)
  239. #define GPIO_PinSource2 ((uint8_t)0x02)
  240. #define GPIO_PinSource3 ((uint8_t)0x03)
  241. #define GPIO_PinSource4 ((uint8_t)0x04)
  242. #define GPIO_PinSource5 ((uint8_t)0x05)
  243. #define GPIO_PinSource6 ((uint8_t)0x06)
  244. #define GPIO_PinSource7 ((uint8_t)0x07)
  245. #define GPIO_PinSource8 ((uint8_t)0x08)
  246. #define GPIO_PinSource9 ((uint8_t)0x09)
  247. #define GPIO_PinSource10 ((uint8_t)0x0A)
  248. #define GPIO_PinSource11 ((uint8_t)0x0B)
  249. #define GPIO_PinSource12 ((uint8_t)0x0C)
  250. #define GPIO_PinSource13 ((uint8_t)0x0D)
  251. #define GPIO_PinSource14 ((uint8_t)0x0E)
  252. #define GPIO_PinSource15 ((uint8_t)0x0F)
  253. #define IS_GPIO_PIN_SOURCE(PINSOURCE) (((PINSOURCE) == GPIO_PinSource0) || \
  254. ((PINSOURCE) == GPIO_PinSource1) || \
  255. ((PINSOURCE) == GPIO_PinSource2) || \
  256. ((PINSOURCE) == GPIO_PinSource3) || \
  257. ((PINSOURCE) == GPIO_PinSource4) || \
  258. ((PINSOURCE) == GPIO_PinSource5) || \
  259. ((PINSOURCE) == GPIO_PinSource6) || \
  260. ((PINSOURCE) == GPIO_PinSource7) || \
  261. ((PINSOURCE) == GPIO_PinSource8) || \
  262. ((PINSOURCE) == GPIO_PinSource9) || \
  263. ((PINSOURCE) == GPIO_PinSource10) || \
  264. ((PINSOURCE) == GPIO_PinSource11) || \
  265. ((PINSOURCE) == GPIO_PinSource12) || \
  266. ((PINSOURCE) == GPIO_PinSource13) || \
  267. ((PINSOURCE) == GPIO_PinSource14) || \
  268. ((PINSOURCE) == GPIO_PinSource15))
  269. /**
  270. * @}
  271. */
  272. /** @defgroup Ethernet_Media_Interface
  273. * @{
  274. */
  275. #define GPIO_ETH_MediaInterface_MII ((u32)0x00000000)
  276. #define GPIO_ETH_MediaInterface_RMII ((u32)0x00000001)
  277. #define IS_GPIO_ETH_MEDIA_INTERFACE(INTERFACE) (((INTERFACE) == GPIO_ETH_MediaInterface_MII) || \
  278. ((INTERFACE) == GPIO_ETH_MediaInterface_RMII))
  279. /**
  280. * @}
  281. */
  282. /**
  283. * @}
  284. */
  285. /** @defgroup GPIO_Exported_Macros
  286. * @{
  287. */
  288. /**
  289. * @}
  290. */
  291. /** @defgroup GPIO_Exported_Functions
  292. * @{
  293. */
  294. void GPIO_DeInit(GPIO_TypeDef* GPIOx);
  295. void GPIO_AFIODeInit(void);
  296. void GPIO_Init(GPIO_TypeDef* GPIOx, GPIO_InitTypeDef* GPIO_InitStruct);
  297. void GPIO_StructInit(GPIO_InitTypeDef* GPIO_InitStruct);
  298. uint8_t GPIO_ReadInputDataBit(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin);
  299. uint16_t GPIO_ReadInputData(GPIO_TypeDef* GPIOx);
  300. uint8_t GPIO_ReadOutputDataBit(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin);
  301. uint16_t GPIO_ReadOutputData(GPIO_TypeDef* GPIOx);
  302. void GPIO_SetBits(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin);
  303. void GPIO_ResetBits(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin);
  304. void GPIO_WriteBit(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin, BitAction BitVal);
  305. void GPIO_Write(GPIO_TypeDef* GPIOx, uint16_t PortVal);
  306. void GPIO_PinLockConfig(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin);
  307. void GPIO_EventOutputConfig(uint8_t GPIO_PortSource, uint8_t GPIO_PinSource);
  308. void GPIO_EventOutputCmd(FunctionalState NewState);
  309. void GPIO_PinRemapConfig(uint32_t GPIO_Remap, FunctionalState NewState);
  310. void GPIO_EXTILineConfig(uint8_t GPIO_PortSource, uint8_t GPIO_PinSource);
  311. void GPIO_ETH_MediaInterfaceConfig(uint32_t GPIO_ETH_MediaInterface);
  312. #ifdef __cplusplus
  313. }
  314. #endif
  315. #endif /* __STM32F10x_GPIO_H */
  316. /**
  317. * @}
  318. */
  319. /**
  320. * @}
  321. */
  322. /**
  323. * @}
  324. */
  325. /******************* (C) COPYRIGHT 2010 STMicroelectronics *****END OF FILE****/