diff options
| author | Ha Thach <[email protected]> | 2022-05-06 13:04:41 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-05-06 13:04:41 +0700 |
| commit | d23c9b7cd681b972d310e401b418f4368507e06f (patch) | |
| tree | 38dcc032af5180d559c5e8f37ca570ce4b7fcb74 | |
| parent | 6ec5174d8b24d1f01a443c74a0a3dbee00523efc (diff) | |
| parent | f19d913b5d67ecf1b4f4d84c9d9a5880376f5a21 (diff) | |
Merge pull request #1460 from ccrome/chc-fix-freertos-irq-imx
set irq priority for freertos
| -rw-r--r-- | hw/bsp/imxrt/family.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/hw/bsp/imxrt/family.c b/hw/bsp/imxrt/family.c index a811a7e40..8d34d4b9f 100644 --- a/hw/bsp/imxrt/family.c +++ b/hw/bsp/imxrt/family.c @@ -51,7 +51,10 @@ void board_init(void) SysTick_Config(SystemCoreClock / 1000); #elif CFG_TUSB_OS == OPT_OS_FREERTOS // If freeRTOS is used, IRQ priority is limit by max syscall ( smaller is higher ) -// NVIC_SetPriority(USB0_IRQn, configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY ); + NVIC_SetPriority(USB_OTG1_IRQn, configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY ); +#ifdef USB_OTG2_IRQn + NVIC_SetPriority(USB_OTG2_IRQn, configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY ); +#endif #endif // LED |
