ZestCode
 
Loading...
Searching...
No Matches
rtos_sched_start

task. h

void rtos_sched_start( void );

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.
    task_create( vTaskCode, "NAME", STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );

    // Start the real time kernel with preemption.
    rtos_sched_start ();

    // Will not get here unless a task calls rtos_sched_stop ()
}