mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-30 19:19:21 +00:00
feat(freertos/smp): Update other IDF components to be compatible with FreeRTOS v11.0.1
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user