RTCv1. Fixed compilation issue with HAL_USE_RTC disabled (bug 3594083)

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4894 35acf78f-673a-0410-8e92-d51de3d6d3f4
master
barthess 2012-12-08 20:43:44 +00:00
parent 19e8e1950d
commit dcf8830c45
2 changed files with 4 additions and 0 deletions

View File

@ -76,7 +76,9 @@ static void hal_lld_backup_domain_init(void) {
RCC->BDCR |= RCC_BDCR_RTCEN; RCC->BDCR |= RCC_BDCR_RTCEN;
/* Prescaler value loaded in registers.*/ /* Prescaler value loaded in registers.*/
#if HAL_USE_RTC
rtc_lld_set_prescaler(); rtc_lld_set_prescaler();
#endif /* HAL_USE_RTC */
} }
#endif /* STM32_RTCSEL != STM32_RTCSEL_NOCLOCK */ #endif /* STM32_RTCSEL != STM32_RTCSEL_NOCLOCK */
} }

View File

@ -82,6 +82,8 @@
***************************************************************************** *****************************************************************************
*** 2.5.1 *** *** 2.5.1 ***
- FIX: Compilation issue with HAL_USE_RTC disabled (bug 3594083) (backported
to 2.4.3).
- FIX: Wasting of BKP registers in RTCv1 driver (bug 3594005) (backported - FIX: Wasting of BKP registers in RTCv1 driver (bug 3594005) (backported
to 2.4.3). to 2.4.3).
- FIX: Potential problem with RTC_CRL_RSF bit (bug 3593972) (backported - FIX: Potential problem with RTC_CRL_RSF bit (bug 3593972) (backported