Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Scheduler library examples

Hi,

I'm discovering documetation of the Scheduler library. So, as I understand the idea is to call function app_sched_event_put(...,some_func) from the interrupt/event handler and then passed some_func will be executed from the main. app_sched_execute()  should be added to main loop. Everything is clear. There are also some examples: HID Mouse Application and HID Keyboard Application. But in this examples I don't see in main.c any calling of the app_sched_event_put() function. It seems that main application doesn't use the Scheduler, only internal SDK components such as app_timer use it. 
Is it mistake or I don't understand something?

Parents
  • It seems that usage of the Scheduler for App Timer Events in those examples it's a demonstration of using Scheduler library. But it's not clear when you looking on examples. Because you expect to see it in main.c or in other files in application folder. On my oppnion you should note it in documentation on the Scheduler library, where you refer on examples HID Mouse Application and HID Keyboard Application. You should note that Scheduler used for handling App timer events in main context. It's done by enabling APP_TIMER_CONFIG_USE_SCHEDULER...

Reply
  • It seems that usage of the Scheduler for App Timer Events in those examples it's a demonstration of using Scheduler library. But it's not clear when you looking on examples. Because you expect to see it in main.c or in other files in application folder. On my oppnion you should note it in documentation on the Scheduler library, where you refer on examples HID Mouse Application and HID Keyboard Application. You should note that Scheduler used for handling App timer events in main context. It's done by enabling APP_TIMER_CONFIG_USE_SCHEDULER...

Children
No Data
Related