I am reading the official free pdf book and API documentation for FreeRTOS.
I have been reading following page
https://www.freertos.org/a00132.html
I don't understand how to use vTaskStartScheduler(). I can create the tasks but as I understand, Only creating task is not sufficient. Tasks will be executed only when the scheduler is started.
Example usage:
I have been reading following page
https://www.freertos.org/a00132.html
I don't understand how to use vTaskStartScheduler(). I can create the tasks but as I understand, Only creating task is not sufficient. Tasks will be executed only when the scheduler is started.
Example usage:
C:
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.
}