17.2.9 Low power mode configuration functions
17.2.9.1 PWR_EnterSleepMode
void PWR_EnterSleepMode ( uint8_t PWR_SLEEPEntry)
ï‚· PWR_SLEEPEntry : specifies if SLEEP mode in entered
with WFI or WFE instruction. This parameter can be one of
the following values:
ï€ PWR_SLEEPEntry_WFI : enter SLEEP mode with WFI
instruction
ï€ PWR_SLEEPEntry_WFE : enter SLEEP mode with
WFE instruction
ï‚· In Sleep mode, all I/O pins keep the same state as in Run
mode.
17.2.9.2 PWR_EnterSTOPMode
void PWR_EnterSTOPMode ( uint32_t PWR_Regulator, uint8_t
PWR_STOPEntry)
ï‚· PWR_Regulator : specifies the regulator state in STOP
mode. This parameter can be one of the following values:
ï€ PWR_Regulator_ON : STOP mode with regulator ON
ï€ PWR_Regulator_LowPower : STOP mode with
regulator in low power mode
ï‚· PWR_STOPEntry : specifies if STOP mode in entered with
WFI or WFE instruction. This parameter can be one of the
following values:
ï€ PWR_STOPEntry_WFI : enter STOP mode with WFI
instruction
ï€ PWR_STOPEntry_WFE : enter STOP mode with WFE
instruction
ï‚· In Stop mode, all I/O pins keep the same state as in Run
mode.
ï‚· When exiting Stop mode by issuing an interrupt or a wakeup
event, the MSI RC oscillator is selected as system clock.
ï‚· When the voltage regulator operates in low power mode, an
additional startup delay is incurred when waking up from Stop