diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-12-28 12:15:02 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-12-28 12:15:02 +0000 |
commit | d95648897cff5623a0f6e9e31b9e74a2d7556745 (patch) | |
tree | 9d8e898d10443cad6c9c68577eb3eb47f7af7fb5 /os/hal/ports/STM32 | |
parent | e486e61a2208575ba9d6d663ef27ac23eb5a4f99 (diff) | |
download | ChibiOS-d95648897cff5623a0f6e9e31b9e74a2d7556745.tar.gz ChibiOS-d95648897cff5623a0f6e9e31b9e74a2d7556745.tar.bz2 ChibiOS-d95648897cff5623a0f6e9e31b9e74a2d7556745.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7601 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/STM32')
-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;
|