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

I'm analyzing app_timer scheduling code..

I'm analyzing app_timer scheduling code..

I have an question about list_insertation_handler function in SWI0_ISR

I think if ((p_timer->ticks_at_start - m_ticks_latest) & MAX_RTC_COUNTER_VAL)<(MAX_RTC_COUNTER_VAL / 2**)** is true, schduler recognize that m_ticks_latest isn't refreshed.

But I don't know why MAX_RTC_COUNTER_VAL/2 is referenced for if statement in list_insertation_handler()

Related