STM32F103xB HAL User Manual
|
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_DeInit | ( | GPIO_TypeDef * | GPIOx, |
uint32_t | GPIO_Pin | ||
) |
De-initializes the GPIOx peripheral registers to their default reset values.
GPIOx,: | where x can be (A..G depending on device used) to select the GPIO peripheral |
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 351 of file stm32f1xx_hal_gpio.c.
References assert_param, GPIO_GET_INDEX, GPIO_PIN_8, and IS_GPIO_PIN.
void HAL_GPIO_Init | ( | GPIO_TypeDef * | GPIOx, |
GPIO_InitTypeDef * | GPIO_Init | ||
) |
Initializes the GPIOx peripheral according to the specified parameters in the GPIO_Init.
GPIOx,: | where x can be (A..G depending on device used) to select the GPIO peripheral |
GPIO_Init,: | pointer to a GPIO_InitTypeDef structure that contains the configuration information for the specified GPIO peripheral. |
None |
Definition at line 178 of file stm32f1xx_hal_gpio.c.
References __HAL_RCC_AFIO_CLK_ENABLE, assert_param, EXTI_MODE, FALLING_EDGE, GPIO_CR_CNF_AF_OUTPUT_OD, GPIO_CR_CNF_AF_OUTPUT_PP, GPIO_CR_CNF_ANALOG, GPIO_CR_CNF_GP_OUTPUT_OD, GPIO_CR_CNF_GP_OUTPUT_PP, GPIO_CR_CNF_INPUT_FLOATING, GPIO_CR_CNF_INPUT_PU_PD, GPIO_CR_MODE_INPUT, GPIO_GET_INDEX, GPIO_MODE_AF_OD, GPIO_MODE_AF_PP, GPIO_MODE_ANALOG, GPIO_MODE_EVT, GPIO_MODE_EVT_FALLING, GPIO_MODE_EVT_RISING, GPIO_MODE_EVT_RISING_FALLING, GPIO_MODE_INPUT, GPIO_MODE_IT, GPIO_MODE_IT_FALLING, GPIO_MODE_IT_RISING, GPIO_MODE_IT_RISING_FALLING, GPIO_MODE_OUTPUT_OD, GPIO_MODE_OUTPUT_PP, GPIO_NOPULL, GPIO_PIN_8, GPIO_PULLUP, IS_GPIO_MODE, IS_GPIO_PIN, IS_GPIO_PULL, IS_GPIO_SPEED, GPIO_InitTypeDef::Mode, GPIO_InitTypeDef::Pin, GPIO_InitTypeDef::Pull, RISING_EDGE, and GPIO_InitTypeDef::Speed.
Referenced by HAL_RCC_MCOConfig().