工具与软件:
尊敬的专家:
我希望任务每1ms 周期性地运行一次、所以我使用了以下代码。
TickType_t xLastWakeTime;
const TickType_t xFrequency = pdMS_TO_TICKS(1);
// Initialise the xLastWakeTime variable with the current time.
xLastWakeTime = xTaskGetTickCount();
while(1)
{
if (gbShutdown == 1u)
{
break;
}
/*User code as per application*/
vTaskDelayUntil( &xLastWakeTime, xFrequency );
}我不知道为什么会出现这个错误、您能帮我解决这个问题吗?
在搜索 task.c 文件时、我找到了一个 macro-guarded (#if (include_xTaskDelayUntil == 1))、但很遗憾、 在包含的头文件中没有找到该文件。
编译时收到的错误更可能出现在 make 文件中。


此致、
去巴希
