Skip to content

Commit f19d913

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

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

hw/bsp/imxrt/family.c

+4-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ void board_init(void)
5151
SysTick_Config(SystemCoreClock / 1000);
5252
#elif CFG_TUSB_OS == OPT_OS_FREERTOS
5353
// If freeRTOS is used, IRQ priority is limit by max syscall ( smaller is higher )
54-
// NVIC_SetPriority(USB0_IRQn, configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY );
54+
NVIC_SetPriority(USB_OTG1_IRQn, configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY );
55+
#ifdef USB_OTG2_IRQn
56+
NVIC_SetPriority(USB_OTG2_IRQn, configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY );
57+
#endif
5558
#endif
5659

5760
// LED

0 commit comments

Comments
 (0)