From 9fceed39fc3eebb37344a9f3d99f03272f0c27d0 Mon Sep 17 00:00:00 2001 From: Dima Barsky Date: Sat, 17 Apr 2021 23:43:03 +0100 Subject: [PATCH] When used with FreeRTOS, lower the interrupt priority for OTG_FS_IRQn --- hw/bsp/stm32f4/family.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/bsp/stm32f4/family.c b/hw/bsp/stm32f4/family.c index e10b2450..4a0dbcb1 100644 --- a/hw/bsp/stm32f4/family.c +++ b/hw/bsp/stm32f4/family.c @@ -51,7 +51,7 @@ 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(OTG_FS_IRQn, configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY ); #endif GPIO_InitTypeDef GPIO_InitStruct;