Module low_power

Module low_power 

Source
Expand description

This module contains code used to place the MCU in low power modes. Reference section 5.3.3: Low power modes of the L4 Reference Manual.

Enums§

StopMode

Functions§

shutdown
Enter Shutdown mode mode: the lowest-power of the 3 low-power states avail. See L4 Table 31. G4 table 48.
sleep_now
Place the system in sleep now mode. To enter low-power sleep now, enter low power mode (eg low_power_mode()) before running this. RM, table 25 and 26
sleep_on_exit
F303 RM, table 19.
standby
Enter Standby mode. See L44 RM table 28. G4 table 47. Run Clocks::reselect_input() after to re-enable PLL etc after exiting this mode.
stop
Enter Stop 0, Stop 1, or Stop 2 modes. L4 Reference manual, section 5.3.6. Tables 27, 28, and 29. G0 RMs, tables 30, 31, 32. G4 Table 45, 47, 47. Run Clocks::reselect_input() after to re-enable PLL etc after exiting this mode.