Lines Matching +full:timer +full:- +full:triggered
4 * SPDX-License-Identifier: Apache-2.0
10 * TI SimpleLink CC13X2/CC26X2 RTC-based system timer
12 * This system timer implementation supports both tickless and ticking modes.
13 * RTC counts continually in 64-bit mode and timeouts are
14 * scheduled using the RTC comparator. An interrupt is triggered whenever
21 #include <zephyr/drivers/timer/system_timer.h>
33 /* Number of counts per rtc timer cycle */
80 if ((next - now) > (uint32_t)0x80000000) { in setThreshold()
83 } else if ((now + COMPARE_MARGIN - next) < (uint32_t)0x80000000) { in setThreshold()
111 ticks = (currCount - rtc_last) / RTC_COUNTS_PER_TICK; in rtc_isr()
120 /* calculate new 64-bit RTC count for next interrupt */ in rtc_isr()
158 /* reset timer */ in startDevice()
184 /* start timer */ in startDevice()
197 ticks = CLAMP(ticks - 1, 0, (int32_t) MAX_TICKS); in sys_clock_set_timeout()
204 (count - rtc_last); in sys_clock_set_timeout()
221 uint32_t ret = (AONRTCCurrent64BitValueGet() - rtc_last) / in sys_clock_elapsed()