From 45650e37ac1b2b712184a227527e24d02795f938 Mon Sep 17 00:00:00 2001 From: barthess Date: Thu, 13 Dec 2012 06:10:53 +0000 Subject: [PATCH] RTCv1. Fixed possible false detect of loaded prescaler (bug 3595489) git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/stable_2.4.x@4910 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/STM32F1xx/hal_lld.c | 6 +++--- readme.txt | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/os/hal/platforms/STM32F1xx/hal_lld.c b/os/hal/platforms/STM32F1xx/hal_lld.c index d168ad603..f5e829397 100644 --- a/os/hal/platforms/STM32F1xx/hal_lld.c +++ b/os/hal/platforms/STM32F1xx/hal_lld.c @@ -80,11 +80,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 */ diff --git a/readme.txt b/readme.txt index cd6c19e95..9fade6340 100644 --- a/readme.txt +++ b/readme.txt @@ -79,6 +79,8 @@ ***************************************************************************** *** 2.4.3 *** +- FIX: Possible false detect of loaded prescaler in RTCv1 driver (bug + 3595489) - FIX: Unneded RTC initialization when HAL_USE_RTC disabled (bug 3594620). - FIX: Compilation issue with HAL_USE_RTC disabled (bug 3594083). - FIX: Wasting of BKP registers in RTCv1 driver (bug 3594005).