|
发表于 2024-7-6 19:46:09
|
显示全部楼层
不用管,这都是为了兼容设计,免费的就不要纠结了。倒是V2的好像没有使用专门为arm设计的切换寄存器功能,就是CLZ这个功能。
USE_PORT_OPTIMISED_TASK_SELECTION USE_PORT_OPTIMISED_TASK_SELECTION Parameter Description: Some FreeRTOS ports have two methods of selecting the next task to execute - a generic method, and a method that is specific to that port. The Generic method: - Is used when configUSE_PORT_OPTIMISED_TASK_SELECTION is set to 0, or when a port specific method is not implemented. - Can be used with all FreeRTOS ports. - Is completely written in C, making it less efficient than a port specific method. - Does not impose a limit on the maximum number of available priorities. A port specific method: - Is not available for all ports. - Is used when configUSE_PORT_OPTIMISED_TASK_SELECTION is set to 1. - Relies on one or more architecture specific assembly instructions (typically a Count Leading Zeros [CLZ] of equivalent instruction) so can only be used with the architecture for which it was specifically written. - Is more efficient than the generic method. - Typically imposes a limit of 32 on the maximum number of available priorities. Warning: Forced to 1 (Enabled) since FreeRTOS v9 support. |
|