Skip to content

Commit f65d7d0

Browse files
committed
set irq priority for freertos
1 parent 6ec5174 commit f65d7d0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

hw/bsp/imxrt/family.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,10 @@ void board_init(void)
5050
// 1ms tick timer
5151
SysTick_Config(SystemCoreClock / 1000);
5252
#elif CFG_TUSB_OS == OPT_OS_FREERTOS
53-
// If freeRTOS is used, IRQ priority is limit by max syscall ( smaller is higher )
54-
// NVIC_SetPriority(USB0_IRQn, configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY );
53+
NVIC_SetPriority(USB_OTG1_IRQn, configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY );
54+
#ifdef USB_OTG2_IRQn
55+
NVIC_SetPriority(USB_OTG2_IRQn, configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY );
56+
#endif
5557
#endif
5658

5759
// LED

0 commit comments

Comments
 (0)