mbed official / mbed

Dependents:   hello SerialTestv11 SerialTestv12 Sierpinski ... more

Committer:
Kojto
Date:
Fri Aug 12 13:04:35 2016 +0200
Revision:
123:b0220dba8be7
Release 123 of the mbed library

Changes:
- new targets: nucleo_f207zg, beetle, nrf51_dk, hexiwear,
nuvoton nuc472, vk rz a1h
- ST - fix timer interrupt handler, sleep api fix
- NXP - lpc15xx us ticker fix
- Nordic - analogin fixes, LF clock init addition, enable i2c async

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Kojto 123:b0220dba8be7 1 /**
Kojto 123:b0220dba8be7 2 ******************************************************************************
Kojto 123:b0220dba8be7 3 * @file stm32f2xx_hal_gpio_ex.h
Kojto 123:b0220dba8be7 4 * @author MCD Application Team
Kojto 123:b0220dba8be7 5 * @version V1.1.3
Kojto 123:b0220dba8be7 6 * @date 29-June-2016
Kojto 123:b0220dba8be7 7 * @brief Header file of GPIO HAL Extension module.
Kojto 123:b0220dba8be7 8 ******************************************************************************
Kojto 123:b0220dba8be7 9 * @attention
Kojto 123:b0220dba8be7 10 *
Kojto 123:b0220dba8be7 11 * <h2><center>&copy; COPYRIGHT(c) 2016 STMicroelectronics</center></h2>
Kojto 123:b0220dba8be7 12 *
Kojto 123:b0220dba8be7 13 * Redistribution and use in source and binary forms, with or without modification,
Kojto 123:b0220dba8be7 14 * are permitted provided that the following conditions are met:
Kojto 123:b0220dba8be7 15 * 1. Redistributions of source code must retain the above copyright notice,
Kojto 123:b0220dba8be7 16 * this list of conditions and the following disclaimer.
Kojto 123:b0220dba8be7 17 * 2. Redistributions in binary form must reproduce the above copyright notice,
Kojto 123:b0220dba8be7 18 * this list of conditions and the following disclaimer in the documentation
Kojto 123:b0220dba8be7 19 * and/or other materials provided with the distribution.
Kojto 123:b0220dba8be7 20 * 3. Neither the name of STMicroelectronics nor the names of its contributors
Kojto 123:b0220dba8be7 21 * may be used to endorse or promote products derived from this software
Kojto 123:b0220dba8be7 22 * without specific prior written permission.
Kojto 123:b0220dba8be7 23 *
Kojto 123:b0220dba8be7 24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
Kojto 123:b0220dba8be7 25 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
Kojto 123:b0220dba8be7 26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
Kojto 123:b0220dba8be7 27 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
Kojto 123:b0220dba8be7 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
Kojto 123:b0220dba8be7 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
Kojto 123:b0220dba8be7 30 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
Kojto 123:b0220dba8be7 31 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
Kojto 123:b0220dba8be7 32 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
Kojto 123:b0220dba8be7 33 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Kojto 123:b0220dba8be7 34 *
Kojto 123:b0220dba8be7 35 ******************************************************************************
Kojto 123:b0220dba8be7 36 */
Kojto 123:b0220dba8be7 37
Kojto 123:b0220dba8be7 38 /* Define to prevent recursive inclusion -------------------------------------*/
Kojto 123:b0220dba8be7 39 #ifndef __STM32F2xx_HAL_GPIO_EX_H
Kojto 123:b0220dba8be7 40 #define __STM32F2xx_HAL_GPIO_EX_H
Kojto 123:b0220dba8be7 41
Kojto 123:b0220dba8be7 42 #ifdef __cplusplus
Kojto 123:b0220dba8be7 43 extern "C" {
Kojto 123:b0220dba8be7 44 #endif
Kojto 123:b0220dba8be7 45
Kojto 123:b0220dba8be7 46 /* Includes ------------------------------------------------------------------*/
Kojto 123:b0220dba8be7 47 #include "stm32f2xx_hal_def.h"
Kojto 123:b0220dba8be7 48
Kojto 123:b0220dba8be7 49 /** @addtogroup STM32F2xx_HAL_Driver
Kojto 123:b0220dba8be7 50 * @{
Kojto 123:b0220dba8be7 51 */
Kojto 123:b0220dba8be7 52
Kojto 123:b0220dba8be7 53 /** @defgroup GPIOEx GPIOEx
Kojto 123:b0220dba8be7 54 * @{
Kojto 123:b0220dba8be7 55 */
Kojto 123:b0220dba8be7 56
Kojto 123:b0220dba8be7 57 /* Exported types ------------------------------------------------------------*/
Kojto 123:b0220dba8be7 58 /* Exported constants --------------------------------------------------------*/
Kojto 123:b0220dba8be7 59 /* Exported constants --------------------------------------------------------*/
Kojto 123:b0220dba8be7 60
Kojto 123:b0220dba8be7 61 /** @defgroup GPIOEx_Exported_Constants GPIO Exported Constants
Kojto 123:b0220dba8be7 62 * @{
Kojto 123:b0220dba8be7 63 */
Kojto 123:b0220dba8be7 64
Kojto 123:b0220dba8be7 65 /** @defgroup GPIO_Alternate_function_selection GPIO Alternate function selection
Kojto 123:b0220dba8be7 66 * @{
Kojto 123:b0220dba8be7 67 */
Kojto 123:b0220dba8be7 68
Kojto 123:b0220dba8be7 69 /**
Kojto 123:b0220dba8be7 70 * @brief AF 0 selection
Kojto 123:b0220dba8be7 71 */
Kojto 123:b0220dba8be7 72 #define GPIO_AF0_RTC_50Hz ((uint8_t)0x00U) /* RTC_50Hz Alternate Function mapping */
Kojto 123:b0220dba8be7 73 #define GPIO_AF0_MCO ((uint8_t)0x00U) /* MCO (MCO1 and MCO2) Alternate Function mapping */
Kojto 123:b0220dba8be7 74 #define GPIO_AF0_TAMPER ((uint8_t)0x00U) /* TAMPER (TAMPER_1 and TAMPER_2) Alternate Function mapping */
Kojto 123:b0220dba8be7 75 #define GPIO_AF0_SWJ ((uint8_t)0x00U) /* SWJ (SWD and JTAG) Alternate Function mapping */
Kojto 123:b0220dba8be7 76 #define GPIO_AF0_TRACE ((uint8_t)0x00U) /* TRACE Alternate Function mapping */
Kojto 123:b0220dba8be7 77
Kojto 123:b0220dba8be7 78 /**
Kojto 123:b0220dba8be7 79 * @brief AF 1 selection
Kojto 123:b0220dba8be7 80 */
Kojto 123:b0220dba8be7 81 #define GPIO_AF1_TIM1 ((uint8_t)0x01U) /* TIM1 Alternate Function mapping */
Kojto 123:b0220dba8be7 82 #define GPIO_AF1_TIM2 ((uint8_t)0x01U) /* TIM2 Alternate Function mapping */
Kojto 123:b0220dba8be7 83
Kojto 123:b0220dba8be7 84 /**
Kojto 123:b0220dba8be7 85 * @brief AF 2 selection
Kojto 123:b0220dba8be7 86 */
Kojto 123:b0220dba8be7 87 #define GPIO_AF2_TIM3 ((uint8_t)0x02U) /* TIM3 Alternate Function mapping */
Kojto 123:b0220dba8be7 88 #define GPIO_AF2_TIM4 ((uint8_t)0x02U) /* TIM4 Alternate Function mapping */
Kojto 123:b0220dba8be7 89 #define GPIO_AF2_TIM5 ((uint8_t)0x02U) /* TIM5 Alternate Function mapping */
Kojto 123:b0220dba8be7 90
Kojto 123:b0220dba8be7 91 /**
Kojto 123:b0220dba8be7 92 * @brief AF 3 selection
Kojto 123:b0220dba8be7 93 */
Kojto 123:b0220dba8be7 94 #define GPIO_AF3_TIM8 ((uint8_t)0x03U) /* TIM8 Alternate Function mapping */
Kojto 123:b0220dba8be7 95 #define GPIO_AF3_TIM9 ((uint8_t)0x03U) /* TIM9 Alternate Function mapping */
Kojto 123:b0220dba8be7 96 #define GPIO_AF3_TIM10 ((uint8_t)0x03U) /* TIM10 Alternate Function mapping */
Kojto 123:b0220dba8be7 97 #define GPIO_AF3_TIM11 ((uint8_t)0x03U) /* TIM11 Alternate Function mapping */
Kojto 123:b0220dba8be7 98
Kojto 123:b0220dba8be7 99 /**
Kojto 123:b0220dba8be7 100 * @brief AF 4 selection
Kojto 123:b0220dba8be7 101 */
Kojto 123:b0220dba8be7 102 #define GPIO_AF4_I2C1 ((uint8_t)0x04U) /* I2C1 Alternate Function mapping */
Kojto 123:b0220dba8be7 103 #define GPIO_AF4_I2C2 ((uint8_t)0x04U) /* I2C2 Alternate Function mapping */
Kojto 123:b0220dba8be7 104 #define GPIO_AF4_I2C3 ((uint8_t)0x04U) /* I2C3 Alternate Function mapping */
Kojto 123:b0220dba8be7 105
Kojto 123:b0220dba8be7 106 /**
Kojto 123:b0220dba8be7 107 * @brief AF 5 selection
Kojto 123:b0220dba8be7 108 */
Kojto 123:b0220dba8be7 109 #define GPIO_AF5_SPI1 ((uint8_t)0x05U) /* SPI1 Alternate Function mapping */
Kojto 123:b0220dba8be7 110 #define GPIO_AF5_SPI2 ((uint8_t)0x05U) /* SPI2/I2S2 Alternate Function mapping */
Kojto 123:b0220dba8be7 111 /**
Kojto 123:b0220dba8be7 112 * @brief AF 6 selection
Kojto 123:b0220dba8be7 113 */
Kojto 123:b0220dba8be7 114 #define GPIO_AF6_SPI3 ((uint8_t)0x06U) /* SPI3/I2S3 Alternate Function mapping */
Kojto 123:b0220dba8be7 115
Kojto 123:b0220dba8be7 116 /**
Kojto 123:b0220dba8be7 117 * @brief AF 7 selection
Kojto 123:b0220dba8be7 118 */
Kojto 123:b0220dba8be7 119 #define GPIO_AF7_USART1 ((uint8_t)0x07U) /* USART1 Alternate Function mapping */
Kojto 123:b0220dba8be7 120 #define GPIO_AF7_USART2 ((uint8_t)0x07U) /* USART2 Alternate Function mapping */
Kojto 123:b0220dba8be7 121 #define GPIO_AF7_USART3 ((uint8_t)0x07U) /* USART3 Alternate Function mapping */
Kojto 123:b0220dba8be7 122
Kojto 123:b0220dba8be7 123 /**
Kojto 123:b0220dba8be7 124 * @brief AF 8 selection
Kojto 123:b0220dba8be7 125 */
Kojto 123:b0220dba8be7 126 #define GPIO_AF8_UART4 ((uint8_t)0x08U) /* UART4 Alternate Function mapping */
Kojto 123:b0220dba8be7 127 #define GPIO_AF8_UART5 ((uint8_t)0x08U) /* UART5 Alternate Function mapping */
Kojto 123:b0220dba8be7 128 #define GPIO_AF8_USART6 ((uint8_t)0x08U) /* USART6 Alternate Function mapping */
Kojto 123:b0220dba8be7 129
Kojto 123:b0220dba8be7 130 /**
Kojto 123:b0220dba8be7 131 * @brief AF 9 selection
Kojto 123:b0220dba8be7 132 */
Kojto 123:b0220dba8be7 133 #define GPIO_AF9_CAN1 ((uint8_t)0x09U) /* CAN1 Alternate Function mapping */
Kojto 123:b0220dba8be7 134 #define GPIO_AF9_CAN2 ((uint8_t)0x09U) /* CAN2 Alternate Function mapping */
Kojto 123:b0220dba8be7 135 #define GPIO_AF9_TIM12 ((uint8_t)0x09U) /* TIM12 Alternate Function mapping */
Kojto 123:b0220dba8be7 136 #define GPIO_AF9_TIM13 ((uint8_t)0x09U) /* TIM13 Alternate Function mapping */
Kojto 123:b0220dba8be7 137 #define GPIO_AF9_TIM14 ((uint8_t)0x09U) /* TIM14 Alternate Function mapping */
Kojto 123:b0220dba8be7 138
Kojto 123:b0220dba8be7 139 /**
Kojto 123:b0220dba8be7 140 * @brief AF 10 selection
Kojto 123:b0220dba8be7 141 */
Kojto 123:b0220dba8be7 142 #define GPIO_AF10_OTG_FS ((uint8_t)0xAU) /* OTG_FS Alternate Function mapping */
Kojto 123:b0220dba8be7 143 #define GPIO_AF10_OTG_HS ((uint8_t)0xAU) /* OTG_HS Alternate Function mapping */
Kojto 123:b0220dba8be7 144
Kojto 123:b0220dba8be7 145 /**
Kojto 123:b0220dba8be7 146 * @brief AF 11 selection
Kojto 123:b0220dba8be7 147 */
Kojto 123:b0220dba8be7 148 #if defined(STM32F207xx) || defined(STM32F217xx)
Kojto 123:b0220dba8be7 149 #define GPIO_AF11_ETH ((uint8_t)0x0BU) /* ETHERNET Alternate Function mapping */
Kojto 123:b0220dba8be7 150 #endif /* STM32F207xx || STM32F217xx */
Kojto 123:b0220dba8be7 151
Kojto 123:b0220dba8be7 152 /**
Kojto 123:b0220dba8be7 153 * @brief AF 12 selection
Kojto 123:b0220dba8be7 154 */
Kojto 123:b0220dba8be7 155 #define GPIO_AF12_FSMC ((uint8_t)0xCU) /* FSMC Alternate Function mapping */
Kojto 123:b0220dba8be7 156 #define GPIO_AF12_OTG_HS_FS ((uint8_t)0xCU) /* OTG HS configured in FS, Alternate Function mapping */
Kojto 123:b0220dba8be7 157 #define GPIO_AF12_SDIO ((uint8_t)0xCU) /* SDIO Alternate Function mapping */
Kojto 123:b0220dba8be7 158
Kojto 123:b0220dba8be7 159 /**
Kojto 123:b0220dba8be7 160 * @brief AF 13 selection
Kojto 123:b0220dba8be7 161 */
Kojto 123:b0220dba8be7 162 #if defined(STM32F207xx) || defined(STM32F217xx)
Kojto 123:b0220dba8be7 163 #define GPIO_AF13_DCMI ((uint8_t)0x0DU) /* DCMI Alternate Function mapping */
Kojto 123:b0220dba8be7 164 #endif /* STM32F207xx || STM32F217xx */
Kojto 123:b0220dba8be7 165
Kojto 123:b0220dba8be7 166 /**
Kojto 123:b0220dba8be7 167 * @brief AF 15 selection
Kojto 123:b0220dba8be7 168 */
Kojto 123:b0220dba8be7 169 #define GPIO_AF15_EVENTOUT ((uint8_t)0x0FU) /* EVENTOUT Alternate Function mapping */
Kojto 123:b0220dba8be7 170
Kojto 123:b0220dba8be7 171 /**
Kojto 123:b0220dba8be7 172 * @}
Kojto 123:b0220dba8be7 173 */
Kojto 123:b0220dba8be7 174
Kojto 123:b0220dba8be7 175 /**
Kojto 123:b0220dba8be7 176 * @}
Kojto 123:b0220dba8be7 177 */
Kojto 123:b0220dba8be7 178
Kojto 123:b0220dba8be7 179 /* Exported macro ------------------------------------------------------------*/
Kojto 123:b0220dba8be7 180 /** @defgroup GPIOEx_Exported_Macros GPIO Exported Macros
Kojto 123:b0220dba8be7 181 * @{
Kojto 123:b0220dba8be7 182 */
Kojto 123:b0220dba8be7 183 /**
Kojto 123:b0220dba8be7 184 * @}
Kojto 123:b0220dba8be7 185 */
Kojto 123:b0220dba8be7 186
Kojto 123:b0220dba8be7 187 /* Exported functions --------------------------------------------------------*/
Kojto 123:b0220dba8be7 188 /** @defgroup GPIOEx_Exported_Functions GPIO Exported Functions
Kojto 123:b0220dba8be7 189 * @{
Kojto 123:b0220dba8be7 190 */
Kojto 123:b0220dba8be7 191 /**
Kojto 123:b0220dba8be7 192 * @}
Kojto 123:b0220dba8be7 193 */
Kojto 123:b0220dba8be7 194
Kojto 123:b0220dba8be7 195 /* Private types -------------------------------------------------------------*/
Kojto 123:b0220dba8be7 196 /* Private variables ---------------------------------------------------------*/
Kojto 123:b0220dba8be7 197 /* Private constants ---------------------------------------------------------*/
Kojto 123:b0220dba8be7 198 /** @defgroup GPIOEx_Private_Constants GPIO Private Constants
Kojto 123:b0220dba8be7 199 * @{
Kojto 123:b0220dba8be7 200 */
Kojto 123:b0220dba8be7 201 /**
Kojto 123:b0220dba8be7 202 * @}
Kojto 123:b0220dba8be7 203 */
Kojto 123:b0220dba8be7 204
Kojto 123:b0220dba8be7 205 /* Private macros ------------------------------------------------------------*/
Kojto 123:b0220dba8be7 206 /** @defgroup GPIOEx_Private_Macros GPIO Private Macros
Kojto 123:b0220dba8be7 207 * @{
Kojto 123:b0220dba8be7 208 */
Kojto 123:b0220dba8be7 209 /** @defgroup GPIOEx_Get_Port_Index GPIO Get Port Index
Kojto 123:b0220dba8be7 210 * @{
Kojto 123:b0220dba8be7 211 */
Kojto 123:b0220dba8be7 212 #define GPIO_GET_INDEX(__GPIOx__) (uint8_t)(((__GPIOx__) == (GPIOA))? 0U :\
Kojto 123:b0220dba8be7 213 ((__GPIOx__) == (GPIOB))? 1U :\
Kojto 123:b0220dba8be7 214 ((__GPIOx__) == (GPIOC))? 2U :\
Kojto 123:b0220dba8be7 215 ((__GPIOx__) == (GPIOD))? 3U :\
Kojto 123:b0220dba8be7 216 ((__GPIOx__) == (GPIOE))? 4U :\
Kojto 123:b0220dba8be7 217 ((__GPIOx__) == (GPIOF))? 5U :\
Kojto 123:b0220dba8be7 218 ((__GPIOx__) == (GPIOG))? 6U :\
Kojto 123:b0220dba8be7 219 ((__GPIOx__) == (GPIOH))? 7U :\
Kojto 123:b0220dba8be7 220 ((__GPIOx__) == (GPIOI))? 8U : 9U)
Kojto 123:b0220dba8be7 221 /**
Kojto 123:b0220dba8be7 222 * @}
Kojto 123:b0220dba8be7 223 */
Kojto 123:b0220dba8be7 224
Kojto 123:b0220dba8be7 225 /** @defgroup GPIOEx_IS_Alternat_function_selection GPIO Check Alternate Function
Kojto 123:b0220dba8be7 226 * @{
Kojto 123:b0220dba8be7 227 */
Kojto 123:b0220dba8be7 228 #if defined(STM32F207xx) || defined(STM32F217xx)
Kojto 123:b0220dba8be7 229
Kojto 123:b0220dba8be7 230 #define IS_GPIO_AF(AF) (((AF) == GPIO_AF0_RTC_50Hz) || ((AF) == GPIO_AF9_TIM14) || \
Kojto 123:b0220dba8be7 231 ((AF) == GPIO_AF0_MCO) || ((AF) == GPIO_AF0_TAMPER) || \
Kojto 123:b0220dba8be7 232 ((AF) == GPIO_AF0_SWJ) || ((AF) == GPIO_AF0_TRACE) || \
Kojto 123:b0220dba8be7 233 ((AF) == GPIO_AF1_TIM1) || ((AF) == GPIO_AF1_TIM2) || \
Kojto 123:b0220dba8be7 234 ((AF) == GPIO_AF2_TIM3) || ((AF) == GPIO_AF2_TIM4) || \
Kojto 123:b0220dba8be7 235 ((AF) == GPIO_AF2_TIM5) || ((AF) == GPIO_AF3_TIM8) || \
Kojto 123:b0220dba8be7 236 ((AF) == GPIO_AF4_I2C1) || ((AF) == GPIO_AF4_I2C2) || \
Kojto 123:b0220dba8be7 237 ((AF) == GPIO_AF4_I2C3) || ((AF) == GPIO_AF5_SPI1) || \
Kojto 123:b0220dba8be7 238 ((AF) == GPIO_AF5_SPI2) || ((AF) == GPIO_AF9_TIM13) || \
Kojto 123:b0220dba8be7 239 ((AF) == GPIO_AF6_SPI3) || ((AF) == GPIO_AF9_TIM12) || \
Kojto 123:b0220dba8be7 240 ((AF) == GPIO_AF7_USART1) || ((AF) == GPIO_AF7_USART2) || \
Kojto 123:b0220dba8be7 241 ((AF) == GPIO_AF7_USART3) || ((AF) == GPIO_AF8_UART4) || \
Kojto 123:b0220dba8be7 242 ((AF) == GPIO_AF8_UART5) || ((AF) == GPIO_AF8_USART6) || \
Kojto 123:b0220dba8be7 243 ((AF) == GPIO_AF9_CAN1) || ((AF) == GPIO_AF9_CAN2) || \
Kojto 123:b0220dba8be7 244 ((AF) == GPIO_AF10_OTG_FS) || ((AF) == GPIO_AF10_OTG_HS) || \
Kojto 123:b0220dba8be7 245 ((AF) == GPIO_AF11_ETH) || ((AF) == GPIO_AF12_OTG_HS_FS) || \
Kojto 123:b0220dba8be7 246 ((AF) == GPIO_AF12_SDIO) || ((AF) == GPIO_AF13_DCMI) || \
Kojto 123:b0220dba8be7 247 ((AF) == GPIO_AF12_FSMC) || ((AF) == GPIO_AF15_EVENTOUT))
Kojto 123:b0220dba8be7 248 #else /* STM32F207xx || STM32F217xx */
Kojto 123:b0220dba8be7 249 #define IS_GPIO_AF(AF) (((AF) == GPIO_AF0_RTC_50Hz) || ((AF) == GPIO_AF9_TIM14) || \
Kojto 123:b0220dba8be7 250 ((AF) == GPIO_AF0_MCO) || ((AF) == GPIO_AF0_TAMPER) || \
Kojto 123:b0220dba8be7 251 ((AF) == GPIO_AF0_SWJ) || ((AF) == GPIO_AF0_TRACE) || \
Kojto 123:b0220dba8be7 252 ((AF) == GPIO_AF1_TIM1) || ((AF) == GPIO_AF1_TIM2) || \
Kojto 123:b0220dba8be7 253 ((AF) == GPIO_AF2_TIM3) || ((AF) == GPIO_AF2_TIM4) || \
Kojto 123:b0220dba8be7 254 ((AF) == GPIO_AF2_TIM5) || ((AF) == GPIO_AF3_TIM8) || \
Kojto 123:b0220dba8be7 255 ((AF) == GPIO_AF4_I2C1) || ((AF) == GPIO_AF4_I2C2) || \
Kojto 123:b0220dba8be7 256 ((AF) == GPIO_AF4_I2C3) || ((AF) == GPIO_AF5_SPI1) || \
Kojto 123:b0220dba8be7 257 ((AF) == GPIO_AF5_SPI2) || ((AF) == GPIO_AF9_TIM13) || \
Kojto 123:b0220dba8be7 258 ((AF) == GPIO_AF6_SPI3) || ((AF) == GPIO_AF9_TIM12) || \
Kojto 123:b0220dba8be7 259 ((AF) == GPIO_AF7_USART1) || ((AF) == GPIO_AF7_USART2) || \
Kojto 123:b0220dba8be7 260 ((AF) == GPIO_AF7_USART3) || ((AF) == GPIO_AF8_UART4) || \
Kojto 123:b0220dba8be7 261 ((AF) == GPIO_AF8_UART5) || ((AF) == GPIO_AF8_USART6) || \
Kojto 123:b0220dba8be7 262 ((AF) == GPIO_AF9_CAN1) || ((AF) == GPIO_AF9_CAN2) || \
Kojto 123:b0220dba8be7 263 ((AF) == GPIO_AF10_OTG_FS) || ((AF) == GPIO_AF10_OTG_HS) || \
Kojto 123:b0220dba8be7 264 ((AF) == GPIO_AF12_OTG_HS_FS) || ((AF) == GPIO_AF12_SDIO) || \
Kojto 123:b0220dba8be7 265 ((AF) == GPIO_AF12_FSMC) || ((AF) == GPIO_AF15_EVENTOUT))
Kojto 123:b0220dba8be7 266 #endif /* STM32F207xx || STM32F217xx */
Kojto 123:b0220dba8be7 267
Kojto 123:b0220dba8be7 268 /**
Kojto 123:b0220dba8be7 269 * @}
Kojto 123:b0220dba8be7 270 */
Kojto 123:b0220dba8be7 271
Kojto 123:b0220dba8be7 272 /**
Kojto 123:b0220dba8be7 273 * @}
Kojto 123:b0220dba8be7 274 */
Kojto 123:b0220dba8be7 275
Kojto 123:b0220dba8be7 276 /* Private functions ---------------------------------------------------------*/
Kojto 123:b0220dba8be7 277 /** @defgroup GPIOEx_Private_Functions GPIO Private Functions
Kojto 123:b0220dba8be7 278 * @{
Kojto 123:b0220dba8be7 279 */
Kojto 123:b0220dba8be7 280
Kojto 123:b0220dba8be7 281 /**
Kojto 123:b0220dba8be7 282 * @}
Kojto 123:b0220dba8be7 283 */
Kojto 123:b0220dba8be7 284
Kojto 123:b0220dba8be7 285 /**
Kojto 123:b0220dba8be7 286 * @}
Kojto 123:b0220dba8be7 287 */
Kojto 123:b0220dba8be7 288
Kojto 123:b0220dba8be7 289 /**
Kojto 123:b0220dba8be7 290 * @}
Kojto 123:b0220dba8be7 291 */
Kojto 123:b0220dba8be7 292
Kojto 123:b0220dba8be7 293 #ifdef __cplusplus
Kojto 123:b0220dba8be7 294 }
Kojto 123:b0220dba8be7 295 #endif
Kojto 123:b0220dba8be7 296
Kojto 123:b0220dba8be7 297 #endif /* __STM32F2xx_HAL_GPIO_EX_H */
Kojto 123:b0220dba8be7 298
Kojto 123:b0220dba8be7 299 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/