diff options
Diffstat (limited to 'os/hal/ports/STM32/LLD')
-rw-r--r-- | os/hal/ports/STM32/LLD/RTCv2/rtc_lld.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/os/hal/ports/STM32/LLD/RTCv2/rtc_lld.c b/os/hal/ports/STM32/LLD/RTCv2/rtc_lld.c index d862dfff5..1145268d0 100644 --- a/os/hal/ports/STM32/LLD/RTCv2/rtc_lld.c +++ b/os/hal/ports/STM32/LLD/RTCv2/rtc_lld.c @@ -309,10 +309,14 @@ void rtc_lld_init(void) { initial setup.*/
if (!(RTCD1.rtc->ISR & RTC_ISR_INITS)) {
+ rtc_enter_init();
+
RTCD1.rtc->CR = 0;
RTCD1.rtc->ISR = 0;
RTCD1.rtc->PRER = STM32_RTC_PRER_BITS;
RTCD1.rtc->PRER = STM32_RTC_PRER_BITS;
+
+ rtc_exit_init();
}
else
RTCD1.rtc->ISR &= ~RTC_ISR_RSF;
|