mirror of https://github.com/rusefi/ChibiOS.git
Fixed RTC alarms problem.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14602 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
parent
8e7c129fc8
commit
98ccc315fa
|
@ -671,7 +671,7 @@ void stm32_clock_init(void) {
|
|||
|
||||
/* RTC APB clock enable.*/
|
||||
#if (HAL_USE_RTC == TRUE) && defined(RCC_APBENR1_RTCAPBEN)
|
||||
rccEnableAPB1R1(RCC_APB1ENR1_RTCAPBEN, false)
|
||||
rccEnableAPB1R1(RCC_APB1ENR1_RTCAPBEN, true)
|
||||
#endif
|
||||
|
||||
/* Static PWR configurations.*/
|
||||
|
@ -721,7 +721,7 @@ void stm32_clock_init(void) {
|
|||
|
||||
/* RTC APB clock enable.*/
|
||||
#if (HAL_USE_RTC == TRUE) && defined(RCC_APBENR1_RTCAPBEN)
|
||||
rccEnableAPB1R1(RCC_APB1ENR1_RTCAPBEN, false)
|
||||
rccEnableAPB1R1(RCC_APB1ENR1_RTCAPBEN, true)
|
||||
#endif
|
||||
|
||||
/* Static PWR configurations.*/
|
||||
|
|
|
@ -683,7 +683,7 @@ void stm32_clock_init(void) {
|
|||
|
||||
/* RTC clock enable.*/
|
||||
#if HAL_USE_RTC
|
||||
rccEnableAPB1R1(RCC_APB1ENR1_RTCAPBEN, false);
|
||||
rccEnableAPB1R1(RCC_APB1ENR1_RTCAPBEN, true);
|
||||
#endif
|
||||
|
||||
#if defined(HAL_LLD_USE_CLOCK_MANAGEMENT)
|
||||
|
|
Loading…
Reference in New Issue