diff options
| author | Zixun LI <[email protected]> | 2025-11-25 15:54:45 +0100 |
|---|---|---|
| committer | Zixun LI <[email protected]> | 2025-11-25 16:30:32 +0100 |
| commit | 8221ea220bb523b3d8c6bab915a968477a228a16 (patch) | |
| tree | c05dd51eb4ff2daa007b6c5195148a6019916c20 /hw/bsp/ra | |
| parent | fee2d2a034d65aa625bc1a8b32c3b7a51292a39f (diff) | |
bsp: Disable SysTick ISR if FreeRTOS is enabled
Diffstat (limited to 'hw/bsp/ra')
| -rw-r--r-- | hw/bsp/ra/family.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/bsp/ra/family.c b/hw/bsp/ra/family.c index 0fd24e493..1f75b47c1 100644 --- a/hw/bsp/ra/family.c +++ b/hw/bsp/ra/family.c @@ -118,6 +118,9 @@ void board_init(void) { #if CFG_TUSB_OS == OPT_OS_NONE 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; #endif board_led_write(false); |
