中科因仑“3+1”工程特种兵精英论坛
标题:
CMSIS-RTOS API implementation for FreeRTOS V8.1.2 有问题
[打印本页]
作者:
张衍波
时间:
2015-5-20 08:15
标题:
CMSIS-RTOS API implementation for FreeRTOS V8.1.2 有问题
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; 有问题
转载
欢迎光临 中科因仑“3+1”工程特种兵精英论坛 (http://bbs.enlern.com/)
Powered by Discuz! X3.4