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

Q about APP_TIMER_MIN_TIMEOUT_TICKS

I need to create timeout below 1ms. I would pretty much like to use timer for that because I do not want to hold the cpu inside cycle. For me it is not important the exactness of the time but I need for instance to have timeout bigger than 30us and let the other tasks do theyr stuff if they need to. It is perfectly ok to return after 80us if something is using CPU for the time. This would be solved by one-shot timer with amount of 1 ticks.

I see that the APP_TIMER_MIN_TIMEOUT_TICKS is set to 5. If I want to create timer for 1 tick, then I will fail because of this. 5 is too much more than needed- it is ok if some times it takes 5 ticks instead of 1 but I would like in this situation to have chance also to have faster firing from timer.

My question is, is there a reason the APP_TIMER_MIN_TIMEOUT_TICKS is set to 5 and can not be set to 1 ?

Related