feat(freertos/smp): Update other IDF components to be compatible with FreeRTOS v11.0.1

This commit is contained in:
Darian Leung
2024-02-02 23:38:00 +08:00
parent 83c686c744
commit 48a7f053d5
4 changed files with 19 additions and 19 deletions

View File

@@ -52,13 +52,13 @@ void esp_restart(void)
}
}
#ifdef CONFIG_FREERTOS_SMP
#if ( ( CONFIG_FREERTOS_SMP ) && ( !CONFIG_FREERTOS_UNICORE ) )
//Note: Scheduler suspension behavior changed in FreeRTOS SMP
vTaskPreemptionDisable(NULL);
#else
// Disable scheduler on this core.
vTaskSuspendAll();
#endif // CONFIG_FREERTOS_SMP
#endif // #if ( ( CONFIG_FREERTOS_SMP ) && ( !CONFIG_FREERTOS_UNICORE ) )
esp_restart_noos();
}