mbed library sources modified for open wear
Dependents: openwear-lifelogger-example
Fork of mbed-src by
targets/cmsis/TARGET_STM/TARGET_NUCLEO_F072RB/stm32f0xx_hal_gpio_ex.h@205:c41fc65bcfb4, 2014-05-22 (annotated)
- Committer:
- mbed_official
- Date:
- Thu May 22 20:00:09 2014 +0100
- Revision:
- 205:c41fc65bcfb4
- Child:
- 218:44081b78fdc2
Synchronized with git revision ea4b6f76efab17a3f7d7777b0cc1ef05fec6d1cb
Full URL: https://github.com/mbedmicro/mbed/commit/ea4b6f76efab17a3f7d7777b0cc1ef05fec6d1cb/
[NUCLEO_F072RB] cmsis files
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbed_official | 205:c41fc65bcfb4 | 1 | /** |
mbed_official | 205:c41fc65bcfb4 | 2 | ****************************************************************************** |
mbed_official | 205:c41fc65bcfb4 | 3 | * @file stm32f0xx_hal_gpio_ex.h |
mbed_official | 205:c41fc65bcfb4 | 4 | * @author MCD Application Team |
mbed_official | 205:c41fc65bcfb4 | 5 | * @version V1.0.0 |
mbed_official | 205:c41fc65bcfb4 | 6 | * @date 20-May-2014 |
mbed_official | 205:c41fc65bcfb4 | 7 | * @brief Header file of GPIO HAL Extension module. |
mbed_official | 205:c41fc65bcfb4 | 8 | ****************************************************************************** |
mbed_official | 205:c41fc65bcfb4 | 9 | * @attention |
mbed_official | 205:c41fc65bcfb4 | 10 | * |
mbed_official | 205:c41fc65bcfb4 | 11 | * <h2><center>© COPYRIGHT(c) 2014 STMicroelectronics</center></h2> |
mbed_official | 205:c41fc65bcfb4 | 12 | * |
mbed_official | 205:c41fc65bcfb4 | 13 | * Redistribution and use in source and binary forms, with or without modification, |
mbed_official | 205:c41fc65bcfb4 | 14 | * are permitted provided that the following conditions are met: |
mbed_official | 205:c41fc65bcfb4 | 15 | * 1. Redistributions of source code must retain the above copyright notice, |
mbed_official | 205:c41fc65bcfb4 | 16 | * this list of conditions and the following disclaimer. |
mbed_official | 205:c41fc65bcfb4 | 17 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
mbed_official | 205:c41fc65bcfb4 | 18 | * this list of conditions and the following disclaimer in the documentation |
mbed_official | 205:c41fc65bcfb4 | 19 | * and/or other materials provided with the distribution. |
mbed_official | 205:c41fc65bcfb4 | 20 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
mbed_official | 205:c41fc65bcfb4 | 21 | * may be used to endorse or promote products derived from this software |
mbed_official | 205:c41fc65bcfb4 | 22 | * without specific prior written permission. |
mbed_official | 205:c41fc65bcfb4 | 23 | * |
mbed_official | 205:c41fc65bcfb4 | 24 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
mbed_official | 205:c41fc65bcfb4 | 25 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
mbed_official | 205:c41fc65bcfb4 | 26 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
mbed_official | 205:c41fc65bcfb4 | 27 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
mbed_official | 205:c41fc65bcfb4 | 28 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
mbed_official | 205:c41fc65bcfb4 | 29 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
mbed_official | 205:c41fc65bcfb4 | 30 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
mbed_official | 205:c41fc65bcfb4 | 31 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
mbed_official | 205:c41fc65bcfb4 | 32 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
mbed_official | 205:c41fc65bcfb4 | 33 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
mbed_official | 205:c41fc65bcfb4 | 34 | * |
mbed_official | 205:c41fc65bcfb4 | 35 | ****************************************************************************** |
mbed_official | 205:c41fc65bcfb4 | 36 | */ |
mbed_official | 205:c41fc65bcfb4 | 37 | |
mbed_official | 205:c41fc65bcfb4 | 38 | /* Define to prevent recursive inclusion -------------------------------------*/ |
mbed_official | 205:c41fc65bcfb4 | 39 | #ifndef __STM32F0xx_HAL_GPIO_EX_H |
mbed_official | 205:c41fc65bcfb4 | 40 | #define __STM32F0xx_HAL_GPIO_EX_H |
mbed_official | 205:c41fc65bcfb4 | 41 | |
mbed_official | 205:c41fc65bcfb4 | 42 | #ifdef __cplusplus |
mbed_official | 205:c41fc65bcfb4 | 43 | extern "C" { |
mbed_official | 205:c41fc65bcfb4 | 44 | #endif |
mbed_official | 205:c41fc65bcfb4 | 45 | |
mbed_official | 205:c41fc65bcfb4 | 46 | /* Includes ------------------------------------------------------------------*/ |
mbed_official | 205:c41fc65bcfb4 | 47 | #include "stm32f0xx_hal_def.h" |
mbed_official | 205:c41fc65bcfb4 | 48 | |
mbed_official | 205:c41fc65bcfb4 | 49 | /** @addtogroup STM32F0xx_HAL_Driver |
mbed_official | 205:c41fc65bcfb4 | 50 | * @{ |
mbed_official | 205:c41fc65bcfb4 | 51 | */ |
mbed_official | 205:c41fc65bcfb4 | 52 | |
mbed_official | 205:c41fc65bcfb4 | 53 | /** @addtogroup GPIOEx |
mbed_official | 205:c41fc65bcfb4 | 54 | * @{ |
mbed_official | 205:c41fc65bcfb4 | 55 | */ |
mbed_official | 205:c41fc65bcfb4 | 56 | |
mbed_official | 205:c41fc65bcfb4 | 57 | /* Exported types ------------------------------------------------------------*/ |
mbed_official | 205:c41fc65bcfb4 | 58 | |
mbed_official | 205:c41fc65bcfb4 | 59 | /* Exported constants --------------------------------------------------------*/ |
mbed_official | 205:c41fc65bcfb4 | 60 | |
mbed_official | 205:c41fc65bcfb4 | 61 | /** @defgroup GPIOEx_Exported_Constants GPIOEx_Exported_Constants |
mbed_official | 205:c41fc65bcfb4 | 62 | * @{ |
mbed_official | 205:c41fc65bcfb4 | 63 | */ |
mbed_official | 205:c41fc65bcfb4 | 64 | |
mbed_official | 205:c41fc65bcfb4 | 65 | /** @defgroup GPIOEx_Alternate_function_selection GPIOEx_Alternate_function_selection |
mbed_official | 205:c41fc65bcfb4 | 66 | * @{ |
mbed_official | 205:c41fc65bcfb4 | 67 | */ |
mbed_official | 205:c41fc65bcfb4 | 68 | |
mbed_official | 205:c41fc65bcfb4 | 69 | #if defined (STM32F030x6) |
mbed_official | 205:c41fc65bcfb4 | 70 | /*------------------------- STM32F030x6---------------------------*/ |
mbed_official | 205:c41fc65bcfb4 | 71 | /** |
mbed_official | 205:c41fc65bcfb4 | 72 | * @brief AF 0 selection |
mbed_official | 205:c41fc65bcfb4 | 73 | */ |
mbed_official | 205:c41fc65bcfb4 | 74 | #define GPIO_AF0_EVENTOUT ((uint8_t)0x00) /* EVENTOUT Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 75 | #define GPIO_AF0_MCO ((uint8_t)0x00) /* MCO Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 76 | #define GPIO_AF0_SPI1 ((uint8_t)0x00) /* SPI1 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 77 | #define GPIO_AF0_TIM17 ((uint8_t)0x00) /* TIM17 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 78 | #define GPIO_AF0_SWDIO ((uint8_t)0x00) /* SWDIO Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 79 | #define GPIO_AF0_SWCLK ((uint8_t)0x00) /* SWCLK Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 80 | #define GPIO_AF0_TIM14 ((uint8_t)0x00) /* TIM14 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 81 | #define GPIO_AF0_USART1 ((uint8_t)0x00) /* USART1 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 82 | #define GPIO_AF0_IR ((uint8_t)0x00) /* IR Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 83 | |
mbed_official | 205:c41fc65bcfb4 | 84 | /** |
mbed_official | 205:c41fc65bcfb4 | 85 | * @brief AF 1 selection |
mbed_official | 205:c41fc65bcfb4 | 86 | */ |
mbed_official | 205:c41fc65bcfb4 | 87 | #define GPIO_AF1_TIM3 ((uint8_t)0x01) /* TIM3 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 88 | #define GPIO_AF1_USART1 ((uint8_t)0x01) /* USART1 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 89 | #define GPIO_AF1_EVENTOUT ((uint8_t)0x01) /* EVENTOUT Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 90 | #define GPIO_AF1_I2C1 ((uint8_t)0x01) /* I2C1 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 91 | |
mbed_official | 205:c41fc65bcfb4 | 92 | /** |
mbed_official | 205:c41fc65bcfb4 | 93 | * @brief AF 2 selection |
mbed_official | 205:c41fc65bcfb4 | 94 | */ |
mbed_official | 205:c41fc65bcfb4 | 95 | #define GPIO_AF2_TIM1 ((uint8_t)0x02) /* TIM1 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 96 | #define GPIO_AF2_TIM16 ((uint8_t)0x02) /* TIM16 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 97 | #define GPIO_AF2_TIM17 ((uint8_t)0x02) /* TIM17 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 98 | #define GPIO_AF2_EVENTOUT ((uint8_t)0x02) /* EVENTOUT Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 99 | |
mbed_official | 205:c41fc65bcfb4 | 100 | /** |
mbed_official | 205:c41fc65bcfb4 | 101 | * @brief AF 3 selection |
mbed_official | 205:c41fc65bcfb4 | 102 | */ |
mbed_official | 205:c41fc65bcfb4 | 103 | #define GPIO_AF3_EVENTOUT ((uint8_t)0x03) /* EVENTOUT Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 104 | #define GPIO_AF3_I2C1 ((uint8_t)0x03) /* I2C1 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 105 | |
mbed_official | 205:c41fc65bcfb4 | 106 | /** |
mbed_official | 205:c41fc65bcfb4 | 107 | * @brief AF 4 selection |
mbed_official | 205:c41fc65bcfb4 | 108 | */ |
mbed_official | 205:c41fc65bcfb4 | 109 | #define GPIO_AF4_TIM14 ((uint8_t)0x04) /* TIM14 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 110 | #define GPIO_AF4_I2C1 ((uint8_t)0x04) /* I2C1 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 111 | |
mbed_official | 205:c41fc65bcfb4 | 112 | /** |
mbed_official | 205:c41fc65bcfb4 | 113 | * @brief AF 5 selection |
mbed_official | 205:c41fc65bcfb4 | 114 | */ |
mbed_official | 205:c41fc65bcfb4 | 115 | #define GPIO_AF5_TIM16 ((uint8_t)0x05) /* TIM16 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 116 | #define GPIO_AF5_TIM17 ((uint8_t)0x05) /* TIM17 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 117 | |
mbed_official | 205:c41fc65bcfb4 | 118 | /** |
mbed_official | 205:c41fc65bcfb4 | 119 | * @brief AF 6 selection |
mbed_official | 205:c41fc65bcfb4 | 120 | */ |
mbed_official | 205:c41fc65bcfb4 | 121 | #define GPIO_AF6_EVENTOUT ((uint8_t)0x06) /* EVENTOUT Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 122 | |
mbed_official | 205:c41fc65bcfb4 | 123 | #define IS_GPIO_AF(AF) ((AF) <= (uint8_t)0x06) |
mbed_official | 205:c41fc65bcfb4 | 124 | |
mbed_official | 205:c41fc65bcfb4 | 125 | #endif /* STM32F030x6 */ |
mbed_official | 205:c41fc65bcfb4 | 126 | |
mbed_official | 205:c41fc65bcfb4 | 127 | /*---------------------------------- STM32F030x8 -------------------------------------------*/ |
mbed_official | 205:c41fc65bcfb4 | 128 | #if defined (STM32F030x8) |
mbed_official | 205:c41fc65bcfb4 | 129 | /** |
mbed_official | 205:c41fc65bcfb4 | 130 | * @brief AF 0 selection |
mbed_official | 205:c41fc65bcfb4 | 131 | */ |
mbed_official | 205:c41fc65bcfb4 | 132 | #define GPIO_AF0_EVENTOUT ((uint8_t)0x00) /* EVENTOUT Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 133 | #define GPIO_AF0_MCO ((uint8_t)0x00) /* MCO Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 134 | #define GPIO_AF0_SPI1 ((uint8_t)0x00) /* SPI1 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 135 | #define GPIO_AF0_SPI2 ((uint8_t)0x00) /* SPI2 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 136 | #define GPIO_AF0_TIM15 ((uint8_t)0x00) /* TIM15 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 137 | #define GPIO_AF0_TIM17 ((uint8_t)0x00) /* TIM17 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 138 | #define GPIO_AF0_SWDIO ((uint8_t)0x00) /* SWDIO Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 139 | #define GPIO_AF0_SWCLK ((uint8_t)0x00) /* SWCLK Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 140 | #define GPIO_AF0_TIM14 ((uint8_t)0x00) /* TIM14 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 141 | #define GPIO_AF0_USART1 ((uint8_t)0x00) /* USART1 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 142 | #define GPIO_AF0_IR ((uint8_t)0x00) /* IR Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 143 | |
mbed_official | 205:c41fc65bcfb4 | 144 | /** |
mbed_official | 205:c41fc65bcfb4 | 145 | * @brief AF 1 selection |
mbed_official | 205:c41fc65bcfb4 | 146 | */ |
mbed_official | 205:c41fc65bcfb4 | 147 | #define GPIO_AF1_TIM3 ((uint8_t)0x01) /* TIM3 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 148 | #define GPIO_AF1_TIM15 ((uint8_t)0x01) /* TIM15 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 149 | #define GPIO_AF1_USART1 ((uint8_t)0x01) /* USART1 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 150 | #define GPIO_AF1_USART2 ((uint8_t)0x01) /* USART2 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 151 | #define GPIO_AF1_EVENTOUT ((uint8_t)0x01) /* EVENTOUT Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 152 | #define GPIO_AF1_I2C1 ((uint8_t)0x01) /* I2C1 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 153 | #define GPIO_AF1_I2C2 ((uint8_t)0x01) /* I2C2 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 154 | #define GPIO_AF1_IR ((uint8_t)0x01) /* IR Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 155 | |
mbed_official | 205:c41fc65bcfb4 | 156 | /** |
mbed_official | 205:c41fc65bcfb4 | 157 | * @brief AF 2 selection |
mbed_official | 205:c41fc65bcfb4 | 158 | */ |
mbed_official | 205:c41fc65bcfb4 | 159 | #define GPIO_AF2_TIM1 ((uint8_t)0x02) /* TIM1 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 160 | #define GPIO_AF2_TIM16 ((uint8_t)0x02) /* TIM16 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 161 | #define GPIO_AF2_TIM17 ((uint8_t)0x02) /* TIM17 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 162 | #define GPIO_AF2_EVENTOUT ((uint8_t)0x02) /* EVENTOUT Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 163 | |
mbed_official | 205:c41fc65bcfb4 | 164 | /** |
mbed_official | 205:c41fc65bcfb4 | 165 | * @brief AF 3 selection |
mbed_official | 205:c41fc65bcfb4 | 166 | */ |
mbed_official | 205:c41fc65bcfb4 | 167 | #define GPIO_AF3_EVENTOUT ((uint8_t)0x03) /* EVENTOUT Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 168 | #define GPIO_AF3_I2C1 ((uint8_t)0x03) /* I2C1 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 169 | #define GPIO_AF3_TIM15 ((uint8_t)0x03) /* TIM15 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 170 | |
mbed_official | 205:c41fc65bcfb4 | 171 | /** |
mbed_official | 205:c41fc65bcfb4 | 172 | * @brief AF 4 selection |
mbed_official | 205:c41fc65bcfb4 | 173 | */ |
mbed_official | 205:c41fc65bcfb4 | 174 | #define GPIO_AF4_TIM14 ((uint8_t)0x04) /* TIM14 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 175 | |
mbed_official | 205:c41fc65bcfb4 | 176 | /** |
mbed_official | 205:c41fc65bcfb4 | 177 | * @brief AF 5 selection |
mbed_official | 205:c41fc65bcfb4 | 178 | */ |
mbed_official | 205:c41fc65bcfb4 | 179 | #define GPIO_AF5_TIM16 ((uint8_t)0x05) /* TIM16 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 180 | #define GPIO_AF5_TIM17 ((uint8_t)0x05) /* TIM17 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 181 | |
mbed_official | 205:c41fc65bcfb4 | 182 | /** |
mbed_official | 205:c41fc65bcfb4 | 183 | * @brief AF 6 selection |
mbed_official | 205:c41fc65bcfb4 | 184 | */ |
mbed_official | 205:c41fc65bcfb4 | 185 | #define GPIO_AF6_EVENTOUT ((uint8_t)0x06) /* EVENTOUT Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 186 | |
mbed_official | 205:c41fc65bcfb4 | 187 | #define IS_GPIO_AF(AF) ((AF) <= (uint8_t)0x06) |
mbed_official | 205:c41fc65bcfb4 | 188 | |
mbed_official | 205:c41fc65bcfb4 | 189 | #endif /* STM32F030x8 */ |
mbed_official | 205:c41fc65bcfb4 | 190 | |
mbed_official | 205:c41fc65bcfb4 | 191 | #if defined (STM32F031x6) || defined (STM32F038xx) |
mbed_official | 205:c41fc65bcfb4 | 192 | /*--------------------------- STM32F031x6/STM32F038xx ---------------------------*/ |
mbed_official | 205:c41fc65bcfb4 | 193 | /** |
mbed_official | 205:c41fc65bcfb4 | 194 | * @brief AF 0 selection |
mbed_official | 205:c41fc65bcfb4 | 195 | */ |
mbed_official | 205:c41fc65bcfb4 | 196 | #define GPIO_AF0_EVENTOUT ((uint8_t)0x00) /* EVENTOUT Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 197 | #define GPIO_AF0_MCO ((uint8_t)0x00) /* MCO Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 198 | #define GPIO_AF0_SPI1 ((uint8_t)0x00) /* SPI1/I2S1 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 199 | #define GPIO_AF0_TIM17 ((uint8_t)0x00) /* TIM17 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 200 | #define GPIO_AF0_SWDAT ((uint8_t)0x00) /* SWDAT Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 201 | #define GPIO_AF0_SWCLK ((uint8_t)0x00) /* SWCLK Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 202 | #define GPIO_AF0_TIM14 ((uint8_t)0x00) /* TIM14 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 203 | #define GPIO_AF0_USART1 ((uint8_t)0x00) /* USART1 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 204 | #define GPIO_AF0_IR ((uint8_t)0x00) /* IR Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 205 | |
mbed_official | 205:c41fc65bcfb4 | 206 | /** |
mbed_official | 205:c41fc65bcfb4 | 207 | * @brief AF 1 selection |
mbed_official | 205:c41fc65bcfb4 | 208 | */ |
mbed_official | 205:c41fc65bcfb4 | 209 | #define GPIO_AF1_TIM3 ((uint8_t)0x01) /* TIM3 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 210 | #define GPIO_AF1_USART1 ((uint8_t)0x01) /* USART1 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 211 | #define GPIO_AF1_IR ((uint8_t)0x01) /* IR Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 212 | #define GPIO_AF1_EVENTOUT ((uint8_t)0x01) /* EVENTOUT Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 213 | #define GPIO_AF1_I2C1 ((uint8_t)0x01) /* I2C1 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 214 | |
mbed_official | 205:c41fc65bcfb4 | 215 | /** |
mbed_official | 205:c41fc65bcfb4 | 216 | * @brief AF 2 selection |
mbed_official | 205:c41fc65bcfb4 | 217 | */ |
mbed_official | 205:c41fc65bcfb4 | 218 | #define GPIO_AF2_TIM1 ((uint8_t)0x02) /* TIM1 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 219 | #define GPIO_AF2_TIM2 ((uint8_t)0x02) /* TIM2 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 220 | #define GPIO_AF2_TIM16 ((uint8_t)0x02) /* TIM16 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 221 | #define GPIO_AF2_TIM17 ((uint8_t)0x02) /* TIM17 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 222 | #define GPIO_AF2_EVENTOUT ((uint8_t)0x02) /* EVENTOUT Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 223 | |
mbed_official | 205:c41fc65bcfb4 | 224 | /** |
mbed_official | 205:c41fc65bcfb4 | 225 | * @brief AF 3 selection |
mbed_official | 205:c41fc65bcfb4 | 226 | */ |
mbed_official | 205:c41fc65bcfb4 | 227 | #define GPIO_AF3_EVENTOUT ((uint8_t)0x03) /* EVENTOUT Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 228 | #define GPIO_AF3_I2C1 ((uint8_t)0x03) /* I2C1 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 229 | |
mbed_official | 205:c41fc65bcfb4 | 230 | /** |
mbed_official | 205:c41fc65bcfb4 | 231 | * @brief AF 4 selection |
mbed_official | 205:c41fc65bcfb4 | 232 | */ |
mbed_official | 205:c41fc65bcfb4 | 233 | #define GPIO_AF4_TIM14 ((uint8_t)0x04) /* TIM14 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 234 | #define GPIO_AF4_I2C1 ((uint8_t)0x04) /* I2C1 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 235 | |
mbed_official | 205:c41fc65bcfb4 | 236 | /** |
mbed_official | 205:c41fc65bcfb4 | 237 | * @brief AF 5 selection |
mbed_official | 205:c41fc65bcfb4 | 238 | */ |
mbed_official | 205:c41fc65bcfb4 | 239 | #define GPIO_AF5_TIM16 ((uint8_t)0x05) /* TIM16 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 240 | #define GPIO_AF5_TIM17 ((uint8_t)0x05) /* TIM17 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 241 | |
mbed_official | 205:c41fc65bcfb4 | 242 | /** |
mbed_official | 205:c41fc65bcfb4 | 243 | * @brief AF 6 selection |
mbed_official | 205:c41fc65bcfb4 | 244 | */ |
mbed_official | 205:c41fc65bcfb4 | 245 | #define GPIO_AF6_EVENTOUT ((uint8_t)0x06) /* EVENTOUT Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 246 | |
mbed_official | 205:c41fc65bcfb4 | 247 | #define IS_GPIO_AF(AF) ((AF) <= (uint8_t)0x06) |
mbed_official | 205:c41fc65bcfb4 | 248 | |
mbed_official | 205:c41fc65bcfb4 | 249 | #endif /* STM32F031x6 || STM32F038xx */ |
mbed_official | 205:c41fc65bcfb4 | 250 | |
mbed_official | 205:c41fc65bcfb4 | 251 | #if defined (STM32F051x8) || defined (STM32F058xx) |
mbed_official | 205:c41fc65bcfb4 | 252 | /*--------------------------- STM32F051x8/STM32F058xx---------------------------*/ |
mbed_official | 205:c41fc65bcfb4 | 253 | /** |
mbed_official | 205:c41fc65bcfb4 | 254 | * @brief AF 0 selection |
mbed_official | 205:c41fc65bcfb4 | 255 | */ |
mbed_official | 205:c41fc65bcfb4 | 256 | #define GPIO_AF0_EVENTOUT ((uint8_t)0x00) /* EVENTOUT Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 257 | #define GPIO_AF0_MCO ((uint8_t)0x00) /* MCO Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 258 | #define GPIO_AF0_SPI1 ((uint8_t)0x00) /* SPI1/I2S1 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 259 | #define GPIO_AF0_SPI2 ((uint8_t)0x00) /* SPI2 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 260 | #define GPIO_AF0_TIM15 ((uint8_t)0x00) /* TIM15 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 261 | #define GPIO_AF0_TIM17 ((uint8_t)0x00) /* TIM17 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 262 | #define GPIO_AF0_SWDIO ((uint8_t)0x00) /* SWDIO Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 263 | #define GPIO_AF0_SWCLK ((uint8_t)0x00) /* SWCLK Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 264 | #define GPIO_AF0_TIM14 ((uint8_t)0x00) /* TIM14 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 265 | #define GPIO_AF0_USART1 ((uint8_t)0x00) /* USART1 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 266 | #define GPIO_AF0_IR ((uint8_t)0x00) /* IR Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 267 | #define GPIO_AF0_CEC ((uint8_t)0x00) /* CEC Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 268 | |
mbed_official | 205:c41fc65bcfb4 | 269 | /** |
mbed_official | 205:c41fc65bcfb4 | 270 | * @brief AF 1 selection |
mbed_official | 205:c41fc65bcfb4 | 271 | */ |
mbed_official | 205:c41fc65bcfb4 | 272 | #define GPIO_AF1_TIM3 ((uint8_t)0x01) /* TIM3 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 273 | #define GPIO_AF1_TIM15 ((uint8_t)0x01) /* TIM15 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 274 | #define GPIO_AF1_USART1 ((uint8_t)0x01) /* USART1 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 275 | #define GPIO_AF1_USART2 ((uint8_t)0x01) /* USART2 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 276 | #define GPIO_AF1_EVENTOUT ((uint8_t)0x01) /* EVENTOUT Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 277 | #define GPIO_AF1_I2C1 ((uint8_t)0x01) /* I2C1 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 278 | #define GPIO_AF1_I2C2 ((uint8_t)0x01) /* I2C2 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 279 | #define GPIO_AF1_IR ((uint8_t)0x01) /* IR Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 280 | #define GPIO_AF1_CEC ((uint8_t)0x01) /* CEC Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 281 | |
mbed_official | 205:c41fc65bcfb4 | 282 | /** |
mbed_official | 205:c41fc65bcfb4 | 283 | * @brief AF 2 selection |
mbed_official | 205:c41fc65bcfb4 | 284 | */ |
mbed_official | 205:c41fc65bcfb4 | 285 | #define GPIO_AF2_TIM1 ((uint8_t)0x02) /* TIM1 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 286 | #define GPIO_AF2_TIM2 ((uint8_t)0x02) /* TIM2 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 287 | #define GPIO_AF2_TIM16 ((uint8_t)0x02) /* TIM16 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 288 | #define GPIO_AF2_TIM17 ((uint8_t)0x02) /* TIM17 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 289 | #define GPIO_AF2_EVENTOUT ((uint8_t)0x02) /* EVENTOUT Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 290 | |
mbed_official | 205:c41fc65bcfb4 | 291 | /** |
mbed_official | 205:c41fc65bcfb4 | 292 | * @brief AF 3 selection |
mbed_official | 205:c41fc65bcfb4 | 293 | */ |
mbed_official | 205:c41fc65bcfb4 | 294 | #define GPIO_AF3_EVENTOUT ((uint8_t)0x03) /* EVENTOUT Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 295 | #define GPIO_AF3_I2C1 ((uint8_t)0x03) /* I2C1 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 296 | #define GPIO_AF3_TIM15 ((uint8_t)0x03) /* TIM15 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 297 | #define GPIO_AF3_TSC ((uint8_t)0x03) /* TSC Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 298 | |
mbed_official | 205:c41fc65bcfb4 | 299 | /** |
mbed_official | 205:c41fc65bcfb4 | 300 | * @brief AF 4 selection |
mbed_official | 205:c41fc65bcfb4 | 301 | */ |
mbed_official | 205:c41fc65bcfb4 | 302 | #define GPIO_AF4_TIM14 ((uint8_t)0x04) /* TIM14 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 303 | |
mbed_official | 205:c41fc65bcfb4 | 304 | /** |
mbed_official | 205:c41fc65bcfb4 | 305 | * @brief AF 5 selection |
mbed_official | 205:c41fc65bcfb4 | 306 | */ |
mbed_official | 205:c41fc65bcfb4 | 307 | #define GPIO_AF5_TIM16 ((uint8_t)0x05) /* TIM16 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 308 | #define GPIO_AF5_TIM17 ((uint8_t)0x05) /* TIM17 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 309 | |
mbed_official | 205:c41fc65bcfb4 | 310 | /** |
mbed_official | 205:c41fc65bcfb4 | 311 | * @brief AF 6 selection |
mbed_official | 205:c41fc65bcfb4 | 312 | */ |
mbed_official | 205:c41fc65bcfb4 | 313 | #define GPIO_AF6_EVENTOUT ((uint8_t)0x06) /* EVENTOUT Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 314 | |
mbed_official | 205:c41fc65bcfb4 | 315 | /** |
mbed_official | 205:c41fc65bcfb4 | 316 | * @brief AF 7 selection |
mbed_official | 205:c41fc65bcfb4 | 317 | */ |
mbed_official | 205:c41fc65bcfb4 | 318 | #define GPIO_AF7_COMP1 ((uint8_t)0x07) /* COMP1 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 319 | #define GPIO_AF7_COMP2 ((uint8_t)0x07) /* COMP2 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 320 | |
mbed_official | 205:c41fc65bcfb4 | 321 | #define IS_GPIO_AF(AF) ((AF) <= (uint8_t)0x07) |
mbed_official | 205:c41fc65bcfb4 | 322 | |
mbed_official | 205:c41fc65bcfb4 | 323 | #endif /* STM32F051x8/STM32F058xx */ |
mbed_official | 205:c41fc65bcfb4 | 324 | |
mbed_official | 205:c41fc65bcfb4 | 325 | #if defined (STM32F071xB) |
mbed_official | 205:c41fc65bcfb4 | 326 | /*--------------------------- STM32F071xB ---------------------------*/ |
mbed_official | 205:c41fc65bcfb4 | 327 | /** |
mbed_official | 205:c41fc65bcfb4 | 328 | * @brief AF 0 selection |
mbed_official | 205:c41fc65bcfb4 | 329 | */ |
mbed_official | 205:c41fc65bcfb4 | 330 | #define GPIO_AF0_EVENTOUT ((uint8_t)0x00) /* EVENTOUT Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 331 | #define GPIO_AF0_SWDIO ((uint8_t)0x00) /* SWDIO Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 332 | #define GPIO_AF0_SWCLK ((uint8_t)0x00) /* SWCLK Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 333 | #define GPIO_AF0_MCO ((uint8_t)0x00) /* MCO Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 334 | #define GPIO_AF0_CEC ((uint8_t)0x00) /* CEC Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 335 | #define GPIO_AF0_CRS ((uint8_t)0x00) /* CRS Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 336 | #define GPIO_AF0_IR ((uint8_t)0x00) /* IR Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 337 | #define GPIO_AF0_SPI1 ((uint8_t)0x00) /* SPI1/I2S1 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 338 | #define GPIO_AF0_SPI2 ((uint8_t)0x00) /* SPI2/I2S2 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 339 | #define GPIO_AF0_TIM1 ((uint8_t)0x00) /* TIM1 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 340 | #define GPIO_AF0_TIM3 ((uint8_t)0x00) /* TIM3 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 341 | #define GPIO_AF0_TIM14 ((uint8_t)0x00) /* TIM14 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 342 | #define GPIO_AF0_TIM15 ((uint8_t)0x00) /* TIM15 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 343 | #define GPIO_AF0_TIM16 ((uint8_t)0x00) /* TIM16 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 344 | #define GPIO_AF0_TIM17 ((uint8_t)0x00) /* TIM17 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 345 | #define GPIO_AF0_TSC ((uint8_t)0x00) /* TSC Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 346 | #define GPIO_AF0_USART1 ((uint8_t)0x00) /* USART1 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 347 | #define GPIO_AF0_USART2 ((uint8_t)0x00) /* USART2 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 348 | #define GPIO_AF0_USART3 ((uint8_t)0x00) /* USART3 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 349 | #define GPIO_AF0_USART4 ((uint8_t)0x00) /* USART4 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 350 | |
mbed_official | 205:c41fc65bcfb4 | 351 | /** |
mbed_official | 205:c41fc65bcfb4 | 352 | * @brief AF 1 selection |
mbed_official | 205:c41fc65bcfb4 | 353 | */ |
mbed_official | 205:c41fc65bcfb4 | 354 | #define GPIO_AF1_TIM3 ((uint8_t)0x01) /* TIM3 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 355 | #define GPIO_AF1_TIM15 ((uint8_t)0x01) /* TIM15 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 356 | #define GPIO_AF1_USART1 ((uint8_t)0x01) /* USART1 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 357 | #define GPIO_AF1_USART2 ((uint8_t)0x01) /* USART2 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 358 | #define GPIO_AF1_USART3 ((uint8_t)0x01) /* USART3 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 359 | #define GPIO_AF1_IR ((uint8_t)0x01) /* IR Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 360 | #define GPIO_AF1_CEC ((uint8_t)0x01) /* CEC Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 361 | #define GPIO_AF1_EVENTOUT ((uint8_t)0x01) /* EVENTOUT Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 362 | #define GPIO_AF1_I2C1 ((uint8_t)0x01) /* I2C1 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 363 | #define GPIO_AF1_I2C2 ((uint8_t)0x01) /* I2C2 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 364 | #define GPIO_AF1_TSC ((uint8_t)0x01) /* TSC Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 365 | #define GPIO_AF1_SPI1 ((uint8_t)0x01) /* SPI1 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 366 | #define GPIO_AF1_SPI2 ((uint8_t)0x01) /* SPI2 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 367 | |
mbed_official | 205:c41fc65bcfb4 | 368 | /** |
mbed_official | 205:c41fc65bcfb4 | 369 | * @brief AF 2 selection |
mbed_official | 205:c41fc65bcfb4 | 370 | */ |
mbed_official | 205:c41fc65bcfb4 | 371 | #define GPIO_AF2_TIM1 ((uint8_t)0x02) /* TIM1 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 372 | #define GPIO_AF2_TIM2 ((uint8_t)0x02) /* TIM2 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 373 | #define GPIO_AF2_TIM16 ((uint8_t)0x02) /* TIM16 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 374 | #define GPIO_AF2_TIM17 ((uint8_t)0x02) /* TIM17 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 375 | #define GPIO_AF2_EVENTOUT ((uint8_t)0x02) /* EVENTOUT Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 376 | |
mbed_official | 205:c41fc65bcfb4 | 377 | /** |
mbed_official | 205:c41fc65bcfb4 | 378 | * @brief AF 3 selection |
mbed_official | 205:c41fc65bcfb4 | 379 | */ |
mbed_official | 205:c41fc65bcfb4 | 380 | #define GPIO_AF3_EVENTOUT ((uint8_t)0x03) /* EVENTOUT Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 381 | #define GPIO_AF3_TSC ((uint8_t)0x03) /* TSC Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 382 | #define GPIO_AF3_TIM15 ((uint8_t)0x03) /* TIM15 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 383 | #define GPIO_AF3_I2C1 ((uint8_t)0x03) /* I2C1 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 384 | |
mbed_official | 205:c41fc65bcfb4 | 385 | /** |
mbed_official | 205:c41fc65bcfb4 | 386 | * @brief AF 4 selection |
mbed_official | 205:c41fc65bcfb4 | 387 | */ |
mbed_official | 205:c41fc65bcfb4 | 388 | #define GPIO_AF4_TIM14 ((uint8_t)0x04) /* TIM14 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 389 | #define GPIO_AF4_USART4 ((uint8_t)0x04) /* USART4 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 390 | #define GPIO_AF4_USART3 ((uint8_t)0x04) /* USART3 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 391 | #define GPIO_AF4_CRS ((uint8_t)0x04) /* CRS Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 392 | |
mbed_official | 205:c41fc65bcfb4 | 393 | /** |
mbed_official | 205:c41fc65bcfb4 | 394 | * @brief AF 5 selection |
mbed_official | 205:c41fc65bcfb4 | 395 | */ |
mbed_official | 205:c41fc65bcfb4 | 396 | #define GPIO_AF5_TIM15 ((uint8_t)0x05) /* TIM15 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 397 | #define GPIO_AF5_TIM16 ((uint8_t)0x05) /* TIM16 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 398 | #define GPIO_AF5_TIM17 ((uint8_t)0x05) /* TIM17 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 399 | #define GPIO_AF5_SPI2 ((uint8_t)0x05) /* SPI2 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 400 | #define GPIO_AF5_I2C2 ((uint8_t)0x05) /* I2C2 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 401 | |
mbed_official | 205:c41fc65bcfb4 | 402 | /** |
mbed_official | 205:c41fc65bcfb4 | 403 | * @brief AF 6 selection |
mbed_official | 205:c41fc65bcfb4 | 404 | */ |
mbed_official | 205:c41fc65bcfb4 | 405 | #define GPIO_AF6_EVENTOUT ((uint8_t)0x06) /* EVENTOUT Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 406 | |
mbed_official | 205:c41fc65bcfb4 | 407 | /** |
mbed_official | 205:c41fc65bcfb4 | 408 | * @brief AF 7 selection |
mbed_official | 205:c41fc65bcfb4 | 409 | */ |
mbed_official | 205:c41fc65bcfb4 | 410 | #define GPIO_AF7_COMP1 ((uint8_t)0x07) /* COMP1 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 411 | #define GPIO_AF7_COMP2 ((uint8_t)0x07) /* COMP2 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 412 | |
mbed_official | 205:c41fc65bcfb4 | 413 | #define IS_GPIO_AF(AF) ((AF) <= (uint8_t)0x07) |
mbed_official | 205:c41fc65bcfb4 | 414 | |
mbed_official | 205:c41fc65bcfb4 | 415 | #endif /* STM32F071xB */ |
mbed_official | 205:c41fc65bcfb4 | 416 | |
mbed_official | 205:c41fc65bcfb4 | 417 | |
mbed_official | 205:c41fc65bcfb4 | 418 | #if defined (STM32F072xB) || defined (STM32F078xx) |
mbed_official | 205:c41fc65bcfb4 | 419 | /*--------------------------- STM32F072xB/STM32F078xx ---------------------------*/ |
mbed_official | 205:c41fc65bcfb4 | 420 | /** |
mbed_official | 205:c41fc65bcfb4 | 421 | * @brief AF 0 selection |
mbed_official | 205:c41fc65bcfb4 | 422 | */ |
mbed_official | 205:c41fc65bcfb4 | 423 | #define GPIO_AF0_EVENTOUT ((uint8_t)0x00) /* EVENTOUT Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 424 | #define GPIO_AF0_SWDIO ((uint8_t)0x00) /* SWDIO Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 425 | #define GPIO_AF0_SWCLK ((uint8_t)0x00) /* SWCLK Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 426 | #define GPIO_AF0_MCO ((uint8_t)0x00) /* MCO Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 427 | #define GPIO_AF0_CEC ((uint8_t)0x00) /* CEC Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 428 | #define GPIO_AF0_CRS ((uint8_t)0x00) /* CRS Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 429 | #define GPIO_AF0_IR ((uint8_t)0x00) /* IR Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 430 | #define GPIO_AF0_SPI1 ((uint8_t)0x00) /* SPI1/I2S1 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 431 | #define GPIO_AF0_SPI2 ((uint8_t)0x00) /* SPI2/I2S2 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 432 | #define GPIO_AF0_TIM1 ((uint8_t)0x00) /* TIM1 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 433 | #define GPIO_AF0_TIM3 ((uint8_t)0x00) /* TIM3 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 434 | #define GPIO_AF0_TIM14 ((uint8_t)0x00) /* TIM14 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 435 | #define GPIO_AF0_TIM15 ((uint8_t)0x00) /* TIM15 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 436 | #define GPIO_AF0_TIM16 ((uint8_t)0x00) /* TIM16 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 437 | #define GPIO_AF0_TIM17 ((uint8_t)0x00) /* TIM17 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 438 | #define GPIO_AF0_TSC ((uint8_t)0x00) /* TSC Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 439 | #define GPIO_AF0_USART1 ((uint8_t)0x00) /* USART1 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 440 | #define GPIO_AF0_USART2 ((uint8_t)0x00) /* USART2 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 441 | #define GPIO_AF0_USART3 ((uint8_t)0x00) /* USART2 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 442 | #define GPIO_AF0_USART4 ((uint8_t)0x00) /* USART4 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 443 | #define GPIO_AF0_CAN ((uint8_t)0x00) /* CAN Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 444 | |
mbed_official | 205:c41fc65bcfb4 | 445 | /** |
mbed_official | 205:c41fc65bcfb4 | 446 | * @brief AF 1 selection |
mbed_official | 205:c41fc65bcfb4 | 447 | */ |
mbed_official | 205:c41fc65bcfb4 | 448 | #define GPIO_AF1_TIM3 ((uint8_t)0x01) /* TIM3 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 449 | #define GPIO_AF1_TIM15 ((uint8_t)0x01) /* TIM15 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 450 | #define GPIO_AF1_USART1 ((uint8_t)0x01) /* USART1 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 451 | #define GPIO_AF1_USART2 ((uint8_t)0x01) /* USART2 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 452 | #define GPIO_AF1_USART3 ((uint8_t)0x01) /* USART3 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 453 | #define GPIO_AF1_IR ((uint8_t)0x01) /* IR Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 454 | #define GPIO_AF1_CEC ((uint8_t)0x01) /* CEC Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 455 | #define GPIO_AF1_EVENTOUT ((uint8_t)0x01) /* EVENTOUT Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 456 | #define GPIO_AF1_I2C1 ((uint8_t)0x01) /* I2C1 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 457 | #define GPIO_AF1_I2C2 ((uint8_t)0x01) /* I2C1 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 458 | #define GPIO_AF1_TSC ((uint8_t)0x01) /* I2C1 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 459 | #define GPIO_AF1_SPI1 ((uint8_t)0x01) /* SPI1 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 460 | #define GPIO_AF1_SPI2 ((uint8_t)0x01) /* SPI2 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 461 | |
mbed_official | 205:c41fc65bcfb4 | 462 | /** |
mbed_official | 205:c41fc65bcfb4 | 463 | * @brief AF 2 selection |
mbed_official | 205:c41fc65bcfb4 | 464 | */ |
mbed_official | 205:c41fc65bcfb4 | 465 | #define GPIO_AF2_TIM1 ((uint8_t)0x02) /* TIM1 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 466 | #define GPIO_AF2_TIM2 ((uint8_t)0x02) /* TIM2 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 467 | #define GPIO_AF2_TIM16 ((uint8_t)0x02) /* TIM16 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 468 | #define GPIO_AF2_TIM17 ((uint8_t)0x02) /* TIM17 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 469 | #define GPIO_AF2_EVENTOUT ((uint8_t)0x02) /* EVENTOUT Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 470 | |
mbed_official | 205:c41fc65bcfb4 | 471 | #define GPIO_AF2_USB ((uint8_t)0x02) /* USB Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 472 | |
mbed_official | 205:c41fc65bcfb4 | 473 | /** |
mbed_official | 205:c41fc65bcfb4 | 474 | * @brief AF 3 selection |
mbed_official | 205:c41fc65bcfb4 | 475 | */ |
mbed_official | 205:c41fc65bcfb4 | 476 | #define GPIO_AF3_EVENTOUT ((uint8_t)0x03) /* EVENTOUT Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 477 | #define GPIO_AF3_TSC ((uint8_t)0x03) /* TSC Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 478 | #define GPIO_AF3_TIM15 ((uint8_t)0x03) /* TIM15 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 479 | #define GPIO_AF3_I2C1 ((uint8_t)0x03) /* I2C1 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 480 | |
mbed_official | 205:c41fc65bcfb4 | 481 | /** |
mbed_official | 205:c41fc65bcfb4 | 482 | * @brief AF 4 selection |
mbed_official | 205:c41fc65bcfb4 | 483 | */ |
mbed_official | 205:c41fc65bcfb4 | 484 | #define GPIO_AF4_TIM14 ((uint8_t)0x04) /* TIM14 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 485 | #define GPIO_AF4_USART4 ((uint8_t)0x04) /* USART4 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 486 | #define GPIO_AF4_USART3 ((uint8_t)0x04) /* USART3 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 487 | #define GPIO_AF4_CRS ((uint8_t)0x04) /* CRS Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 488 | |
mbed_official | 205:c41fc65bcfb4 | 489 | #define GPIO_AF4_CAN ((uint8_t)0x04) /* CAN Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 490 | |
mbed_official | 205:c41fc65bcfb4 | 491 | /** |
mbed_official | 205:c41fc65bcfb4 | 492 | * @brief AF 5 selection |
mbed_official | 205:c41fc65bcfb4 | 493 | */ |
mbed_official | 205:c41fc65bcfb4 | 494 | #define GPIO_AF5_TIM15 ((uint8_t)0x05) /* TIM15 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 495 | #define GPIO_AF5_TIM16 ((uint8_t)0x05) /* TIM16 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 496 | #define GPIO_AF5_TIM17 ((uint8_t)0x05) /* TIM17 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 497 | #define GPIO_AF5_SPI2 ((uint8_t)0x05) /* SPI2 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 498 | #define GPIO_AF5_I2C2 ((uint8_t)0x05) /* I2C2 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 499 | |
mbed_official | 205:c41fc65bcfb4 | 500 | /** |
mbed_official | 205:c41fc65bcfb4 | 501 | * @brief AF 6 selection |
mbed_official | 205:c41fc65bcfb4 | 502 | */ |
mbed_official | 205:c41fc65bcfb4 | 503 | #define GPIO_AF6_EVENTOUT ((uint8_t)0x06) /* EVENTOUT Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 504 | |
mbed_official | 205:c41fc65bcfb4 | 505 | /** |
mbed_official | 205:c41fc65bcfb4 | 506 | * @brief AF 7 selection |
mbed_official | 205:c41fc65bcfb4 | 507 | */ |
mbed_official | 205:c41fc65bcfb4 | 508 | #define GPIO_AF7_COMP1 ((uint8_t)0x07) /* COMP1 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 509 | #define GPIO_AF7_COMP2 ((uint8_t)0x07) /* COMP2 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 510 | |
mbed_official | 205:c41fc65bcfb4 | 511 | #define IS_GPIO_AF(AF) ((AF) <= (uint8_t)0x07) |
mbed_official | 205:c41fc65bcfb4 | 512 | |
mbed_official | 205:c41fc65bcfb4 | 513 | #endif /* STM32F072xB || STM32F078xx */ |
mbed_official | 205:c41fc65bcfb4 | 514 | |
mbed_official | 205:c41fc65bcfb4 | 515 | #if defined (STM32F042x6) |
mbed_official | 205:c41fc65bcfb4 | 516 | /*--------------------------- STM32F042x6 ---------------------------*/ |
mbed_official | 205:c41fc65bcfb4 | 517 | /** |
mbed_official | 205:c41fc65bcfb4 | 518 | * @brief AF 0 selection on PA, PB, PF |
mbed_official | 205:c41fc65bcfb4 | 519 | */ |
mbed_official | 205:c41fc65bcfb4 | 520 | #define GPIO_AF0_EVENTOUT ((uint8_t)0x00) /* EVENTOUT Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 521 | #define GPIO_AF0_CEC ((uint8_t)0x00) /* CEC Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 522 | #define GPIO_AF0_CRS ((uint8_t)0x00) /* CRS Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 523 | #define GPIO_AF0_IR ((uint8_t)0x00) /* IR Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 524 | #define GPIO_AF0_MCO ((uint8_t)0x00) /* MCO Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 525 | #define GPIO_AF0_SPI1 ((uint8_t)0x00) /* SPI1/I2S1 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 526 | #define GPIO_AF0_SPI2 ((uint8_t)0x00) /* SPI2/I2S2 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 527 | #define GPIO_AF0_SWDIO ((uint8_t)0x00) /* SWDIO Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 528 | #define GPIO_AF0_SWCLK ((uint8_t)0x00) /* SWCLK Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 529 | #define GPIO_AF0_TIM14 ((uint8_t)0x00) /* TIM14 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 530 | #define GPIO_AF0_TIM17 ((uint8_t)0x00) /* TIM17 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 531 | #define GPIO_AF0_USART1 ((uint8_t)0x00) /* USART1 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 532 | |
mbed_official | 205:c41fc65bcfb4 | 533 | /** |
mbed_official | 205:c41fc65bcfb4 | 534 | * @brief AF 1 selection on PA, PB, PF |
mbed_official | 205:c41fc65bcfb4 | 535 | */ |
mbed_official | 205:c41fc65bcfb4 | 536 | #define GPIO_AF1_CEC ((uint8_t)0x01) /* CEC Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 537 | #define GPIO_AF1_EVENTOUT ((uint8_t)0x01) /* EVENTOUT Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 538 | #define GPIO_AF1_I2C1 ((uint8_t)0x01) /* I2C1 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 539 | #define GPIO_AF1_IR ((uint8_t)0x01) /* IR Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 540 | #define GPIO_AF1_USART1 ((uint8_t)0x01) /* USART1 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 541 | #define GPIO_AF1_USART2 ((uint8_t)0x01) /* USART2 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 542 | #define GPIO_AF1_TIM3 ((uint8_t)0x01) /* TIM3 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 543 | |
mbed_official | 205:c41fc65bcfb4 | 544 | /** |
mbed_official | 205:c41fc65bcfb4 | 545 | * @brief AF 2 selection on PA, PB |
mbed_official | 205:c41fc65bcfb4 | 546 | */ |
mbed_official | 205:c41fc65bcfb4 | 547 | #define GPIO_AF2_EVENTOUT ((uint8_t)0x02) /* EVENTOUT Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 548 | #define GPIO_AF2_TIM1 ((uint8_t)0x02) /* TIM1 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 549 | #define GPIO_AF2_TIM2 ((uint8_t)0x02) /* TIM2 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 550 | #define GPIO_AF2_TIM16 ((uint8_t)0x02) /* TIM16 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 551 | #define GPIO_AF2_TIM17 ((uint8_t)0x02) /* TIM17 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 552 | #define GPIO_AF2_USB ((uint8_t)0x02) /* USB Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 553 | |
mbed_official | 205:c41fc65bcfb4 | 554 | /** |
mbed_official | 205:c41fc65bcfb4 | 555 | * @brief AF 3 selection on PA, PB |
mbed_official | 205:c41fc65bcfb4 | 556 | */ |
mbed_official | 205:c41fc65bcfb4 | 557 | #define GPIO_AF3_EVENTOUT ((uint8_t)0x03) /* EVENTOUT Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 558 | #define GPIO_AF3_I2C1 ((uint8_t)0x03) /* I2C1 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 559 | #define GPIO_AF3_TSC ((uint8_t)0x03) /* TSC Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 560 | |
mbed_official | 205:c41fc65bcfb4 | 561 | /** |
mbed_official | 205:c41fc65bcfb4 | 562 | * @brief AF 4 selection on PA, PB |
mbed_official | 205:c41fc65bcfb4 | 563 | */ |
mbed_official | 205:c41fc65bcfb4 | 564 | #define GPIO_AF4_TIM14 ((uint8_t)0x04) /* TIM14 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 565 | #define GPIO_AF4_CAN ((uint8_t)0x04) /* CAN Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 566 | #define GPIO_AF4_CRS ((uint8_t)0x04) /* CRS Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 567 | #define GPIO_AF4_I2C1 ((uint8_t)0x04) /* I2C1 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 568 | |
mbed_official | 205:c41fc65bcfb4 | 569 | /** |
mbed_official | 205:c41fc65bcfb4 | 570 | * @brief AF 5 selection on PA, PB |
mbed_official | 205:c41fc65bcfb4 | 571 | */ |
mbed_official | 205:c41fc65bcfb4 | 572 | #define GPIO_AF5_MCO ((uint8_t)0x05) /* MCO Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 573 | #define GPIO_AF5_I2C1 ((uint8_t)0x05) /* I2C1 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 574 | #define GPIO_AF5_I2C2 ((uint8_t)0x05) /* I2C2 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 575 | #define GPIO_AF5_SPI2 ((uint8_t)0x05) /* SPI2 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 576 | #define GPIO_AF5_TIM16 ((uint8_t)0x05) /* TIM16 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 577 | #define GPIO_AF5_TIM17 ((uint8_t)0x05) /* TIM17 Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 578 | #define GPIO_AF5_USB ((uint8_t)0x05) /* USB Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 579 | |
mbed_official | 205:c41fc65bcfb4 | 580 | /** |
mbed_official | 205:c41fc65bcfb4 | 581 | * @brief AF 6 selection on PA |
mbed_official | 205:c41fc65bcfb4 | 582 | */ |
mbed_official | 205:c41fc65bcfb4 | 583 | #define GPIO_AF6_EVENTOUT ((uint8_t)0x06) /* EVENTOUT Alternate Function mapping */ |
mbed_official | 205:c41fc65bcfb4 | 584 | |
mbed_official | 205:c41fc65bcfb4 | 585 | #define IS_GPIO_AF(AF) ((AF) <= (uint8_t)0x06) |
mbed_official | 205:c41fc65bcfb4 | 586 | |
mbed_official | 205:c41fc65bcfb4 | 587 | #endif /* STM32F042x6 || STM32F048xx */ |
mbed_official | 205:c41fc65bcfb4 | 588 | |
mbed_official | 205:c41fc65bcfb4 | 589 | /** |
mbed_official | 205:c41fc65bcfb4 | 590 | * @} |
mbed_official | 205:c41fc65bcfb4 | 591 | */ |
mbed_official | 205:c41fc65bcfb4 | 592 | |
mbed_official | 205:c41fc65bcfb4 | 593 | /** |
mbed_official | 205:c41fc65bcfb4 | 594 | * @} |
mbed_official | 205:c41fc65bcfb4 | 595 | */ |
mbed_official | 205:c41fc65bcfb4 | 596 | |
mbed_official | 205:c41fc65bcfb4 | 597 | /* Exported macro ------------------------------------------------------------*/ |
mbed_official | 205:c41fc65bcfb4 | 598 | /* Exported functions --------------------------------------------------------*/ |
mbed_official | 205:c41fc65bcfb4 | 599 | |
mbed_official | 205:c41fc65bcfb4 | 600 | |
mbed_official | 205:c41fc65bcfb4 | 601 | /** |
mbed_official | 205:c41fc65bcfb4 | 602 | * @} |
mbed_official | 205:c41fc65bcfb4 | 603 | */ |
mbed_official | 205:c41fc65bcfb4 | 604 | |
mbed_official | 205:c41fc65bcfb4 | 605 | /** |
mbed_official | 205:c41fc65bcfb4 | 606 | * @} |
mbed_official | 205:c41fc65bcfb4 | 607 | */ |
mbed_official | 205:c41fc65bcfb4 | 608 | |
mbed_official | 205:c41fc65bcfb4 | 609 | #ifdef __cplusplus |
mbed_official | 205:c41fc65bcfb4 | 610 | } |
mbed_official | 205:c41fc65bcfb4 | 611 | #endif |
mbed_official | 205:c41fc65bcfb4 | 612 | |
mbed_official | 205:c41fc65bcfb4 | 613 | #endif /* __STM32F0xx_HAL_GPIO_EX_H */ |
mbed_official | 205:c41fc65bcfb4 | 614 | |
mbed_official | 205:c41fc65bcfb4 | 615 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |