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:
109:9296ab0bfc11
.

Who changed what in which revision?

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