Home
last modified time | relevance | path

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

/Zephyr-latest/soc/nordic/
Dtiming.c49 #define COUNTER_SPAN BIT(16) in soc_timing_cycles_get() macro
51 #define COUNTER_SPAN BIT64(32) in soc_timing_cycles_get()
56 return COUNTER_SPAN + *end - *start; in soc_timing_cycles_get()
/Zephyr-latest/drivers/timer/
Dsmartbond_timer.c17 #define COUNTER_SPAN BIT(24) macro
21 #define MAX_TICKS (((COUNTER_SPAN / 2) - CYC_PER_TICK) / (CYC_PER_TICK))
60 timer_val_31_24 += COUNTER_SPAN; in timer_val_32()
78 val += COUNTER_SPAN; in timer_val_32_noupdate()
Dnrf_grtc_timer.c46 #define COUNTER_SPAN (GRTC_SYSCOUNTERL_VALUE_Msk | ((uint64_t)GRTC_SYSCOUNTERH_VALUE_Msk << 32)) macro
48 (((COUNTER_SPAN / CYC_PER_TICK) > INT_MAX) ? INT_MAX : (COUNTER_SPAN / CYC_PER_TICK))
246 __ASSERT_NO_MSG(target_time < COUNTER_SPAN); in compare_set_nolocks()
302 return (grtc_ticks > (int64_t)COUNTER_SPAN) ? in z_nrf_grtc_timer_get_ticks()
309 if (result > (int64_t)COUNTER_SPAN) { in z_nrf_grtc_timer_get_ticks()
331 result = nrfx_grtc_syscounter_cc_absolute_set(&user_channel_data, COUNTER_SPAN, false); in z_nrf_grtc_timer_capture_prepare()
363 __ASSERT_NO_MSG(capt_time < COUNTER_SPAN); in z_nrf_grtc_timer_capture_read()
Dnrf_rtc_timer.c37 #define COUNTER_SPAN BIT(COUNTER_BIT_WIDTH) macro
38 #define COUNTER_MAX (COUNTER_SPAN - 1U)
39 #define COUNTER_HALF_SPAN (COUNTER_SPAN / 2U)
45 #define OVERFLOW_RISK_RANGE_END (COUNTER_SPAN / 16)
46 #define ANCHOR_RANGE_START (COUNTER_SPAN / 8)
47 #define ANCHOR_RANGE_END (7 * COUNTER_SPAN / 8)
213 return (t.ticks > COUNTER_SPAN) ? in z_nrf_rtc_timer_get_ticks()
220 if (result > COUNTER_SPAN) { in z_nrf_rtc_timer_get_ticks()
442 val += COUNTER_SPAN; in z_nrf_rtc_timer_read()
618 if (counter() >= (COUNTER_SPAN - 100)) { in z_nrf_rtc_timer_trigger_overflow()