specifies the regulator state in STOP mode. This parameter can be one of the following values: @arg PWR_MAINREGULATOR_UNDERDRIVE_ON: Main Regulator in under-drive mode and Flash memory in power-down when the device is in Stop under-drive mode @arg PWR_LOWPOWERREGULATOR_UNDERDRIVE_ON: Low Power Regulator in under-drive mode and Flash memory in power-down when the device is in Stop under-drive mode
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_SLEEPENTRY_WFI: enter STOP mode with WFI instruction @arg PWR_SLEEPENTRY_WFE: enter STOP mode with WFE instruction
Return value
None
Notes
This mode is only available for STM32F42xxx/STM32F43xxx/STM32F446xx/STM32F469xx/STM32F479xx devices. This mode can be selected only when the Under-Drive is already active This mode is enabled only with STOP low power mode. In this mode, the 1.2V domain is preserved in reduced leakage mode. This mode is only available when the main regulator or the low power regulator is in low voltage mode If the Under-drive mode was enabled, it is automatically disabled after exiting Stop mode. When the voltage regulator operates in Under-drive mode, an additional startup delay is induced when waking up from Stop mode. 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_PWREx_EnterUnderDriveSTOPMode() is referenced by 7 libraries and example projects: