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

How to use the Scheduler for a subset of the Application Timers

I have implemented multiple application timers who all automatically use the scheduler because I used:

APP_TIMER_APPSH_INIT(APP_TIMER_PRESCALER, APP_TIMER_OP_QUEUE_SIZE, true);

Nevertheless, I have one specific timer who is very time critical so I don't want to use the scheduler for this timer interrupt. I would like to just execute the code in the timer interrupt itself, while all the other timers are handled by the scheduler. Is this possible?

I read the shedulder tutorial but the only thing I could think of is using app_sched_event_ put() in every interrupt instead of the APP_TIMER_APPSH_INIT(), so basically handling the timer interrupts myself. This way I can select for each timer if I want to use the scheduler or not. Is this the way to go or is there a better way?

Parents Reply Children
No Data
Related