Browse Source

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.
Omar Chebib 4 năm trước cách đây
mục cha
commit
fcd11ba125

+ 0 - 4
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 */
 

+ 5 - 0
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.