OSA : OS_Sched

OS_Sched ()

Examine all tasks, select ready task with highest priority and run it. Should be called from infinite loop in main(). It is recommended to use OS_Run() instead.

Call allowed:

Only in main()

Parameters:

None

Returns:

nothing

Example:

void main (void)
{
    OS_Init();
    OS_Task_Create(...);
 
    for (;;) {
        OS_Sched ();
    }
}

See also