From d58d0ccf74681874dae3449dfc36c338c4be7186 Mon Sep 17 00:00:00 2001 From: Frederic Pillon Date: Mon, 26 Feb 2024 17:29:02 +0100 Subject: [PATCH] feat(WBA): add STM32WBAxx support Signed-off-by: Frederic Pillon --- src/low_power.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/low_power.c b/src/low_power.c index e7df307..01efffd 100644 --- a/src/low_power.c +++ b/src/low_power.c @@ -593,7 +593,7 @@ void LowPower_shutdown(bool isRTC) will make system enter in Stop2 mode. */ LL_C2_PWR_SetPowerMode(LL_PWR_MODE_SHUTDOWN); #endif -#if defined(PWR_CR1_LPMS) +#if defined(LL_PWR_SHUTDOWN_MODE) || defined(LL_PWR_MODE_SHUTDOWN) /* LSE must be on to use shutdown mode within RTC else fallback to standby */ if ((!isRTC) || (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == SET)) { HAL_PWREx_EnterSHUTDOWNMode();