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 This assumes you’re using MSI as the clock source, and changes speed by lowering the MSI speed. You must select an MSI speed of 2Mhz or lower. Note that you may need to adjust peripheral implementations that rely on system clock or APB speed. |
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 |
sleep_now | Place the system in sleep now mode. To enter |
sleep_on_exit | F303 Ref man, table 19. |
standby | Enter |
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. |