Lines Matching +full:idle +full:- +full:count
4 * SPDX-License-Identifier: Apache-2.0
11 * @brief Ambiq Apollo STIMER-based sys_clock driver
22 /* ambiq-sdk includes */
28 #define MAX_TICKS ((k_ticks_t)(COUNTER_MAX / CYC_PER_TICK) - 1)
63 /* Read current cycle count. */ in update_tick_counter()
66 /* If current cycle count is smaller than the last time stamp, a counter overflow happened. in update_tick_counter()
73 uint32_t elapsed_cycle = (now_64 - g_last_time_stamp); in update_tick_counter()
99 /*Calculate the elapsed ticks based on the current cycle count*/ in stimer_isr()
107 /* Read current cycle count. */ in stimer_isr()
110 /* If current cycle count is smaller than the last time stamp, a counter in stimer_isr()
117 uint32_t delta = (now_64 + MIN_DELAY < next) ? (next - now_64) : MIN_DELAY; in stimer_isr()
130 void sys_clock_set_timeout(int32_t ticks, bool idle) in sys_clock_set_timeout() argument
132 ARG_UNUSED(idle); in sys_clock_set_timeout()
160 uint32_t gap = next - last; in sys_clock_set_timeout()
164 uint32_t delta = next_aligned - now_64; in sys_clock_set_timeout()