Zephyr Project API 4.2.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches

STM32 GPIO specific flags. More...

Macros

#define STM32_GPIO_WKUP   (1 << 8)
 Configures a GPIO pin to power on the system after Poweroff.
 
#define STM32_GPIO_LOW_SPEED   (0x0 << STM32_GPIO_SPEED_SHIFT)
 Configure the GPIO pin output speed to be low.
 
#define STM32_GPIO_MEDIUM_SPEED   (0x1 << STM32_GPIO_SPEED_SHIFT)
 Configure the GPIO pin output speed to be medium.
 
#define STM32_GPIO_HIGH_SPEED   (0x2 << STM32_GPIO_SPEED_SHIFT)
 Configure the GPIO pin output speed to be high.
 
#define STM32_GPIO_VERY_HIGH_SPEED   (0x3 << STM32_GPIO_SPEED_SHIFT)
 Configure the GPIO pin output speed to be very high.
 

Detailed Description

STM32 GPIO specific flags.

The driver flags are encoded in the 8 upper bits of gpio_dt_flags_t as follows:

Macro Definition Documentation

◆ STM32_GPIO_HIGH_SPEED

#define STM32_GPIO_HIGH_SPEED   (0x2 << STM32_GPIO_SPEED_SHIFT)

#include <include/zephyr/dt-bindings/gpio/stm32-gpio.h>

Configure the GPIO pin output speed to be high.

◆ STM32_GPIO_LOW_SPEED

#define STM32_GPIO_LOW_SPEED   (0x0 << STM32_GPIO_SPEED_SHIFT)

#include <include/zephyr/dt-bindings/gpio/stm32-gpio.h>

Configure the GPIO pin output speed to be low.

◆ STM32_GPIO_MEDIUM_SPEED

#define STM32_GPIO_MEDIUM_SPEED   (0x1 << STM32_GPIO_SPEED_SHIFT)

#include <include/zephyr/dt-bindings/gpio/stm32-gpio.h>

Configure the GPIO pin output speed to be medium.

◆ STM32_GPIO_VERY_HIGH_SPEED

#define STM32_GPIO_VERY_HIGH_SPEED   (0x3 << STM32_GPIO_SPEED_SHIFT)

#include <include/zephyr/dt-bindings/gpio/stm32-gpio.h>

Configure the GPIO pin output speed to be very high.

◆ STM32_GPIO_WKUP

#define STM32_GPIO_WKUP   (1 << 8)

#include <include/zephyr/dt-bindings/gpio/stm32-gpio.h>

Configures a GPIO pin to power on the system after Poweroff.

This flag is reserved to GPIO pins that are associated with wake-up pins in STM32 PWR devicetree node, through the property "wkup-gpios".