diff options
author | barthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-12-08 18:24:20 +0000 |
---|---|---|
committer | barthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-12-08 18:24:20 +0000 |
commit | 7e1edd8d16ef8552da032804e91a7730caa2c0de (patch) | |
tree | eee35652d2d7b912ee5a70fe15c87667822c8723 /os/hal/platforms/STM32F1xx | |
parent | 8cdaeffa2c3b38cd0056e6f5bd09d561fdd6ad7d (diff) | |
download | ChibiOS-7e1edd8d16ef8552da032804e91a7730caa2c0de.tar.gz ChibiOS-7e1edd8d16ef8552da032804e91a7730caa2c0de.tar.bz2 ChibiOS-7e1edd8d16ef8552da032804e91a7730caa2c0de.zip |
STM32. RTCv1. Fixed wasting of BKP registers in RTCv1 driver (bug 3594005)
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4890 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32F1xx')
-rw-r--r-- | os/hal/platforms/STM32F1xx/hal_lld.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/os/hal/platforms/STM32F1xx/hal_lld.c b/os/hal/platforms/STM32F1xx/hal_lld.c index 9fda0b3e7..bcb7d3f47 100644 --- a/os/hal/platforms/STM32F1xx/hal_lld.c +++ b/os/hal/platforms/STM32F1xx/hal_lld.c @@ -74,6 +74,9 @@ static void hal_lld_backup_domain_init(void) { /* RTC clock enabled.*/
RCC->BDCR |= RCC_BDCR_RTCEN;
+
+ /* Prescaler value loaded in registers.*/
+ rtc_lld_set_prescaler();
}
#endif /* STM32_RTCSEL != STM32_RTCSEL_NOCLOCK */
}
|