We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b53c1e commit 6781ee8Copy full SHA for 6781ee8
targets/TARGET_Maxim/TARGET_MAX32600/rtc_api.c
@@ -33,6 +33,7 @@
33
34
#include "rtc_api.h"
35
#include "lp_ticker_api.h"
36
+#include "ticker_api.h"
37
#include "cmsis.h"
38
#include "rtc_regs.h"
39
#include "pwrseq_regs.h"
@@ -73,8 +74,10 @@ void rtc_init(void)
73
74
MXC_PWRSEQ->reg0 |= MXC_F_PWRSEQ_REG0_PWR_RTCEN_RUN;
75
76
// Prepare interrupt handlers
77
+#ifdef DEVICE_LPTICKER
78
NVIC_SetVector(RTC0_IRQn, (uint32_t)lp_ticker_irq_handler);
79
NVIC_EnableIRQ(RTC0_IRQn);
80
+#endif
81
NVIC_SetVector(RTC3_IRQn, (uint32_t)overflow_handler);
82
NVIC_EnableIRQ(RTC3_IRQn);
83
0 commit comments