I am trying to use the Scheduler to create my own event handler system (similar to a Ti 8051 OSAL system). I'm writing separate classes that can push data/trigger handlers between classes via put/scheduled events. Sort of like a soft interrupt. For example I want a timer timeout handler of a Button_timer.c class to send an event to Main.c, to trigger enable/disable some LEDs. This way Main.c acts as the main dispatch and controller for all peripheral events. However I cannot find any examples of the Scheduler where the application created its own events and event handlers. Thus I'm still a little in the dark with exactly how to implement a Scheduler into my application. Can anyone point me to some examples that use the scheduler?
p.s. Tried looking into the HID examples, but the app_sched_init and app_sched_event_put calls are not coded in the application.
Thanks guys.