Skip to content

Commit 60e7bb4

Browse files
committed
fix(wl3): wakeup RTC config
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 5870df0 commit 60e7bb4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/STM32RTC.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1307,6 +1307,9 @@ void STM32RTC::configForLowPower(Source_Clock source)
13071307
#ifdef __HAL_RCC_RTCAPB_CLKAM_ENABLE
13081308
__HAL_RCC_RTCAPB_CLKAM_ENABLE();
13091309
#endif
1310+
#if defined(PWR_WAKEUP_RTC)
1311+
HAL_PWREx_EnableInternalWakeUpLine(PWR_WAKEUP_RTC, PWR_WUP_RISIEDG);
1312+
#endif
13101313
#if defined(PWR_WAKEUP_PIN_RTC)
13111314
HAL_PWR_EnableWakeUpPin(PWR_WAKEUP_PIN_RTC, PWR_WUP_RISIEDG);
13121315
#endif

0 commit comments

Comments
 (0)