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:
Giovanni Di Sirio 2021-07-15 08:44:13 +00:00
parent 8e7c129fc8
commit 98ccc315fa
2 changed files with 3 additions and 3 deletions

View File

@ -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.*/

View File

@ -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)