Home
last modified time | relevance | path

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

/hal_silabs-latest/simplicity_sdk/platform/service/sleeptimer/src/
Dsl_sleeptimer_hal_sysrtc.c180 uint32_t compare_value = value; in sleeptimer_hal_set_compare() local
190 if (get_time_diff(compare_value, counter) < SLEEPTIMER_COMPARE_MIN_DIFF) { in sleeptimer_hal_set_compare()
191 compare_value = counter + SLEEPTIMER_COMPARE_MIN_DIFF; in sleeptimer_hal_set_compare()
193 compare_value %= SLEEPTIMER_TMR_WIDTH; in sleeptimer_hal_set_compare()
195 sl_hal_sysrtc_set_group_compare_channel_value(0u, 0u, compare_value - 1); in sleeptimer_hal_set_compare()
218 uint32_t compare_value; in sleeptimer_hal_set_compare_prs_hfxo_startup() local
224 compare_value = value + counter; in sleeptimer_hal_set_compare_prs_hfxo_startup()
227 if (get_time_diff(compare_value, counter) < SLEEPTIMER_COMPARE_MIN_DIFF) { in sleeptimer_hal_set_compare_prs_hfxo_startup()
228 compare_value = counter + SLEEPTIMER_COMPARE_MIN_DIFF; in sleeptimer_hal_set_compare_prs_hfxo_startup()
231 compare_value %= SLEEPTIMER_TMR_WIDTH; in sleeptimer_hal_set_compare_prs_hfxo_startup()
[all …]
Dsl_sleeptimer_hal_rtcc.c121 uint32_t compare_value = value; in sleeptimer_hal_set_compare() local
130 if (get_time_diff(compare_value, counter) < SLEEPTIMER_COMPARE_MIN_DIFF) { in sleeptimer_hal_set_compare()
131 compare_value = counter + SLEEPTIMER_COMPARE_MIN_DIFF; in sleeptimer_hal_set_compare()
133 compare_value %= SLEEPTIMER_TMR_WIDTH; in sleeptimer_hal_set_compare()
135 RTCC_ChannelCCVSet(1u, compare_value - 1u); in sleeptimer_hal_set_compare()
Dsl_sleeptimer_hal_prortc.c215 uint32_t compare_value = value; in sleeptimer_hal_set_compare() local
225 if (get_time_diff(compare_value, counter) < SLEEPTIMER_COMPARE_MIN_DIFF) { in sleeptimer_hal_set_compare()
226 compare_value = counter + SLEEPTIMER_COMPARE_MIN_DIFF; in sleeptimer_hal_set_compare()
228 compare_value %= SLEEPTIMER_TMR_WIDTH; in sleeptimer_hal_set_compare()
231 PRORTC->COMP[TIMER_COMP_REQ].COMP = compare_value - 1; in sleeptimer_hal_set_compare()
233 PRORTC->CC[TIMER_COMP_REQ].OCVALUE = compare_value - 1; in sleeptimer_hal_set_compare()
Dsl_sleeptimer_hal_timer.c191 uint32_t compare_value = value; in sleeptimer_hal_set_compare() local
201 if (get_time_diff(compare_value, counter) < SLEEPTIMER_COMPARE_MIN_DIFF) { in sleeptimer_hal_set_compare()
202 compare_value = counter + SLEEPTIMER_COMPARE_MIN_DIFF; in sleeptimer_hal_set_compare()
204 compare_value %= SLEEPTIMER_TMR_WIDTH; in sleeptimer_hal_set_compare()
206 …imer_hal_timer_set_compare(SLEEPTIMER_TIMER_INSTANCE, SLEEPTIMER_TIMER_CHANNEL, compare_value - 1); in sleeptimer_hal_set_compare()
Dsl_sleeptimer.c1453 sl_sleeptimer_tick_count_t compare_value; in set_comparator_for_next_timer() local
1455 compare_value = last_delta_update_count + timer_head->delta; in set_comparator_for_next_timer()
1458 sleeptimer_hal_set_compare(compare_value); in set_comparator_for_next_timer()