System
FreeRTOS
IDF FreeRTOS Upgrade
The IDF FreeRTOS kernel (which is a dual-core SMP implementation of FreeRTOS) has been upgraded to be based on Vanilla FreeRTOS v10.5.1. With this upgrade, the design and implementation of IDF FreeRTOS has also been changed significantly. As a result, users should take not of the following changes to kernel behavior and API:
When enabling single-core mode via the CONFIG_FREERTOS_UNICORE option, the kernel's behavior will now be identical to Vanilla FreeRTOS (see 单核模式 for more details).
For SMP related APIs that were added by IDF FreeRTOS, checks on
xCoreID
arguments are now stricter. Providing out of range values forxCoreID
arguments will now trigger an assert.The following SMP related APIs are now deprecated and replaced due to naming consistency reasons:
xTaskGetAffinity()
is deprecated, callxTaskGetCoreID()
instead.xTaskGetIdleTaskHandleForCPU()
is deprecated, callxTaskGetIdleTaskHandleForCore()
instead.xTaskGetCurrentTaskHandleForCPU()
is deprecated, callxTaskGetCurrentTaskHandleForCore()
instead.
Task Snapshot
The Task Snapshot API has been made private due to a lack of a practical way for the API to be used from user code (the scheduler must be halted before the API can be called).