|
Zephyr API Documentation 4.3.0-rc1
A Scalable Open Source RTOS
|
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. | |
STM32 GPIO specific flags.
The driver flags are encoded in the 8 upper bits of gpio_dt_flags_t as follows:
| #define STM32_GPIO_HIGH_SPEED (0x2 << STM32_GPIO_SPEED_SHIFT) |
#include <zephyr/dt-bindings/gpio/stm32-gpio.h>
Configure the GPIO pin output speed to be high.
| #define STM32_GPIO_LOW_SPEED (0x0 << STM32_GPIO_SPEED_SHIFT) |
#include <zephyr/dt-bindings/gpio/stm32-gpio.h>
Configure the GPIO pin output speed to be low.
| #define STM32_GPIO_MEDIUM_SPEED (0x1 << STM32_GPIO_SPEED_SHIFT) |
#include <zephyr/dt-bindings/gpio/stm32-gpio.h>
Configure the GPIO pin output speed to be medium.
| #define STM32_GPIO_VERY_HIGH_SPEED (0x3 << STM32_GPIO_SPEED_SHIFT) |
#include <zephyr/dt-bindings/gpio/stm32-gpio.h>
Configure the GPIO pin output speed to be very high.
| #define STM32_GPIO_WKUP (1 << 8) |
#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".