We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4dcfe07 commit eb649e0Copy full SHA for eb649e0
src/low_power.c
@@ -593,7 +593,7 @@ void LowPower_shutdown(bool isRTC)
593
will make system enter in Stop2 mode. */
594
LL_C2_PWR_SetPowerMode(LL_PWR_MODE_SHUTDOWN);
595
#endif
596
-#if defined(PWR_CR1_LPMS)
+#if defined(LL_PWR_SHUTDOWN_MODE) || defined(LL_PWR_MODE_SHUTDOWN)
597
/* LSE must be on to use shutdown mode within RTC else fallback to standby */
598
if ((!isRTC) || (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == SET)) {
599
HAL_PWREx_EnterSHUTDOWNMode();
0 commit comments