pub fn pm_manage(mode: CPUSleep) -> StatusExpand description
Configure the CPU’s sleep behaviour.
The mode parameters toggles between the two traditional wake-up
modes for ARM CPUs:
- wait for interrupt (
wfi) - wait for event (
wfe)
it also accepts two other mode values that enable or prevent the CPU from sleeping.