From fcd11ba1252ceae7bc23ffd48b2a5622168bcac1 Mon Sep 17 00:00:00 2001 From: Omar Chebib Date: Thu, 2 Dec 2021 10:28:38 +0800 Subject: [PATCH] FreeRTOS: Remove task_snapshot inclusion from task.h Remove ESP's addition of task_snapshot.h from task.h. This line was added previously for backward compatibility. For IDF v5.0, this can be removed. --- components/freertos/FreeRTOS-Kernel/include/freertos/task.h | 4 ---- docs/en/migration-guides/system.rst | 5 +++++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/components/freertos/FreeRTOS-Kernel/include/freertos/task.h b/components/freertos/FreeRTOS-Kernel/include/freertos/task.h index 335f4ce04c..bcceaa40e2 100644 --- a/components/freertos/FreeRTOS-Kernel/include/freertos/task.h +++ b/components/freertos/FreeRTOS-Kernel/include/freertos/task.h @@ -3492,10 +3492,6 @@ TaskHandle_t pvTaskIncrementMutexHeldCount( void ) PRIVILEGED_FUNCTION; */ void vTaskInternalSetTimeOutState( TimeOut_t * const pxTimeOut ) PRIVILEGED_FUNCTION; -#ifdef ESP_PLATFORM -/* TODO: IDF-3683 */ -#include "freertos/task_snapshot.h" -#endif // ESP_PLATFORM /** @endcond */ diff --git a/docs/en/migration-guides/system.rst b/docs/en/migration-guides/system.rst index 62acc2fe61..8d291d489b 100644 --- a/docs/en/migration-guides/system.rst +++ b/docs/en/migration-guides/system.rst @@ -33,3 +33,8 @@ The header ``trax.h`` has been made private. ESP-IDF developers should include ` ROM --- Deprecated ROM related header files from `components/esp32/rom/` (old include path: `rom/*.h`) have been deleted. Please update to use the new target-specific path from `components/esp_rom/include/{IDF_TARGET_NAME}/` (new include path: `{IDF_TARGET_NAME}/rom/*.h`). + +Tasks snapshot +-------------- + +The header ``task_snapshot.h`` has been removed from ``freertos/task.h``. ESP-IDF developers should include ``"freertos/task_snapshot.h``` in case they need tasks snapshot API.