diff options
-rw-r--r-- | os/hal/platforms/STM32F1xx/hal_lld.c | 2 | ||||
-rw-r--r-- | readme.txt | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/os/hal/platforms/STM32F1xx/hal_lld.c b/os/hal/platforms/STM32F1xx/hal_lld.c index bcb7d3f47..3d3c6caaa 100644 --- a/os/hal/platforms/STM32F1xx/hal_lld.c +++ b/os/hal/platforms/STM32F1xx/hal_lld.c @@ -76,7 +76,9 @@ static void hal_lld_backup_domain_init(void) { RCC->BDCR |= RCC_BDCR_RTCEN;
/* Prescaler value loaded in registers.*/
+#if HAL_USE_RTC
rtc_lld_set_prescaler();
+#endif /* HAL_USE_RTC */
}
#endif /* STM32_RTCSEL != STM32_RTCSEL_NOCLOCK */
}
diff --git a/readme.txt b/readme.txt index 1bc573183..b47c67298 100644 --- a/readme.txt +++ b/readme.txt @@ -82,6 +82,8 @@ *****************************************************************************
*** 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
to 2.4.3).
- FIX: Potential problem with RTC_CRL_RSF bit (bug 3593972) (backported
|