diff options
author | Damien George <damien.p.george@gmail.com> | 2017-03-22 12:39:32 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-03-22 12:39:32 +1100 |
commit | 080210ddc60cdfcb33992c20104dd3b2b817861e (patch) | |
tree | 4967567b634c73a7878404bf2fc37a26d974f43b | |
parent | 5d05ff140626c369452f32de841aa1789e490835 (diff) |
stmhal/irq: Shift IRQ priorities of TIM and EXTINT to be above PENDSV.
This way, Timer and ExtInt callbacks can interrupt the low-priority
pendsv handler (for example thread switching).
-rw-r--r-- | stmhal/irq.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stmhal/irq.h b/stmhal/irq.h index bb1749e03..a56f23652 100644 --- a/stmhal/irq.h +++ b/stmhal/irq.h @@ -133,10 +133,10 @@ MP_DECLARE_CONST_FUN_OBJ_0(pyb_irq_stats_obj); #define IRQ_SUBPRI_CAN 0 // Interrupt priority for non-special timers. -#define IRQ_PRI_TIMX 14 +#define IRQ_PRI_TIMX 13 #define IRQ_SUBPRI_TIMX 0 -#define IRQ_PRI_EXTINT 15 +#define IRQ_PRI_EXTINT 14 #define IRQ_SUBPRI_EXTINT 0 // PENDSV should be at the lowst priority so that other interrupts complete |