Specifies the regulator state in Stop mode. This parameter can be one of the following values: @arg PWR_MAINREGULATOR_ON: Stop mode with regulator ON @arg PWR_LOWPOWERREGULATOR_ON: Stop mode with low power regulator ON
STOPEntry
uint8_t
Specifies if Stop mode in entered with WFI or WFE instruction. This parameter can be one of the following values: @arg PWR_STOPENTRY_WFI : Enter Stop mode with WFI instruction @arg PWR_STOPENTRY_WFE : Enter Stop mode with WFE instruction and clear of pending events before. @arg PWR_STOPENTRY_WFE_NO_EVT_CLEAR : Enter STOP mode with WFE instruction and no clear of pending event before.
Return value
None
Notes
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 wake-up event, the HSI 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 mode. By keeping the internal regulator ON during Stop mode, the consumption is higher although the startup time is reduced.
Examples
HAL_PWR_EnterSTOPMode() is referenced by 30 libraries and example projects: