Skip to content

Commit daece1d

Browse files
committed
fixup! fixup! fixup! fixup! cpu/stm32/periph/rtc: don't stop RTC for every lock
1 parent 6975d5b commit daece1d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cpu/stm32/periph/rtc_all.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,9 +305,10 @@ void rtc_init(void)
305305
rtc_unlock();
306306
/* reset configuration */
307307
RTC->CR = 0;
308-
RTC_REG_ISR = RTC_ISR_INIT;
308+
rtc_enter_init_mode();
309309
/* configure prescaler (RTC PRER) */
310310
RTC->PRER = (PRE_SYNC | (PRE_ASYNC << 16));
311+
rtc_exit_init_mode();
311312
rtc_lock();
312313
}
313314

0 commit comments

Comments
 (0)