Function system_get_pin_wakeup_cause()

Check whether any of the enabled wake up pins are active and caused the wakeup.

uint16_t system_get_pin_wakeup_cause( void )

Check whether any of the enabled wake up pins are active and caused the wakeup from backup sleep mode when exiting backup mode.

Returns

Pin mask, the corresponding pin is active when its pin mask is 1.