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

Will the app timer timeout handler be executed in main context if I use app_schedule?

I want to use app timer to get an power saving delay to wait some external chip operation done. So I use an app timer to set a flag when timer expired  and in the wait function just check the flag to be set, if it is not set, reschedule the timer and put n51822 back to sleep. Is it possible?

Parents
  • Hi,

    Yes. The app timer is integrated with the scheduler, so if you use the scheduler in your application (define APP_TIMER_CONFIG_USE_SCHEDULER and call app_sched_execute() in the main loop), then app timer timeout handlers will be executed in the main context.

Reply
  • Hi,

    Yes. The app timer is integrated with the scheduler, so if you use the scheduler in your application (define APP_TIMER_CONFIG_USE_SCHEDULER and call app_sched_execute() in the main loop), then app timer timeout handlers will be executed in the main context.

Children
No Data