PebbleOS v4.47.0-888-g9fa910d13
Loading...
Searching...
No Matches
STM32H7 wakeup pins

Wakeup pins of the STM32H7 PWR, which wake the SoC from power-off. More...

Functions

int pbl_soc_stm32h7_wakeup_pin_set (uintptr_t port, uint32_t pin, bool on)
 Let a GPIO line on a wakeup pin wake the SoC from power-off.
 

Detailed Description

Wakeup pins of the STM32H7 PWR, which wake the SoC from power-off.

Function Documentation

◆ pbl_soc_stm32h7_wakeup_pin_set()

int pbl_soc_stm32h7_wakeup_pin_set ( uintptr_t  port,
uint32_t  pin,
bool  on 
)

Let a GPIO line on a wakeup pin wake the SoC from power-off.

At power-off, the pin wakes on the edge away from the level it is at, with the pull of its line.

Parameters
portRegisters of the GPIO port.
pinPin of the port.
onWhether the line wakes the SoC.
Return values
0On success.
-ENOTSUPThe line is not on a wakeup pin.