From 3cfb02f1663fbf3a6d7ae367974d0984d3424806 Mon Sep 17 00:00:00 2001 From: Damien George Date: Tue, 24 Nov 2015 15:56:33 +0000 Subject: [PATCH] stmhal/irq: Set all IRQ subpriorities to 0, since they aren't used. --- stmhal/irq.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/stmhal/irq.h b/stmhal/irq.h index 1771d3675f..429e6faa12 100644 --- a/stmhal/irq.h +++ b/stmhal/irq.h @@ -67,7 +67,7 @@ MP_DECLARE_CONST_FUN_OBJ(pyb_enable_irq_obj); // Flash IRQ must be higher priority than interrupts of all those components // that rely on the flash storage. #define IRQ_PRI_FLASH 1 -#define IRQ_SUBPRI_FLASH 1 +#define IRQ_SUBPRI_FLASH 0 // SDIO must be higher priority than DMA for SDIO DMA transfers to work. #define IRQ_PRI_SDIO 4 @@ -94,21 +94,21 @@ MP_DECLARE_CONST_FUN_OBJ(pyb_enable_irq_obj); #define IRQ_SUBPRI_CAN 0 #define IRQ_PRI_UART 13 -#define IRQ_SUBPRI_UART 13 +#define IRQ_SUBPRI_UART 0 // Interrupt priority for non-special timers. #define IRQ_PRI_TIMX 14 -#define IRQ_SUBPRI_TIMX 14 +#define IRQ_SUBPRI_TIMX 0 #define IRQ_PRI_EXTINT 15 -#define IRQ_SUBPRI_EXTINT 15 +#define IRQ_SUBPRI_EXTINT 0 // PENDSV should be at the lowst priority so that other interrupts complete // before exception is raised. #define IRQ_PRI_PENDSV 15 -#define IRQ_SUBPRI_PENDSV 15 +#define IRQ_SUBPRI_PENDSV 0 #define IRQ_PRI_RTC_WKUP 15 -#define IRQ_SUBPRI_RTC_WKUP 15 +#define IRQ_SUBPRI_RTC_WKUP 0