CMSIS-RTOS API implementation for FreeRTOS V8.1.2 有问题

2019-12-13 18:31发布

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; 有问题
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。