This sample demonstrates how gpio pins can be used to power on the system after a Poweroff, just like a reset pin. The user only needs to add the STM32_GPIO_WKUP flag to the gpio pin in "gpios" property of a DT device such a button or a sensor. The samples Powers off the system after a delay then the user can power it on with the user button that has the STM32_GPIO_WKUP flag in DT. Only works on STM32 boards that support Zephyr POWEROFF (U5, WL, WB, & L4 SoC series), & also have a user button whose GPIO pin is associated with a wake-up pin (see PWR node in SoC dtsi file). Signed-off-by: Abderrahmane Jarmouni <abderrahmane.jarmouni-ext@st.com> |
||
---|---|---|
.. | ||
adc | ||
blinky | ||
serial_wakeup | ||
standby_shutdown | ||
stm32wb_ble | ||
suspend_to_ram | ||
wkup_pins |