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-d51de3d6d3f4master
parent
e9aae9700a
commit
706b15a2fe
|
@ -73,11 +73,11 @@ static void hal_lld_backup_domain_init(void) {
|
||||||
/* Selects clock source.*/
|
/* Selects clock source.*/
|
||||||
RCC->BDCR |= STM32_RTCSEL;
|
RCC->BDCR |= STM32_RTCSEL;
|
||||||
|
|
||||||
/* RTC clock enabled.*/
|
|
||||||
RCC->BDCR |= RCC_BDCR_RTCEN;
|
|
||||||
|
|
||||||
/* Prescaler value loaded in registers.*/
|
/* Prescaler value loaded in registers.*/
|
||||||
rtc_lld_set_prescaler();
|
rtc_lld_set_prescaler();
|
||||||
|
|
||||||
|
/* RTC clock enabled.*/
|
||||||
|
RCC->BDCR |= RCC_BDCR_RTCEN;
|
||||||
}
|
}
|
||||||
#endif /* STM32_RTCSEL != STM32_RTCSEL_NOCLOCK */
|
#endif /* STM32_RTCSEL != STM32_RTCSEL_NOCLOCK */
|
||||||
#endif /* HAL_USE_RTC */
|
#endif /* HAL_USE_RTC */
|
||||||
|
|
|
@ -82,6 +82,8 @@
|
||||||
*****************************************************************************
|
*****************************************************************************
|
||||||
|
|
||||||
*** 2.5.1 ***
|
*** 2.5.1 ***
|
||||||
|
- FIX: Possible false detect of loaded prescaler in RTCv1 driver (bug
|
||||||
|
3595489) (backported to 2.4.3).
|
||||||
- FIX: Unneded RTC initialization when HAL_USE_RTC disabled (bug 3594620)
|
- FIX: Unneded RTC initialization when HAL_USE_RTC disabled (bug 3594620)
|
||||||
(backported to 2.4.3).
|
(backported to 2.4.3).
|
||||||
- FIX: Compilation issue with HAL_USE_RTC disabled (bug 3594083) (backported
|
- FIX: Compilation issue with HAL_USE_RTC disabled (bug 3594083) (backported
|
||||||
|
|
Loading…
Reference in New Issue