A bundled STM32F10x Std Periph and CMSIS library
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

387 lines
20 KiB

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