pub fn wakeup_cause() -> WakeupReasonExpand description
Return the cause(s) of the most recent wakeup.
A sleep can be ended by more than one source simultaneously, so all matching sources are returned. The result is empty if the chip was not woken from sleep (for example on a cold boot, or after a reset unrelated to deep sleep).