summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chip/stm32/clock-stm32f0.c4
-rw-r--r--chip/stm32/registers.h1
2 files changed, 3 insertions, 2 deletions
diff --git a/chip/stm32/clock-stm32f0.c b/chip/stm32/clock-stm32f0.c
index 39a18b8e09..ac5e153209 100644
--- a/chip/stm32/clock-stm32f0.c
+++ b/chip/stm32/clock-stm32f0.c
@@ -194,7 +194,7 @@ void __rtc_alarm_irq(void)
reset_rtc_alarm(&rtc, &rtcss);
}
-DECLARE_IRQ(STM32_IRQ_RTC_WAKEUP, __rtc_alarm_irq, 1);
+DECLARE_IRQ(STM32_IRQ_RTC_ALARM, __rtc_alarm_irq, 1);
static void config_hispeed_clock(void)
{
@@ -437,7 +437,7 @@ void rtc_init(void)
/* Enable RTC alarm interrupt */
STM32_RTC_CR |= STM32_RTC_CR_ALRAIE | STM32_RTC_CR_BYPSHAD;
STM32_EXTI_RTSR |= EXTI_RTC_ALR_EVENT;
- task_enable_irq(STM32_IRQ_RTC_WAKEUP);
+ task_enable_irq(STM32_IRQ_RTC_ALARM);
rtc_lock_regs();
}
diff --git a/chip/stm32/registers.h b/chip/stm32/registers.h
index 24109454f1..37f907f9b8 100644
--- a/chip/stm32/registers.h
+++ b/chip/stm32/registers.h
@@ -15,6 +15,7 @@
#define STM32_IRQ_WWDG 0
#define STM32_IRQ_PVD 1
#define STM32_IRQ_RTC_WAKEUP 2
+#define STM32_IRQ_RTC_ALARM 2
#define STM32_IRQ_FLASH 3
#define STM32_IRQ_RCC 4
#define STM32_IRQ_EXTI0_1 5