From 32b3549cce7a965d92a81db02c7adc973f08d74c Mon Sep 17 00:00:00 2001 From: Dave Curtis Date: Sat, 31 Oct 2015 10:44:20 -0700 Subject: stmhal: Add symbolic #defines for interrupt levels in irq.h. --- stmhal/rtc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'stmhal/rtc.c') 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); -- cgit v1.2.3