Searched refs:ticks_sub (Results 1 – 2 of 2) sorted by relevance
/Zephyr-Core-2.7.6/drivers/counter/ |
D | counter_nrfx_rtc.c | 114 static uint32_t ticks_sub(const struct device *dev, uint32_t val, in ticks_sub() function 254 if (ticks_sub(dev, prev_val, now, top) == 1) { in set_cc() 281 diff = ticks_sub(dev, val, now, top); in set_cc() 296 diff = ticks_sub(dev, val - 1, now, top); in set_cc() 618 cc = ticks_sub(dev, cc, 1, in alarm_irq_handle()
|
D | counter_nrfx_timer.c | 120 static uint32_t ticks_sub(uint32_t val, uint32_t old, uint32_t top) in ticks_sub() function 189 diff = ticks_sub(val - 1, read(dev), top); in set_cc()
|