STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
|
Initialization and Configuration functions. More...
Functions | |
void | HAL_GPIO_Init (GPIO_TypeDef *GPIOx, GPIO_InitTypeDef *GPIO_Init) |
Initializes the GPIOx peripheral according to the specified parameters in the GPIO_Init. | |
void | HAL_GPIO_DeInit (GPIO_TypeDef *GPIOx, uint32_t GPIO_Pin) |
De-initializes the GPIOx peripheral registers to their default reset values. | |
Initialization and Configuration functions.
=============================================================================== ##### Initialization and de-initialization functions ##### =============================================================================== [..] This section provides functions allowing to initialize and de-initialize the GPIOs to be ready for use.
void HAL_GPIO_Init | ( | GPIO_TypeDef * | GPIOx, |
GPIO_InitTypeDef * | GPIO_Init ) |
#include <stm32f4xx_hal_gpio.h>
Initializes the GPIOx peripheral according to the specified parameters in the GPIO_Init.
GPIOx | where x can be (A..K) to select the GPIO peripheral for STM32F429X device or x can be (A..I) to select the GPIO peripheral for STM32F40XX and STM32F427X devices. |
GPIO_Init | pointer to a GPIO_InitTypeDef structure that contains the configuration information for the specified GPIO peripheral. |
None |
Definition at line 164 of file stm32f4xx_hal_gpio.c.
References __HAL_RCC_SYSCFG_CLK_ENABLE, GPIO_InitTypeDef::Alternate, assert_param, EXTI_EVT, EXTI_IT, EXTI_MODE, GPIO_GET_INDEX, GPIO_MODE, GPIO_NUMBER, IS_GPIO_AF, IS_GPIO_MODE, IS_GPIO_PIN, IS_GPIO_PULL, IS_GPIO_SPEED, GPIO_InitTypeDef::Mode, MODE_AF, MODE_ANALOG, MODE_OUTPUT, OUTPUT_TYPE, OUTPUT_TYPE_Pos, GPIO_InitTypeDef::Pin, GPIO_InitTypeDef::Pull, GPIO_InitTypeDef::Speed, TRIGGER_FALLING, and TRIGGER_RISING.
Referenced by HAL_RCC_MCOConfig().
void HAL_GPIO_DeInit | ( | GPIO_TypeDef * | GPIOx, |
uint32_t | GPIO_Pin ) |
#include <stm32f4xx_hal_gpio.h>
De-initializes the GPIOx peripheral registers to their default reset values.
GPIOx | where x can be (A..K) to select the GPIO peripheral for STM32F429X device or x can be (A..I) to select the GPIO peripheral for STM32F40XX and STM32F427X devices. |
GPIO_Pin | specifies the port bit to be written. This parameter can be one of GPIO_PIN_x where x can be (0..15). |
None |
Definition at line 294 of file stm32f4xx_hal_gpio.c.
References assert_param, GPIO_GET_INDEX, and GPIO_NUMBER.