Commit 3cfb02f1 authored by Damien George's avatar Damien George
Browse files

stmhal/irq: Set all IRQ subpriorities to 0, since they aren't used.

parent 18820471
...@@ -67,7 +67,7 @@ MP_DECLARE_CONST_FUN_OBJ(pyb_enable_irq_obj); ...@@ -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 // Flash IRQ must be higher priority than interrupts of all those components
// that rely on the flash storage. // that rely on the flash storage.
#define IRQ_PRI_FLASH 1 #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. // SDIO must be higher priority than DMA for SDIO DMA transfers to work.
#define IRQ_PRI_SDIO 4 #define IRQ_PRI_SDIO 4
...@@ -94,21 +94,21 @@ MP_DECLARE_CONST_FUN_OBJ(pyb_enable_irq_obj); ...@@ -94,21 +94,21 @@ MP_DECLARE_CONST_FUN_OBJ(pyb_enable_irq_obj);
#define IRQ_SUBPRI_CAN 0 #define IRQ_SUBPRI_CAN 0
#define IRQ_PRI_UART 13 #define IRQ_PRI_UART 13
#define IRQ_SUBPRI_UART 13 #define IRQ_SUBPRI_UART 0
// Interrupt priority for non-special timers. // Interrupt priority for non-special timers.
#define IRQ_PRI_TIMX 14 #define IRQ_PRI_TIMX 14
#define IRQ_SUBPRI_TIMX 14 #define IRQ_SUBPRI_TIMX 0
#define IRQ_PRI_EXTINT 15 #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 // PENDSV should be at the lowst priority so that other interrupts complete
// before exception is raised. // before exception is raised.
#define IRQ_PRI_PENDSV 15 #define IRQ_PRI_PENDSV 15
#define IRQ_SUBPRI_PENDSV 15 #define IRQ_SUBPRI_PENDSV 0
#define IRQ_PRI_RTC_WKUP 15 #define IRQ_PRI_RTC_WKUP 15
#define IRQ_SUBPRI_RTC_WKUP 15 #define IRQ_SUBPRI_RTC_WKUP 0
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment