• R/O
  • SSH
  • HTTPS

chibios: Commit


Commit MetaInfo

Revision14630 (tree)
Time2021-07-31 20:08:18
Authorvrepetenko

Log Message

Fixed alarm disable problem in st_lld_serve_interrupt.

Change Summary

Incremental Difference

--- trunk/os/hal/ports/STM32/LLD/SYSTICKv2/hal_st_lld.c (revision 14629)
+++ trunk/os/hal/ports/STM32/LLD/SYSTICKv2/hal_st_lld.c (revision 14630)
@@ -103,13 +103,13 @@
103103
104104 /* Enter initialization mode.*/
105105 RTC->ICSR |= RTC_ICSR_INIT;
106- while ((RTC->ICSR & RTC_ICSR_INITF) == 0) {
106+ while ((RTC->ICSR & RTC_ICSR_INITF) == 0U) {
107107 /* Waint for init flag.*/
108108 }
109109
110110 /* Activate free running Binary mode.*/
111111 RTC->ICSR |= RTC_ICSR_BIN_0;
112- /* */
112+ /* Set RTC prescaler.*/
113113 RTC->PRER = STM32_ST_RTC_PRER_BITS;
114114
115115 /* Exit initialization mode.*/
@@ -143,9 +143,6 @@
143143
144144 if ((isr & RTC_MISR_ALRAMF) != 0U) {
145145
146- /* Disable RTC Alarm A.*/
147- RTC->CR &= ~(RTC_CR_ALRAE | RTC_CR_ALRAIE);
148-
149146 osalSysLockFromISR();
150147 osalOsTimerHandlerI();
151148 osalSysUnlockFromISR();
Show on old repository browser