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

Dependents:   hello SerialTestv11 SerialTestv12 Sierpinski ... more

mbed 2

This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.

Committer:
Kojto
Date:
Tue Feb 14 11:24:20 2017 +0000
Revision:
136:ef9c61f8c49f
Parent:
135:176b8275d35d
Child:
139:856d2700e60b
Release 136 of the mbed library

Ports for Upcoming Targets


Fixes and Changes

3432: Target STM USBHOST support https://github.com/ARMmbed/mbed-os/pull/3432
3181: NUCLEO_F207ZG extending PeripheralPins.c: all available alternate functions can be used now https://github.com/ARMmbed/mbed-os/pull/3181
3626: NUCLEO_F412ZG : Add USB Device +Host https://github.com/ARMmbed/mbed-os/pull/3626
3628: Fix warnings https://github.com/ARMmbed/mbed-os/pull/3628
3629: STM32: L0 LL layer https://github.com/ARMmbed/mbed-os/pull/3629
3632: IDE Export support for platform VK_RZ_A1H https://github.com/ARMmbed/mbed-os/pull/3632
3642: Missing IRQ pin fix for platform VK_RZ_A1H https://github.com/ARMmbed/mbed-os/pull/3642
3664: Fix ncs36510 sleep definitions https://github.com/ARMmbed/mbed-os/pull/3664
3655: [STM32F4] Modify folder structure https://github.com/ARMmbed/mbed-os/pull/3655
3657: [STM32L4] Modify folder structure https://github.com/ARMmbed/mbed-os/pull/3657
3658: [STM32F3] Modify folder structure https://github.com/ARMmbed/mbed-os/pull/3658
3685: STM32: I2C: reset state machine https://github.com/ARMmbed/mbed-os/pull/3685
3692: uVisor: Standardize available legacy heap and stack https://github.com/ARMmbed/mbed-os/pull/3692
3621: Fix for #2884, LPC824: export to LPCXpresso, target running with wron https://github.com/ARMmbed/mbed-os/pull/3621
3649: [STM32F7] Modify folder structure https://github.com/ARMmbed/mbed-os/pull/3649
3695: Enforce device_name is valid in targets.json https://github.com/ARMmbed/mbed-os/pull/3695
3723: NCS36510: spi_format function bug fix https://github.com/ARMmbed/mbed-os/pull/3723

Who changed what in which revision?

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