OSA : OS_Init

OS_Init ()

Not allowed in interrupt

Initialize all system variables. Called once at the beginning of main() routine.

Call allowed:

Not in interrupt

Parameters:

None

Returns:

nothing

Example:

void main (void)
{
    init();      // init peripherals
    OS_Init();   // Init OSA variables
 
    // Now we can create tasks
    OS_Task_Create(...);
    /*...*/
 
    OS_Run();
 
}

See also