This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Examples using the scheduler

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.

Parents
  • Could I interpret a lack of response as meaning there are a lack of available examples? The reason I made this post is as I'm developing my application, without a real-time event handler on the Nordic platofrm, I'm having to write alot of app_timers to simulate event handing. Timers are a very messy way of handling real-time events, and do not allow for any kind of queued processing? Hope someone can chime in. Thanks

Reply
  • Could I interpret a lack of response as meaning there are a lack of available examples? The reason I made this post is as I'm developing my application, without a real-time event handler on the Nordic platofrm, I'm having to write alot of app_timers to simulate event handing. Timers are a very messy way of handling real-time events, and do not allow for any kind of queued processing? Hope someone can chime in. Thanks

Children
No Data
Related