FreeRTOS¶
Interface to FreeRTOS functions.
詳細情報¶
メンバー¶
sleep()¶
void FreeRTOS::sleep(uint32_t ms)
引数
- uint32_t
msThe period in milliseconds for which to sleep.
startTask()¶
void FreeRTOS::startTask(void task(void *), std::string taskName, void *param=nullptr, uint32_t stackSize=2048)
引数
- void
taskThe function pointer to the function to be run in the task. - std::string
taskNameA string identifier for the task. - void *
paramAn optional parameter to be passed to the started task. - uint32_t
stackSizeAn optional paremeter supplying the size of the stack in which to run the task.
deleteTask()¶
void FreeRTOS::deleteTask(TaskHandle_t pTask=nullptr)
引数
- TaskHandle_t
pTaskAn optional handle to the task to be deleted. If not supplied the calling task will be deleted.
getTimeSinceStart()¶
Get the time in milliseconds since the FreeRTOS scheduler started.
uint32_t FreeRTOS::getTimeSinceStart()
戻り値
uint32_t The time in milliseconds since the FreeRTOS scheduler started.