我一直在阅读官网文档:
Https://www.freertos.org/a00132.html
我不明白如何使用vTaskStartScheduler()。我可以创建任务,但据我所知,仅创建任务是不够的。只有在调度程序启动时才会执行任务。
示例用法:
void vAFunction( void )
{
// Tasks can be created before or after starting the RTOS
scheduler
xTaskCreate( vTaskCode,
"NAME",
STACK_SIZE,
NULL,
tskIDLE_PRIORITY,
NULL );
// Start the real time scheduler.
vTaskStartScheduler();
// Will not get here unless there is insufficient RAM.
}
我要赚赏金
