diff options
| author | Zixun LI <[email protected]> | 2025-11-26 11:10:34 +0100 |
|---|---|---|
| committer | Zixun LI <[email protected]> | 2025-11-26 11:10:34 +0100 |
| commit | 37df71cae4c37faaffa1f8a6fc236ec763e4ec03 (patch) | |
| tree | a488ca65990df163e26e078b581fa428c964bbb9 /hw/bsp/stm32f1 | |
| parent | a965e1fa4bd92104d68ab20beb1bb56a5019e153 (diff) | |
| parent | 38842491bb55260c0cc7d7709abe5b0e73a0de61 (diff) | |
Merge remote-tracking branch 'tinyusb/master' into hcd_fsdev
Diffstat (limited to 'hw/bsp/stm32f1')
| -rw-r--r-- | hw/bsp/stm32f1/family.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/bsp/stm32f1/family.c b/hw/bsp/stm32f1/family.c index 29785397f..3147061cf 100644 --- a/hw/bsp/stm32f1/family.c +++ b/hw/bsp/stm32f1/family.c @@ -77,8 +77,9 @@ void board_init(void) { #if CFG_TUSB_OS == OPT_OS_NONE // 1ms tick timer SysTick_Config(SystemCoreClock / 1000); - #elif CFG_TUSB_OS == OPT_OS_FREERTOS + // Explicitly disable systick to prevent its ISR from running before scheduler start + SysTick->CTRL &= ~1U; // If freeRTOS is used, IRQ priority is limit by max syscall ( smaller is higher ) NVIC_SetPriority(USB_HP_CAN1_TX_IRQn, configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY); NVIC_SetPriority(USB_LP_CAN1_RX0_IRQn, configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY); |
