Module stm32_hal2::low_power[][src]

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

low_power_run

Ref man, table 24 Note that this assumes you’ve already reduced clock frequency below 2 Mhz.

return_from_low_power_run

Ref man, table 24 Return to normal run mode from low-power run. Requires you to increase the clock speed manually after running this.

shutdown

Enter Shutdown mode mode: the lowest-power of the 3 low-power states avail. See Table 31.

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. Ref man, table 25 and 26

sleep_on_exit

F303 Ref man, table 19.

standby

Enter Standby mode. See Table 30.

stop

Enter Stop 0, Stop 1, or Stop 2 modes. Reference manual, section 5.3.6. Tables 27, 28, and 29.