Fork of the official mbed C/C SDK provides the software platform and libraries to build your applications for RenBED.

Dependents:   1-RenBuggyTimed RenBED_RGB RenBED_RGB_PWM RenBED_RGB

Fork of mbed by mbed official

Committer:
elijahorr
Date:
Thu Apr 14 07:28:54 2016 +0000
Revision:
121:672067c3ada4
Parent:
96:487b796308b0
.

Who changed what in which revision?

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