STM32F439xx HAL User Manual
Defines
GPIO mode define
GPIO Exported Constants

GPIO Configuration Mode Elements values convention: 0xX0yz00YZ. More...

Defines

#define GPIO_MODE_INPUT   0x00000000U
#define GPIO_MODE_OUTPUT_PP   0x00000001U
#define GPIO_MODE_OUTPUT_OD   0x00000011U
#define GPIO_MODE_AF_PP   0x00000002U
#define GPIO_MODE_AF_OD   0x00000012U
#define GPIO_MODE_ANALOG   0x00000003U
#define GPIO_MODE_IT_RISING   0x10110000U
#define GPIO_MODE_IT_FALLING   0x10210000U
#define GPIO_MODE_IT_RISING_FALLING   0x10310000U
#define GPIO_MODE_EVT_RISING   0x10120000U
#define GPIO_MODE_EVT_FALLING   0x10220000U
#define GPIO_MODE_EVT_RISING_FALLING   0x10320000U

Detailed Description

GPIO Configuration Mode Elements values convention: 0xX0yz00YZ.


Define Documentation

#define GPIO_MODE_AF_OD   0x00000012U

Alternate Function Open Drain Mode

Definition at line 139 of file stm32f4xx_hal_gpio.h.

Referenced by HAL_GPIO_Init().

#define GPIO_MODE_AF_PP   0x00000002U

Alternate Function Push Pull Mode

Definition at line 138 of file stm32f4xx_hal_gpio.h.

Referenced by HAL_GPIO_Init(), and HAL_RCC_MCOConfig().

#define GPIO_MODE_ANALOG   0x00000003U

Analog Mode

Definition at line 141 of file stm32f4xx_hal_gpio.h.

#define GPIO_MODE_EVT_FALLING   0x10220000U

External Event Mode with Falling edge trigger detection

Definition at line 148 of file stm32f4xx_hal_gpio.h.

#define GPIO_MODE_EVT_RISING   0x10120000U

External Event Mode with Rising edge trigger detection

Definition at line 147 of file stm32f4xx_hal_gpio.h.

#define GPIO_MODE_EVT_RISING_FALLING   0x10320000U

External Event Mode with Rising/Falling edge trigger detection

Definition at line 149 of file stm32f4xx_hal_gpio.h.

#define GPIO_MODE_INPUT   0x00000000U

Input Floating Mode

Definition at line 135 of file stm32f4xx_hal_gpio.h.

#define GPIO_MODE_IT_FALLING   0x10210000U

External Interrupt Mode with Falling edge trigger detection

Definition at line 144 of file stm32f4xx_hal_gpio.h.

#define GPIO_MODE_IT_RISING   0x10110000U

External Interrupt Mode with Rising edge trigger detection

Definition at line 143 of file stm32f4xx_hal_gpio.h.

#define GPIO_MODE_IT_RISING_FALLING   0x10310000U

External Interrupt Mode with Rising/Falling edge trigger detection

Definition at line 145 of file stm32f4xx_hal_gpio.h.

#define GPIO_MODE_OUTPUT_OD   0x00000011U

Output Open Drain Mode

Definition at line 137 of file stm32f4xx_hal_gpio.h.

Referenced by HAL_GPIO_Init().

#define GPIO_MODE_OUTPUT_PP   0x00000001U

Output Push Pull Mode

Definition at line 136 of file stm32f4xx_hal_gpio.h.

Referenced by HAL_GPIO_Init().