Home
last modified time | relevance | path

Searched refs:TIMER_TOP_VALUE (Results 1 – 1 of 1) sorted by relevance

/Zephyr-latest/drivers/counter/
Dcounter_smartbond_timer.c26 #define TIMER_TOP_VALUE 0xFFFFFF macro
189 return TIMER_TOP_VALUE; in counter_smartbond_get_top_value()
237 __ASSERT_NO_MSG(data->guard_period < TIMER_TOP_VALUE); in counter_smartbond_set_alarm()
240 max_rel_val = TIMER_TOP_VALUE - data->guard_period; in counter_smartbond_set_alarm()
252 irq_on_late = val < (TIMER_TOP_VALUE / 2U); in counter_smartbond_set_alarm()
254 max_rel_val = irq_on_late ? TIMER_TOP_VALUE / 2U : TIMER_TOP_VALUE; in counter_smartbond_set_alarm()
255 val = (now + val) & TIMER_TOP_VALUE; in counter_smartbond_set_alarm()
262 diff = ((val - 1U) - counter_smartbond_read(dev)) & TIMER_TOP_VALUE; in counter_smartbond_set_alarm()