mbed library sources

Dependents:   Encrypted my_mbed lklk CyaSSL_DTLS_Cellular ... more

Superseded

This library was superseded by mbed-dev - https://os.mbed.com/users/mbed_official/code/mbed-dev/.

Development branch of the mbed library sources. This library is kept in synch with the latest changes from the mbed SDK and it is not guaranteed to work.

If you are looking for a stable and tested release, please import one of the official mbed library releases:

Import librarymbed

The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

Committer:
mbed_official
Date:
Thu Jul 02 16:30:08 2015 +0100
Revision:
581:39197bcd20f2
Parent:
489:119543c9f674
Synchronized with git revision ae2d3cdffe70184eb8736d94f76c45c93f4b7724

Full URL: https://github.com/mbedmicro/mbed/commit/ae2d3cdffe70184eb8736d94f76c45c93f4b7724/

Make it possible to build the core mbed library with yotta

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 489:119543c9f674 1 /**
mbed_official 489:119543c9f674 2 ******************************************************************************
mbed_official 489:119543c9f674 3 * @file stm32f1xx_hal_gpio.h
mbed_official 489:119543c9f674 4 * @author MCD Application Team
mbed_official 489:119543c9f674 5 * @version V1.0.0
mbed_official 489:119543c9f674 6 * @date 15-December-2014
mbed_official 489:119543c9f674 7 * @brief Header file of GPIO HAL module.
mbed_official 489:119543c9f674 8 ******************************************************************************
mbed_official 489:119543c9f674 9 * @attention
mbed_official 489:119543c9f674 10 *
mbed_official 489:119543c9f674 11 * <h2><center>&copy; COPYRIGHT(c) 2014 STMicroelectronics</center></h2>
mbed_official 489:119543c9f674 12 *
mbed_official 489:119543c9f674 13 * Redistribution and use in source and binary forms, with or without modification,
mbed_official 489:119543c9f674 14 * are permitted provided that the following conditions are met:
mbed_official 489:119543c9f674 15 * 1. Redistributions of source code must retain the above copyright notice,
mbed_official 489:119543c9f674 16 * this list of conditions and the following disclaimer.
mbed_official 489:119543c9f674 17 * 2. Redistributions in binary form must reproduce the above copyright notice,
mbed_official 489:119543c9f674 18 * this list of conditions and the following disclaimer in the documentation
mbed_official 489:119543c9f674 19 * and/or other materials provided with the distribution.
mbed_official 489:119543c9f674 20 * 3. Neither the name of STMicroelectronics nor the names of its contributors
mbed_official 489:119543c9f674 21 * may be used to endorse or promote products derived from this software
mbed_official 489:119543c9f674 22 * without specific prior written permission.
mbed_official 489:119543c9f674 23 *
mbed_official 489:119543c9f674 24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
mbed_official 489:119543c9f674 25 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
mbed_official 489:119543c9f674 26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
mbed_official 489:119543c9f674 27 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
mbed_official 489:119543c9f674 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
mbed_official 489:119543c9f674 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
mbed_official 489:119543c9f674 30 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
mbed_official 489:119543c9f674 31 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
mbed_official 489:119543c9f674 32 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
mbed_official 489:119543c9f674 33 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
mbed_official 489:119543c9f674 34 *
mbed_official 489:119543c9f674 35 ******************************************************************************
mbed_official 489:119543c9f674 36 */
mbed_official 489:119543c9f674 37
mbed_official 489:119543c9f674 38 /* Define to prevent recursive inclusion -------------------------------------*/
mbed_official 489:119543c9f674 39 #ifndef __STM32F1xx_HAL_GPIO_H
mbed_official 489:119543c9f674 40 #define __STM32F1xx_HAL_GPIO_H
mbed_official 489:119543c9f674 41
mbed_official 489:119543c9f674 42 #ifdef __cplusplus
mbed_official 489:119543c9f674 43 extern "C" {
mbed_official 489:119543c9f674 44 #endif
mbed_official 489:119543c9f674 45
mbed_official 489:119543c9f674 46 /* Includes ------------------------------------------------------------------*/
mbed_official 489:119543c9f674 47 #include "stm32f1xx_hal_def.h"
mbed_official 489:119543c9f674 48
mbed_official 489:119543c9f674 49 /** @addtogroup STM32F1xx_HAL_Driver
mbed_official 489:119543c9f674 50 * @{
mbed_official 489:119543c9f674 51 */
mbed_official 489:119543c9f674 52
mbed_official 489:119543c9f674 53 /** @addtogroup GPIO
mbed_official 489:119543c9f674 54 * @{
mbed_official 489:119543c9f674 55 */
mbed_official 489:119543c9f674 56
mbed_official 489:119543c9f674 57 /* Exported types ------------------------------------------------------------*/
mbed_official 489:119543c9f674 58 /** @defgroup GPIO_Exported_Types GPIO Exported Types
mbed_official 489:119543c9f674 59 * @{
mbed_official 489:119543c9f674 60 */
mbed_official 489:119543c9f674 61
mbed_official 489:119543c9f674 62 /**
mbed_official 489:119543c9f674 63 * @brief GPIO Init structure definition
mbed_official 489:119543c9f674 64 */
mbed_official 489:119543c9f674 65 typedef struct
mbed_official 489:119543c9f674 66 {
mbed_official 489:119543c9f674 67 uint32_t Pin; /*!< Specifies the GPIO pins to be configured.
mbed_official 489:119543c9f674 68 This parameter can be any value of @ref GPIO_pins_define */
mbed_official 489:119543c9f674 69
mbed_official 489:119543c9f674 70 uint32_t Mode; /*!< Specifies the operating mode for the selected pins.
mbed_official 489:119543c9f674 71 This parameter can be a value of @ref GPIO_mode_define */
mbed_official 489:119543c9f674 72
mbed_official 489:119543c9f674 73 uint32_t Pull; /*!< Specifies the Pull-up or Pull-Down activation for the selected pins.
mbed_official 489:119543c9f674 74 This parameter can be a value of @ref GPIO_pull_define */
mbed_official 489:119543c9f674 75
mbed_official 489:119543c9f674 76 uint32_t Speed; /*!< Specifies the speed for the selected pins.
mbed_official 489:119543c9f674 77 This parameter can be a value of @ref GPIO_speed_define */
mbed_official 489:119543c9f674 78 }GPIO_InitTypeDef;
mbed_official 489:119543c9f674 79
mbed_official 489:119543c9f674 80 /**
mbed_official 489:119543c9f674 81 * @brief GPIO Bit SET and Bit RESET enumeration
mbed_official 489:119543c9f674 82 */
mbed_official 489:119543c9f674 83 typedef enum
mbed_official 489:119543c9f674 84 {
mbed_official 489:119543c9f674 85 GPIO_PIN_RESET = 0,
mbed_official 489:119543c9f674 86 GPIO_PIN_SET
mbed_official 489:119543c9f674 87 }GPIO_PinState;
mbed_official 489:119543c9f674 88
mbed_official 489:119543c9f674 89 /**
mbed_official 489:119543c9f674 90 * @}
mbed_official 489:119543c9f674 91 */
mbed_official 489:119543c9f674 92
mbed_official 489:119543c9f674 93
mbed_official 489:119543c9f674 94 /* Exported constants --------------------------------------------------------*/
mbed_official 489:119543c9f674 95
mbed_official 489:119543c9f674 96 /** @defgroup GPIO_Exported_Constants GPIO Exported Constants
mbed_official 489:119543c9f674 97 * @{
mbed_official 489:119543c9f674 98 */
mbed_official 489:119543c9f674 99
mbed_official 489:119543c9f674 100 /** @defgroup GPIO_pins_define GPIO pins define
mbed_official 489:119543c9f674 101 * @{
mbed_official 489:119543c9f674 102 */
mbed_official 489:119543c9f674 103 #define GPIO_PIN_0 ((uint16_t)0x0001) /* Pin 0 selected */
mbed_official 489:119543c9f674 104 #define GPIO_PIN_1 ((uint16_t)0x0002) /* Pin 1 selected */
mbed_official 489:119543c9f674 105 #define GPIO_PIN_2 ((uint16_t)0x0004) /* Pin 2 selected */
mbed_official 489:119543c9f674 106 #define GPIO_PIN_3 ((uint16_t)0x0008) /* Pin 3 selected */
mbed_official 489:119543c9f674 107 #define GPIO_PIN_4 ((uint16_t)0x0010) /* Pin 4 selected */
mbed_official 489:119543c9f674 108 #define GPIO_PIN_5 ((uint16_t)0x0020) /* Pin 5 selected */
mbed_official 489:119543c9f674 109 #define GPIO_PIN_6 ((uint16_t)0x0040) /* Pin 6 selected */
mbed_official 489:119543c9f674 110 #define GPIO_PIN_7 ((uint16_t)0x0080) /* Pin 7 selected */
mbed_official 489:119543c9f674 111 #define GPIO_PIN_8 ((uint16_t)0x0100) /* Pin 8 selected */
mbed_official 489:119543c9f674 112 #define GPIO_PIN_9 ((uint16_t)0x0200) /* Pin 9 selected */
mbed_official 489:119543c9f674 113 #define GPIO_PIN_10 ((uint16_t)0x0400) /* Pin 10 selected */
mbed_official 489:119543c9f674 114 #define GPIO_PIN_11 ((uint16_t)0x0800) /* Pin 11 selected */
mbed_official 489:119543c9f674 115 #define GPIO_PIN_12 ((uint16_t)0x1000) /* Pin 12 selected */
mbed_official 489:119543c9f674 116 #define GPIO_PIN_13 ((uint16_t)0x2000) /* Pin 13 selected */
mbed_official 489:119543c9f674 117 #define GPIO_PIN_14 ((uint16_t)0x4000) /* Pin 14 selected */
mbed_official 489:119543c9f674 118 #define GPIO_PIN_15 ((uint16_t)0x8000) /* Pin 15 selected */
mbed_official 489:119543c9f674 119 #define GPIO_PIN_All ((uint16_t)0xFFFF) /* All pins selected */
mbed_official 489:119543c9f674 120
mbed_official 489:119543c9f674 121 #define GPIO_PIN_MASK ((uint32_t)0x0000FFFF) /* PIN mask for assert test */
mbed_official 489:119543c9f674 122 /**
mbed_official 489:119543c9f674 123 * @}
mbed_official 489:119543c9f674 124 */
mbed_official 489:119543c9f674 125
mbed_official 489:119543c9f674 126
mbed_official 489:119543c9f674 127 /** @defgroup GPIO_mode_define GPIO mode define
mbed_official 489:119543c9f674 128 * @brief GPIO Configuration Mode
mbed_official 489:119543c9f674 129 * Elements values convention: 0xX0yz00YZ
mbed_official 489:119543c9f674 130 * - X : GPIO mode or EXTI Mode
mbed_official 489:119543c9f674 131 * - y : External IT or Event trigger detection
mbed_official 489:119543c9f674 132 * - z : IO configuration on External IT or Event
mbed_official 489:119543c9f674 133 * - Y : Output type (Push Pull or Open Drain)
mbed_official 489:119543c9f674 134 * - Z : IO Direction mode (Input, Output, Alternate or Analog)
mbed_official 489:119543c9f674 135 * @{
mbed_official 489:119543c9f674 136 */
mbed_official 489:119543c9f674 137 #define GPIO_MODE_INPUT ((uint32_t)0x00000000) /*!< Input Floating Mode */
mbed_official 489:119543c9f674 138 #define GPIO_MODE_OUTPUT_PP ((uint32_t)0x00000001) /*!< Output Push Pull Mode */
mbed_official 489:119543c9f674 139 #define GPIO_MODE_OUTPUT_OD ((uint32_t)0x00000011) /*!< Output Open Drain Mode */
mbed_official 489:119543c9f674 140 #define GPIO_MODE_AF_PP ((uint32_t)0x00000002) /*!< Alternate Function Push Pull Mode */
mbed_official 489:119543c9f674 141 #define GPIO_MODE_AF_OD ((uint32_t)0x00000012) /*!< Alternate Function Open Drain Mode */
mbed_official 489:119543c9f674 142 #define GPIO_MODE_AF_INPUT GPIO_MODE_INPUT /*!< Alternate Function Input Mode */
mbed_official 489:119543c9f674 143
mbed_official 489:119543c9f674 144 #define GPIO_MODE_ANALOG ((uint32_t)0x00000003) /*!< Analog Mode */
mbed_official 489:119543c9f674 145
mbed_official 489:119543c9f674 146 #define GPIO_MODE_IT_RISING ((uint32_t)0x10110000) /*!< External Interrupt Mode with Rising edge trigger detection */
mbed_official 489:119543c9f674 147 #define GPIO_MODE_IT_FALLING ((uint32_t)0x10210000) /*!< External Interrupt Mode with Falling edge trigger detection */
mbed_official 489:119543c9f674 148 #define GPIO_MODE_IT_RISING_FALLING ((uint32_t)0x10310000) /*!< External Interrupt Mode with Rising/Falling edge trigger detection */
mbed_official 489:119543c9f674 149
mbed_official 489:119543c9f674 150 #define GPIO_MODE_EVT_RISING ((uint32_t)0x10120000) /*!< External Event Mode with Rising edge trigger detection */
mbed_official 489:119543c9f674 151 #define GPIO_MODE_EVT_FALLING ((uint32_t)0x10220000) /*!< External Event Mode with Falling edge trigger detection */
mbed_official 489:119543c9f674 152 #define GPIO_MODE_EVT_RISING_FALLING ((uint32_t)0x10320000) /*!< External Event Mode with Rising/Falling edge trigger detection */
mbed_official 489:119543c9f674 153
mbed_official 489:119543c9f674 154 /**
mbed_official 489:119543c9f674 155 * @}
mbed_official 489:119543c9f674 156 */
mbed_official 489:119543c9f674 157
mbed_official 489:119543c9f674 158
mbed_official 489:119543c9f674 159 /** @defgroup GPIO_speed_define GPIO speed define
mbed_official 489:119543c9f674 160 * @brief GPIO Output Maximum frequency
mbed_official 489:119543c9f674 161 * @{
mbed_official 489:119543c9f674 162 */
mbed_official 489:119543c9f674 163 #define GPIO_SPEED_LOW (GPIO_CRL_MODE0_1) /*!< Low speed */
mbed_official 489:119543c9f674 164 #define GPIO_SPEED_MEDIUM (GPIO_CRL_MODE0_0) /*!< Medium speed */
mbed_official 489:119543c9f674 165 #define GPIO_SPEED_HIGH (GPIO_CRL_MODE0) /*!< High speed */
mbed_official 489:119543c9f674 166
mbed_official 489:119543c9f674 167 /**
mbed_official 489:119543c9f674 168 * @}
mbed_official 489:119543c9f674 169 */
mbed_official 489:119543c9f674 170
mbed_official 489:119543c9f674 171
mbed_official 489:119543c9f674 172 /** @defgroup GPIO_pull_define GPIO pull define
mbed_official 489:119543c9f674 173 * @brief GPIO Pull-Up or Pull-Down Activation
mbed_official 489:119543c9f674 174 * @{
mbed_official 489:119543c9f674 175 */
mbed_official 489:119543c9f674 176 #define GPIO_NOPULL ((uint32_t)0x00000000) /*!< No Pull-up or Pull-down activation */
mbed_official 489:119543c9f674 177 #define GPIO_PULLUP ((uint32_t)0x00000001) /*!< Pull-up activation */
mbed_official 489:119543c9f674 178 #define GPIO_PULLDOWN ((uint32_t)0x00000002) /*!< Pull-down activation */
mbed_official 489:119543c9f674 179
mbed_official 489:119543c9f674 180 /**
mbed_official 489:119543c9f674 181 * @}
mbed_official 489:119543c9f674 182 */
mbed_official 489:119543c9f674 183
mbed_official 489:119543c9f674 184 /**
mbed_official 489:119543c9f674 185 * @}
mbed_official 489:119543c9f674 186 */
mbed_official 489:119543c9f674 187
mbed_official 489:119543c9f674 188
mbed_official 489:119543c9f674 189 /* Private macros --------------------------------------------------------*/
mbed_official 489:119543c9f674 190 /** @addtogroup GPIO_Private_Macros
mbed_official 489:119543c9f674 191 * @{
mbed_official 489:119543c9f674 192 */
mbed_official 489:119543c9f674 193
mbed_official 489:119543c9f674 194 #define IS_GPIO_PIN_ACTION(ACTION) (((ACTION) == GPIO_PIN_RESET) || ((ACTION) == GPIO_PIN_SET))
mbed_official 489:119543c9f674 195
mbed_official 489:119543c9f674 196 #define IS_GPIO_PIN(PIN) (((PIN) & GPIO_PIN_MASK ) != (uint32_t)0x00)
mbed_official 489:119543c9f674 197
mbed_official 489:119543c9f674 198 #define IS_GPIO_PULL(PULL) (((PULL) == GPIO_NOPULL) || ((PULL) == GPIO_PULLUP) || \
mbed_official 489:119543c9f674 199 ((PULL) == GPIO_PULLDOWN))
mbed_official 489:119543c9f674 200
mbed_official 489:119543c9f674 201 #define IS_GPIO_SPEED(SPEED) (((SPEED) == GPIO_SPEED_LOW) || \
mbed_official 489:119543c9f674 202 ((SPEED) == GPIO_SPEED_MEDIUM) || ((SPEED) == GPIO_SPEED_HIGH))
mbed_official 489:119543c9f674 203
mbed_official 489:119543c9f674 204 #define IS_GPIO_MODE(MODE) (((MODE) == GPIO_MODE_INPUT) ||\
mbed_official 489:119543c9f674 205 ((MODE) == GPIO_MODE_OUTPUT_PP) ||\
mbed_official 489:119543c9f674 206 ((MODE) == GPIO_MODE_OUTPUT_OD) ||\
mbed_official 489:119543c9f674 207 ((MODE) == GPIO_MODE_AF_PP) ||\
mbed_official 489:119543c9f674 208 ((MODE) == GPIO_MODE_AF_OD) ||\
mbed_official 489:119543c9f674 209 ((MODE) == GPIO_MODE_IT_RISING) ||\
mbed_official 489:119543c9f674 210 ((MODE) == GPIO_MODE_IT_FALLING) ||\
mbed_official 489:119543c9f674 211 ((MODE) == GPIO_MODE_IT_RISING_FALLING) ||\
mbed_official 489:119543c9f674 212 ((MODE) == GPIO_MODE_EVT_RISING) ||\
mbed_official 489:119543c9f674 213 ((MODE) == GPIO_MODE_EVT_FALLING) ||\
mbed_official 489:119543c9f674 214 ((MODE) == GPIO_MODE_EVT_RISING_FALLING) ||\
mbed_official 489:119543c9f674 215 ((MODE) == GPIO_MODE_ANALOG))
mbed_official 489:119543c9f674 216
mbed_official 489:119543c9f674 217 /**
mbed_official 489:119543c9f674 218 * @}
mbed_official 489:119543c9f674 219 */
mbed_official 489:119543c9f674 220
mbed_official 489:119543c9f674 221
mbed_official 489:119543c9f674 222 /* Exported macro ------------------------------------------------------------*/
mbed_official 489:119543c9f674 223 /** @defgroup GPIO_Exported_Macros GPIO Exported Macros
mbed_official 489:119543c9f674 224 * @{
mbed_official 489:119543c9f674 225 */
mbed_official 489:119543c9f674 226
mbed_official 489:119543c9f674 227 /**
mbed_official 489:119543c9f674 228 * @brief Checks whether the specified EXTI line flag is set or not.
mbed_official 489:119543c9f674 229 * @param __EXTI_LINE__: specifies the EXTI line flag to check.
mbed_official 489:119543c9f674 230 * This parameter can be GPIO_PIN_x where x can be(0..15)
mbed_official 489:119543c9f674 231 * @retval The new state of __EXTI_LINE__ (SET or RESET).
mbed_official 489:119543c9f674 232 */
mbed_official 489:119543c9f674 233 #define __HAL_GPIO_EXTI_GET_FLAG(__EXTI_LINE__) (EXTI->PR & (__EXTI_LINE__))
mbed_official 489:119543c9f674 234
mbed_official 489:119543c9f674 235 /**
mbed_official 489:119543c9f674 236 * @brief Clears the EXTI's line pending flags.
mbed_official 489:119543c9f674 237 * @param __EXTI_LINE__: specifies the EXTI lines flags to clear.
mbed_official 489:119543c9f674 238 * This parameter can be any combination of GPIO_PIN_x where x can be (0..15)
mbed_official 489:119543c9f674 239 * @retval None
mbed_official 489:119543c9f674 240 */
mbed_official 489:119543c9f674 241 #define __HAL_GPIO_EXTI_CLEAR_FLAG(__EXTI_LINE__) (EXTI->PR = (__EXTI_LINE__))
mbed_official 489:119543c9f674 242
mbed_official 489:119543c9f674 243 /**
mbed_official 489:119543c9f674 244 * @brief Checks whether the specified EXTI line is asserted or not.
mbed_official 489:119543c9f674 245 * @param __EXTI_LINE__: specifies the EXTI line to check.
mbed_official 489:119543c9f674 246 * This parameter can be GPIO_PIN_x where x can be(0..15)
mbed_official 489:119543c9f674 247 * @retval The new state of __EXTI_LINE__ (SET or RESET).
mbed_official 489:119543c9f674 248 */
mbed_official 489:119543c9f674 249 #define __HAL_GPIO_EXTI_GET_IT(__EXTI_LINE__) (EXTI->PR & (__EXTI_LINE__))
mbed_official 489:119543c9f674 250
mbed_official 489:119543c9f674 251 /**
mbed_official 489:119543c9f674 252 * @brief Clears the EXTI's line pending bits.
mbed_official 489:119543c9f674 253 * @param __EXTI_LINE__: specifies the EXTI lines to clear.
mbed_official 489:119543c9f674 254 * This parameter can be any combination of GPIO_PIN_x where x can be (0..15)
mbed_official 489:119543c9f674 255 * @retval None
mbed_official 489:119543c9f674 256 */
mbed_official 489:119543c9f674 257 #define __HAL_GPIO_EXTI_CLEAR_IT(__EXTI_LINE__) (EXTI->PR = (__EXTI_LINE__))
mbed_official 489:119543c9f674 258
mbed_official 489:119543c9f674 259 /**
mbed_official 489:119543c9f674 260 * @brief Generates a Software interrupt on selected EXTI line.
mbed_official 489:119543c9f674 261 * @param __EXTI_LINE__: specifies the EXTI line to check.
mbed_official 489:119543c9f674 262 * This parameter can be GPIO_PIN_x where x can be(0..15)
mbed_official 489:119543c9f674 263 * @retval None
mbed_official 489:119543c9f674 264 */
mbed_official 489:119543c9f674 265 #define __HAL_GPIO_EXTI_GENERATE_SWIT(__EXTI_LINE__) (EXTI->SWIER |= (__EXTI_LINE__))
mbed_official 489:119543c9f674 266
mbed_official 489:119543c9f674 267 /* Include GPIO HAL Extension module */
mbed_official 489:119543c9f674 268 #include "stm32f1xx_hal_gpio_ex.h"
mbed_official 489:119543c9f674 269
mbed_official 489:119543c9f674 270 /**
mbed_official 489:119543c9f674 271 * @}
mbed_official 489:119543c9f674 272 */
mbed_official 489:119543c9f674 273
mbed_official 489:119543c9f674 274
mbed_official 489:119543c9f674 275
mbed_official 489:119543c9f674 276 /* Exported functions --------------------------------------------------------*/
mbed_official 489:119543c9f674 277 /* Initialization and de-initialization functions *******************************/
mbed_official 489:119543c9f674 278 /** @addtogroup GPIO_Exported_Functions
mbed_official 489:119543c9f674 279 * @{
mbed_official 489:119543c9f674 280 */
mbed_official 489:119543c9f674 281
mbed_official 489:119543c9f674 282 /** @addtogroup GPIO_Exported_Functions_Group1
mbed_official 489:119543c9f674 283 * @{
mbed_official 489:119543c9f674 284 */
mbed_official 489:119543c9f674 285 void HAL_GPIO_Init(GPIO_TypeDef *GPIOx, GPIO_InitTypeDef *GPIO_Init);
mbed_official 489:119543c9f674 286 void HAL_GPIO_DeInit(GPIO_TypeDef *GPIOx, uint32_t GPIO_Pin);
mbed_official 489:119543c9f674 287 /**
mbed_official 489:119543c9f674 288 * @}
mbed_official 489:119543c9f674 289 */
mbed_official 489:119543c9f674 290
mbed_official 489:119543c9f674 291 /* IO operation functions *******************************************************/
mbed_official 489:119543c9f674 292 /** @addtogroup GPIO_Exported_Functions_Group2
mbed_official 489:119543c9f674 293 * @{
mbed_official 489:119543c9f674 294 */
mbed_official 489:119543c9f674 295 GPIO_PinState HAL_GPIO_ReadPin(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin);
mbed_official 489:119543c9f674 296 void HAL_GPIO_WritePin(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState);
mbed_official 489:119543c9f674 297 void HAL_GPIO_TogglePin(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin);
mbed_official 489:119543c9f674 298 HAL_StatusTypeDef HAL_GPIO_LockPin(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin);
mbed_official 489:119543c9f674 299 void HAL_GPIO_EXTI_IRQHandler(uint16_t GPIO_Pin);
mbed_official 489:119543c9f674 300 void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin);
mbed_official 489:119543c9f674 301 /**
mbed_official 489:119543c9f674 302 * @}
mbed_official 489:119543c9f674 303 */
mbed_official 489:119543c9f674 304
mbed_official 489:119543c9f674 305 /**
mbed_official 489:119543c9f674 306 * @}
mbed_official 489:119543c9f674 307 */
mbed_official 489:119543c9f674 308
mbed_official 489:119543c9f674 309 /**
mbed_official 489:119543c9f674 310 * @}
mbed_official 489:119543c9f674 311 */
mbed_official 489:119543c9f674 312
mbed_official 489:119543c9f674 313 /**
mbed_official 489:119543c9f674 314 * @}
mbed_official 489:119543c9f674 315 */
mbed_official 489:119543c9f674 316
mbed_official 489:119543c9f674 317
mbed_official 489:119543c9f674 318 #ifdef __cplusplus
mbed_official 489:119543c9f674 319 }
mbed_official 489:119543c9f674 320 #endif
mbed_official 489:119543c9f674 321
mbed_official 489:119543c9f674 322 #endif /* __STM32F1xx_HAL_GPIO_H */
mbed_official 489:119543c9f674 323
mbed_official 489:119543c9f674 324 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/