esp-idf/components/freertos
Darian Leung 39cf3638ae change(freertos): Deprecate usage of vPortCleanUpTCB() by applications
Previously, if CONFIG_FREERTOS_ENABLE_STATIC_TASK_CLEAN_UP was enabled, users
would provide a definition for a vPortCleanUpTCB() hook function that is called
right before a task's memory is freed in prvDeleteTCB(). However,
vPortCleanUpTCB() will be reclaimed by ESP-IDF for internal use in v6.0.

This commit introduces the following changes...

Introduced a new CONFIG_FREERTOS_TASK_PRE_DELETION_HOOK option:

- Provides the same pre-deletion hook functionality. But users now define
vTaskPreDeletionHook() instead.
- CONFIG_FREERTOS_ENABLE_STATIC_TASK_CLEAN_UP still exists, but is marked as
deprecated. This is to maintain compatibility with existing applications
that already define vPortCleanUpTCB().
- Removed redundant --wl --wrap workaround with vPortCleanUpTCB()
- Added todo notes to remove support for user defined vPortCleanUpTCB()
completely in v6.0.
- Updated test cases to use new CONFIG_FREERTOS_TASK_PRE_DELETION_HOOK option

Freed up portCLEAN_UP_TCB() to call a new internal vPortTCBPreDeleteHook():

- vPortTCBPreDeleteHook() now replaces the previous "wrapped" implementation
of vPortCleanUpTCB().
- vPortTCBPreDeleteHook() is an internal task pre-delete hook for IDF FreeRTOS
ports to inject some pre-deletion operations.
- Internal pre-delete hook now invokes user provided vTaskPreDeletionHook()
if enabled.
- Relocated vPortTCBPreDeleteHook() to correct section in port.c
2023-08-23 17:50:08 +08:00
..
config refactor(freertos): Refactor usage of portSTACK_TYPE to StackType_t 2023-07-31 16:59:41 +02:00
esp_additions feat(esp_system): implement hw stack guard for riscv chips 2023-07-01 16:27:40 +00:00
FreeRTOS-Kernel change(freertos): Deprecate usage of vPortCleanUpTCB() by applications 2023-08-23 17:50:08 +08:00
FreeRTOS-Kernel-SMP change(freertos): Deprecate usage of vPortCleanUpTCB() by applications 2023-08-23 17:50:08 +08:00
FreeRTOS-Kernel-V10.5.1 fix(freertos): Removed croutine.h from v10.5.1 2023-07-19 23:09:19 +03:00
test_apps change(freertos): Deprecate usage of vPortCleanUpTCB() by applications 2023-08-23 17:50:08 +08:00
app_startup.c feat(freertos): Added changes for multi-core RISC-V port for FreeRTOS 2023-08-22 15:35:15 +08:00
CMakeLists.txt change(freertos): Deprecate usage of vPortCleanUpTCB() by applications 2023-08-23 17:50:08 +08:00
heap_idf.c freertos(IDF): Refactor port heap functions 2023-03-06 16:00:29 +08:00
Kconfig change(freertos): Deprecate usage of vPortCleanUpTCB() by applications 2023-08-23 17:50:08 +08:00
linker_common.lf freertos: Refactor component structure 2023-05-08 18:40:03 +08:00
linker_smp.lf change(freertos): Deprecate usage of vPortCleanUpTCB() by applications 2023-08-23 17:50:08 +08:00
linker.lf freertos: riscv: fix vPortTaskWrapper for clang 2023-02-20 13:09:42 +08:00
port_common.c freertos(IDF): Refactor port heap functions 2023-03-06 16:00:29 +08:00
port_systick.c feat(freertos): base support on p4 2023-07-25 05:59:10 +00:00
port_systick.h freertos: Move port_systick to common directory 2023-04-28 23:03:00 +08:00
sdkconfig.rename freertos: always enable static allocation 2020-12-29 16:18:04 +01:00