Skip to content

Commit 043ebc4

Browse files
Restart RTC on reinitialize
1 parent c11545b commit 043ebc4

File tree

4 files changed

+2
-0
lines changed

4 files changed

+2
-0
lines changed

system/STM32L0xx/Lib/libstm32l052xx.a

4 Bytes
Binary file not shown.

system/STM32L0xx/Lib/libstm32l072xx.a

0 Bytes
Binary file not shown.

system/STM32L0xx/Lib/libstm32l082xx.a

0 Bytes
Binary file not shown.

system/STM32L0xx/Source/stm32l0_rtc.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,8 @@ void __stm32l0_rtc_initialize(void)
203203
RTC->PRER = (STM32L0_RTC_PREDIV_S -1) << RTC_PRER_PREDIV_S_Pos;
204204
RTC->PRER |= (STM32L0_RTC_PREDIV_A -1) << RTC_PRER_PREDIV_A_Pos;
205205

206+
RTC->ISR = ~RTC_ISR_INIT;
207+
206208
reset = true;
207209
}
208210

0 commit comments

Comments
 (0)