diff options
author | barthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-12-13 06:10:29 +0000 |
---|---|---|
committer | barthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-12-13 06:10:29 +0000 |
commit | 706b15a2fefd63947be6418e32385ebc0949f66d (patch) | |
tree | 38cf814028f59ff20093bd9f93db4da62ad2cffa /os/hal/platforms | |
parent | e9aae9700abdfec3f5efafe61117dce8348f7ad6 (diff) | |
download | ChibiOS-706b15a2fefd63947be6418e32385ebc0949f66d.tar.gz ChibiOS-706b15a2fefd63947be6418e32385ebc0949f66d.tar.bz2 ChibiOS-706b15a2fefd63947be6418e32385ebc0949f66d.zip |
RTCv1. Fixed possible false detect of loaded prescaler (bug 3595489)
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4909 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms')
-rw-r--r-- | os/hal/platforms/STM32F1xx/hal_lld.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/os/hal/platforms/STM32F1xx/hal_lld.c b/os/hal/platforms/STM32F1xx/hal_lld.c index f1e343e2a..e4a0c5ed7 100644 --- a/os/hal/platforms/STM32F1xx/hal_lld.c +++ b/os/hal/platforms/STM32F1xx/hal_lld.c @@ -73,11 +73,11 @@ static void hal_lld_backup_domain_init(void) { /* Selects clock source.*/
RCC->BDCR |= STM32_RTCSEL;
- /* RTC clock enabled.*/
- RCC->BDCR |= RCC_BDCR_RTCEN;
-
/* Prescaler value loaded in registers.*/
rtc_lld_set_prescaler();
+
+ /* RTC clock enabled.*/
+ RCC->BDCR |= RCC_BDCR_RTCEN;
}
#endif /* STM32_RTCSEL != STM32_RTCSEL_NOCLOCK */
#endif /* HAL_USE_RTC */
|