Updated Mar 2025
vTaskStartScheduler
task. h
1void vTaskStartScheduler( void );
Starts the RTOS scheduler. After calling the RTOS kernel has control over which tasks are executed and when.
The idle task and optionally the timer daemon task are created automatically when the RTOS scheduler is started.
vTaskStartScheduler()
All the RTOS demo application projects contain examples of using
vTaskStartScheduler()
main()
Example usage:
1void vAFunction( void )2{3 // Tasks can be created before or after starting the RTOS scheduler4 xTaskCreate( vTaskCode,5 "NAME",6 STACK_SIZE,7 NULL,8 tskIDLE_PRIORITY,9 NULL );1011 // Start the real time scheduler.12 vTaskStartScheduler();1314 // Will not get here unless there is insufficient RAM.15}