在 freeRTOS 任务创建或使用中,v 和 x 是什么意思?
what is v and x means in freeRTOS task creating or used in it?
免费 RTOS 的任务创建或管理中的 x 和 v 是什么意思?
xTaskcreate 还是 vTaskcreate?
FreeRTOS 函数的前导字符标识函数的 return 类型。以 "v" return 开头的函数无效。以 "x" 开头的函数通常 return 一个结果代码或句柄。请参阅 FreeRTOS 编码标准的 Naming Conventions 页。
根据 FreeRTOS Documentation:
Variables of non stdint types are prefixed x. Examples
include BaseType_t and TickType_t, which are portable layer
defined typedefs for the natural or most efficient type for the
architecture and the type used to hold the RTOS tick count
respectively.
Variables of type size_t are also prefixed x.
API functions are prefixed with their return type, as per the
convention defined for variables, with the addition of the prefix
v for void.
另外,variable/function名字的第二部分,对于
示例任务,表示variable/function所在的文件
已实施,即 task.c.
免费 RTOS 的任务创建或管理中的 x 和 v 是什么意思? xTaskcreate 还是 vTaskcreate?
FreeRTOS 函数的前导字符标识函数的 return 类型。以 "v" return 开头的函数无效。以 "x" 开头的函数通常 return 一个结果代码或句柄。请参阅 FreeRTOS 编码标准的 Naming Conventions 页。
根据 FreeRTOS Documentation:
Variables of non stdint types are prefixed x. Examples include BaseType_t and TickType_t, which are portable layer defined typedefs for the natural or most efficient type for the architecture and the type used to hold the RTOS tick count respectively.
Variables of type size_t are also prefixed x.
API functions are prefixed with their return type, as per the convention defined for variables, with the addition of the prefix v for void.
另外,variable/function名字的第二部分,对于 示例任务,表示variable/function所在的文件 已实施,即 task.c.