3.2.3 函数名 函数名包含了函数返回值的类型、函数所在的文件名和函数的功能,如果是私有的函数则会加一个 prv(private)的前缀。 例如vTaskPrioritySet()函数的返回值为 void 型,在 task.c 这个文件中定义。 3.2.4 宏宏内容是由大写字母表示,前缀是小写字母,表示该宏在哪个头文件定义,如: - <span style="outline: 0px; max-width: 100%; font-family: " operator="" mono",="" consolas,="" monaco,="" menlo,="" monospace;="" font-size:="" 12px;="" white-space:="" pre;="" color:="" rgb(209,="" 154,="" 102);="" line-height:="" 26px;="" box-sizing:="" border-box="" !important;"="">1.</span><span style="color: rgb(171, 178, 191); font-family: " operator="" mono",="" consolas,="" monaco,="" menlo,="" monospace;="" font-size:="" 12px;="" white-space:="" pre;="" background-color:="" rgb(40,="" 44,="" 52);"=""> </span><span style="outline: 0px; max-width: 100%; font-family: " operator="" mono",="" consolas,="" monaco,="" menlo,="" monospace;="" font-size:="" 12px;="" white-space:="" pre;="" color:="" rgb(97,="" 174,="" 238);="" line-height:="" 26px;="" box-sizing:="" border-box="" !important;"="">#<span style="outline: 0px; max-width: 100%; line-height: 26px; box-sizing: border-box !important;">define</span> taskYIELD() portYIELD() </span>
表示该宏是在task.h。
|