File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -495,14 +495,14 @@ void LowPower_stop(serial_t *obj)
495495 // STM32L4+ must keep SRAM3 content when entering STOP2 lowpower mode
496496 HAL_PWREx_EnableSRAM3ContentRetention ();
497497#endif /* PWR_CR1_RRSTP */
498- // STM32L4xx and STM32H7xx supports STOP2 mode which halves consumption
499498#if defined(STM32H7xx )
500499#if defined(PWR_LOWPOWERREGULATOR_ON )
501500 HAL_PWREx_EnterSTOP2Mode (PWR_LOWPOWERREGULATOR_ON , PWR_STOPENTRY_WFI );
502501#else
503502 HAL_PWREx_EnterSTOP2Mode (PWR_MAINREGULATOR_ON , PWR_STOPENTRY_WFI );
504503#endif
505- HAL_PWREx_EnterSTOP2Mode (PWR_LOWPOWERREGULATOR_ON , PWR_STOPENTRY_WFI );
504+ #elif defined(STM32U3xx )
505+ HAL_PWR_EnterSTOPMode (PWR_LOWPOWERMODE_STOP2 , PWR_STOPENTRY_WFI );
506506#else
507507 HAL_PWREx_EnterSTOP2Mode (PWR_STOPENTRY_WFI );
508508#endif
You can’t perform that action at this time.
0 commit comments