STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
vTaskStartScheduler

task.

task.

h

void vTaskStartScheduler( void );
void vTaskStartScheduler(void) PRIVILEGED_FUNCTION
Definition tasks.c:1967

Starts the real time kernel tick processing. After calling the kernel has control over which tasks are executed and when.

See the demo application file main.c for an example of creating tasks and starting the kernel.

Example usage:

void vAFunction( void )
{
// Create at least one task before starting the kernel.
xTaskCreate( vTaskCode, "NAME", STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );
// Start the real time kernel with preemption.
// Will not get here unless a task calls vTaskEndScheduler ()
}
#define NULL
Definition usbd_def.h:44
#define tskIDLE_PRIORITY
Defines the priority used by the idle task.
Definition task.h:191