====== OSA : OS_Init ======
**OS_Init ()**\\
=== ===
{{osa:ref:attr_call_not_int.png|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 ===
----
* [[en:osa:ref:services:alphabetical|Alphabetical]]
* [[en:osa:ref:services:brieflist|All services]]
~~UP~~