osStatus osDelayUntil (uint32_t PreviousWakeTime, uint32_t millisec)
{
#if INCLUDE_vTaskDelayUntil
TickType_t ticks = (millisec / portTICK_PERIOD_MS);
TickType_t previouswake = (TickType_t) PreviousWakeTime;
vTaskDelayUntil(&previouswake, ticks ? ticks : 1);
return osOK;
#else
(void) millisec;
(void) PreviousWakeTime;
return osErrorResource;
#endif
}
该函数的TickType_t previouswake = (TickType_t) PreviousWakeTime; 有问题
转载
|