Skip to content

Commit

Permalink
ports/stm32: Move JPEG priority down to 10.
Browse files Browse the repository at this point in the history
  • Loading branch information
kwagyeman committed Dec 4, 2024
1 parent e993704 commit ad62df8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ports/stm32/irq.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,6 @@ static inline void restore_irq_pri(uint32_t state) {
// DCMI DMA2_Stream1
#define IRQ_PRI_DMA21 NVIC_EncodePriority(NVIC_PRIORITYGROUP_4, 3, 0)

// F7 JPEG encoder
#define IRQ_PRI_JPEG NVIC_EncodePriority(NVIC_PRIORITYGROUP_4, 4, 0)

// SDIO must be higher priority than DMA for SDIO DMA transfers to work.
#define IRQ_PRI_SDIO NVIC_EncodePriority(NVIC_PRIORITYGROUP_4, 4, 0)

Expand Down Expand Up @@ -191,6 +188,8 @@ static inline void restore_irq_pri(uint32_t state) {

#define IRQ_PRI_HSEM NVIC_EncodePriority(NVIC_PRIORITYGROUP_4, 10, 0)

#define IRQ_PRI_JPEG NVIC_EncodePriority(NVIC_PRIORITYGROUP_4, 10, 0)

// Interrupt priority for non-special timers.
#define IRQ_PRI_TIMX NVIC_EncodePriority(NVIC_PRIORITYGROUP_4, 13, 0)

Expand Down

0 comments on commit ad62df8

Please sign in to comment.