This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

cc3200 freertos osi_sleep 休眠的时间不对

请教一下,参数传的是毫秒数吗?

应该不对吧。

  • /*!
    \brief This function used to suspend the task for the specified number of milli secs
    \param MilliSecs - Time in millisecs to suspend the task
    \return - void
    \note
    \warning
    */
    void osi_Sleep(unsigned int MilliSecs)
    {
    TickType_t xDelay = MilliSecs / portTICK_PERIOD_MS;
    vTaskDelay(xDelay);
    }