Fixed RTC alarms problem.
@@ -671,7 +671,7 @@ | ||
671 | 671 | |
672 | 672 | /* RTC APB clock enable.*/ |
673 | 673 | #if (HAL_USE_RTC == TRUE) && defined(RCC_APBENR1_RTCAPBEN) |
674 | - rccEnableAPB1R1(RCC_APB1ENR1_RTCAPBEN, false) | |
674 | + rccEnableAPB1R1(RCC_APB1ENR1_RTCAPBEN, true) | |
675 | 675 | #endif |
676 | 676 | |
677 | 677 | /* Static PWR configurations.*/ |
@@ -721,7 +721,7 @@ | ||
721 | 721 | |
722 | 722 | /* RTC APB clock enable.*/ |
723 | 723 | #if (HAL_USE_RTC == TRUE) && defined(RCC_APBENR1_RTCAPBEN) |
724 | - rccEnableAPB1R1(RCC_APB1ENR1_RTCAPBEN, false) | |
724 | + rccEnableAPB1R1(RCC_APB1ENR1_RTCAPBEN, true) | |
725 | 725 | #endif |
726 | 726 | |
727 | 727 | /* Static PWR configurations.*/ |
@@ -678,7 +678,7 @@ | ||
678 | 678 | |
679 | 679 | /* RTC clock enable.*/ |
680 | 680 | #if HAL_USE_RTC |
681 | - rccEnableAPB1R1(RCC_APB1ENR1_RTCAPBEN, false); | |
681 | + rccEnableAPB1R1(RCC_APB1ENR1_RTCAPBEN, true); | |
682 | 682 | #endif |
683 | 683 | |
684 | 684 | #if defined(HAL_LLD_USE_CLOCK_MANAGEMENT) |