Modified version of the mbed library for use with the Nucleo boards.

Dependents:   EEPROMWrite Full-Project

Fork of mbed-src by mbed official

Committer:
mbed_official
Date:
Mon Sep 28 14:00:11 2015 +0100
Revision:
632:7687fb9c4f91
Parent:
385:be64abf45658
Child:
634:ac7d6880524d
Synchronized with git revision f7ce4ed029cc611121464252ff28d5e8beb895b0

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

NUCLEO_F303K8 - add support of the STM32F303K8

Who changed what in which revision?

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