Skip to content

Commit 3cfb02f

Browse files
committed
stmhal/irq: Set all IRQ subpriorities to 0, since they aren't used.
1 parent 1882047 commit 3cfb02f

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

stmhal/irq.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ MP_DECLARE_CONST_FUN_OBJ(pyb_enable_irq_obj);
6767
// Flash IRQ must be higher priority than interrupts of all those components
6868
// that rely on the flash storage.
6969
#define IRQ_PRI_FLASH 1
70-
#define IRQ_SUBPRI_FLASH 1
70+
#define IRQ_SUBPRI_FLASH 0
7171

7272
// SDIO must be higher priority than DMA for SDIO DMA transfers to work.
7373
#define IRQ_PRI_SDIO 4
@@ -94,21 +94,21 @@ MP_DECLARE_CONST_FUN_OBJ(pyb_enable_irq_obj);
9494
#define IRQ_SUBPRI_CAN 0
9595

9696
#define IRQ_PRI_UART 13
97-
#define IRQ_SUBPRI_UART 13
97+
#define IRQ_SUBPRI_UART 0
9898

9999
// Interrupt priority for non-special timers.
100100
#define IRQ_PRI_TIMX 14
101-
#define IRQ_SUBPRI_TIMX 14
101+
#define IRQ_SUBPRI_TIMX 0
102102

103103
#define IRQ_PRI_EXTINT 15
104-
#define IRQ_SUBPRI_EXTINT 15
104+
#define IRQ_SUBPRI_EXTINT 0
105105

106106
// PENDSV should be at the lowst priority so that other interrupts complete
107107
// before exception is raised.
108108
#define IRQ_PRI_PENDSV 15
109-
#define IRQ_SUBPRI_PENDSV 15
109+
#define IRQ_SUBPRI_PENDSV 0
110110

111111
#define IRQ_PRI_RTC_WKUP 15
112-
#define IRQ_SUBPRI_RTC_WKUP 15
112+
#define IRQ_SUBPRI_RTC_WKUP 0
113113

114114

0 commit comments

Comments
 (0)