Home
last modified time | relevance | path

Searched refs:tick (Results 1 – 2 of 2) sorted by relevance

/hal_silabs-3.5.0/gecko/service/sleeptimer/src/
Dsl_sleeptimer.c898 uint32_t *tick) in sl_sleeptimer_ms32_to_tick() argument
901 *tick = (uint32_t)((((uint64_t)time_ms * timer_frequency) + 999) / 1000u); in sl_sleeptimer_ms32_to_tick()
920 uint32_t sl_sleeptimer_tick_to_ms(uint32_t tick) in sl_sleeptimer_tick_to_ms() argument
924 return (uint32_t)(((uint64_t)tick * (uint64_t)1000u) >> div_to_log2(timer_frequency)); in sl_sleeptimer_tick_to_ms()
926 return (uint32_t)(((uint64_t)tick * (uint64_t)1000u) / timer_frequency); in sl_sleeptimer_tick_to_ms()
936 sl_status_t sl_sleeptimer_tick64_to_ms(uint64_t tick, in sl_sleeptimer_tick64_to_ms() argument
939 if ((tick <= UINT64_MAX / 1000) in sl_sleeptimer_tick64_to_ms()
942 *ms = (uint64_t)(((uint64_t)tick * (uint64_t)1000u) >> div_to_log2(timer_frequency)); in sl_sleeptimer_tick64_to_ms()
945 *ms = (uint64_t)(((uint64_t)tick * (uint64_t)1000u) / timer_frequency); in sl_sleeptimer_tick64_to_ms()
/hal_silabs-3.5.0/gecko/service/sleeptimer/inc/
Dsl_sleeptimer.h540 uint32_t *tick);
559 uint32_t sl_sleeptimer_tick_to_ms(uint32_t tick);
571 sl_status_t sl_sleeptimer_tick64_to_ms(uint64_t tick,