To use OSA in your application you need to do the following:
void main (void) { OS_Init(); ... OS_Task_Define(Task_Buttons); OS_Task_Define(Task_LEDs); OS_Task_Define(Task_LCD); ... OS_Task_Create(Task_Buttons); OS_Task_Create(Task_LEDs); OS_Task_Create(Task_LCD); }
void main (void) { OS_Init(); ... OS_Task_Define(Task_Buttons); OS_Task_Define(Task_LEDs); OS_Task_Define(Task_LCD); ... OS_Task_Create(Task_Buttons); OS_Task_Create(Task_LEDs); OS_Task_Create(Task_LCD); }
#pragma funcall main Task_Buttons // Tell linker that function will be // called indirectly void Task_Buttons (void) { ... }