mirror of
https://github.com/espressif/esp-idf.git
synced 2025-11-22 03:13:45 +00:00
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
19 lines
737 B
Plaintext
19 lines
737 B
Plaintext
# Test configuration for enabling multiple optional FreeRTOS related features. Tested on all targets
|
|
|
|
CONFIG_FREERTOS_CORETIMER_1=y
|
|
CONFIG_FREERTOS_OPTIMIZED_SCHEDULER=n
|
|
CONFIG_FREERTOS_HZ=500
|
|
CONFIG_FREERTOS_CHECK_STACKOVERFLOW_PTRVAL=y
|
|
CONFIG_FREERTOS_WATCHPOINT_END_OF_STACK=y
|
|
CONFIG_FREERTOS_INTERRUPT_BACKTRACE=n
|
|
CONFIG_FREERTOS_SUPPORT_STATIC_ALLOCATION=y
|
|
CONFIG_FREERTOS_TASK_PRE_DELETION_HOOK=y
|
|
CONFIG_FREERTOS_QUEUE_REGISTRY_SIZE=10
|
|
CONFIG_FREERTOS_USE_TRACE_FACILITY=y
|
|
CONFIG_FREERTOS_USE_STATS_FORMATTING_FUNCTIONS=y
|
|
CONFIG_FREERTOS_VTASKLIST_INCLUDE_COREID=y
|
|
CONFIG_FREERTOS_GENERATE_RUN_TIME_STATS=y
|
|
CONFIG_FREERTOS_PLACE_FUNCTIONS_INTO_FLASH=y
|
|
CONFIG_FREERTOS_FPU_IN_ISR=y
|
|
CONFIG_FREERTOS_TASK_NOTIFICATION_ARRAY_ENTRIES=2
|