summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/rtc.c
diff options
context:
space:
mode:
authorDave Curtis <davecurtis@sonic.net>2015-10-31 10:44:20 -0700
committerDamien George <damien.p.george@gmail.com>2015-11-01 23:23:39 +0000
commit32b3549cce7a965d92a81db02c7adc973f08d74c (patch)
tree8159317d2091e30cf33093dacdbfae76c8d374fc /stmhal/rtc.c
parent056cb288d9a3d5aa35b3cf549f88688b9ba60163 (diff)
downloadmicropython-32b3549cce7a965d92a81db02c7adc973f08d74c.tar.gz
micropython-32b3549cce7a965d92a81db02c7adc973f08d74c.zip
stmhal: Add symbolic #defines for interrupt levels in irq.h.
Diffstat (limited to 'stmhal/rtc.c')
-rw-r--r--stmhal/rtc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/stmhal/rtc.c b/stmhal/rtc.c
index be6aec2e0e..4f54663970 100644
--- a/stmhal/rtc.c
+++ b/stmhal/rtc.c
@@ -30,6 +30,7 @@
#include "py/runtime.h"
#include "rtc.h"
+#include "irq.h"
/// \moduleref pyb
/// \class RTC - real time clock
@@ -496,7 +497,7 @@ mp_obj_t pyb_rtc_wakeup(mp_uint_t n_args, const mp_obj_t *args) {
RTC->ISR &= ~(1 << 10);
EXTI->PR = 1 << 22;
- HAL_NVIC_SetPriority(RTC_WKUP_IRQn, 0x0f, 0x0f);
+ HAL_NVIC_SetPriority(RTC_WKUP_IRQn, IRQ_PRI_RTC_WKUP, IRQ_SUBPRI_RTC_WKUP);
HAL_NVIC_EnableIRQ(RTC_WKUP_IRQn);
//printf("wut=%d wucksel=%d\n", wut, wucksel);