• R/O
  • SSH
  • HTTPS

chibios: Commit


Commit MetaInfo

Revisão14601 (tree)
Hora2021-07-15 17:44:05
Autorgdisirio

Mensagem de Log

Fixed RTC alarms problem.

Mudança Sumário

Diff

--- branches/stable_21.6.x/os/hal/ports/STM32/STM32G4xx/hal_lld.c (revision 14600)
+++ branches/stable_21.6.x/os/hal/ports/STM32/STM32G4xx/hal_lld.c (revision 14601)
@@ -671,7 +671,7 @@
671671
672672 /* RTC APB clock enable.*/
673673 #if (HAL_USE_RTC == TRUE) && defined(RCC_APBENR1_RTCAPBEN)
674- rccEnableAPB1R1(RCC_APB1ENR1_RTCAPBEN, false)
674+ rccEnableAPB1R1(RCC_APB1ENR1_RTCAPBEN, true)
675675 #endif
676676
677677 /* Static PWR configurations.*/
@@ -721,7 +721,7 @@
721721
722722 /* RTC APB clock enable.*/
723723 #if (HAL_USE_RTC == TRUE) && defined(RCC_APBENR1_RTCAPBEN)
724- rccEnableAPB1R1(RCC_APB1ENR1_RTCAPBEN, false)
724+ rccEnableAPB1R1(RCC_APB1ENR1_RTCAPBEN, true)
725725 #endif
726726
727727 /* Static PWR configurations.*/
--- branches/stable_21.6.x/os/hal/ports/STM32/STM32WLxx/hal_lld.c (revision 14600)
+++ branches/stable_21.6.x/os/hal/ports/STM32/STM32WLxx/hal_lld.c (revision 14601)
@@ -678,7 +678,7 @@
678678
679679 /* RTC clock enable.*/
680680 #if HAL_USE_RTC
681- rccEnableAPB1R1(RCC_APB1ENR1_RTCAPBEN, false);
681+ rccEnableAPB1R1(RCC_APB1ENR1_RTCAPBEN, true);
682682 #endif
683683
684684 #if defined(HAL_LLD_USE_CLOCK_MANAGEMENT)
Show on old repository browser