Searched refs:us_to_ticks (Results 1 – 4 of 4) sorted by relevance
/hal_espressif-latest/components/hal/ |
D | systimer_hal.c | 48 hal->us_to_ticks = ops->us_to_ticks; in systimer_hal_set_tick_rate_ops() 86 .val = hal->us_to_ticks(target), in systimer_hal_set_alarm_target() 98 int64_t offset = hal->us_to_ticks(1) * 2; in systimer_hal_set_alarm_target() 100 systimer_counter_value_t alarm = { .val = MAX(hal->us_to_ticks(timestamp), now_time + offset) }; in systimer_hal_set_alarm_target() 109 offset += -1 * delta + hal->us_to_ticks(1) * 2; in systimer_hal_set_alarm_target() 122 systimer_ll_set_alarm_period(hal->dev, alarm_id, hal->us_to_ticks(period)); in systimer_hal_set_alarm_period() 140 .val = systimer_hal_get_counter_value(hal, counter_id) + hal->us_to_ticks(time_us), in systimer_hal_counter_value_advance() 205 if (apb_ticks_per_us != hal->us_to_ticks(1)) { in systimer_hal_on_apb_freq_update() 206 …HAL_ASSERT((hal->us_to_ticks(1) % apb_ticks_per_us) == 0 && "TICK_PER_US should be divisible by AP… in systimer_hal_on_apb_freq_update() 207 systimer_ll_set_step_for_xtal(hal->dev, hal->us_to_ticks(1) / apb_ticks_per_us); in systimer_hal_on_apb_freq_update()
|
/hal_espressif-latest/components/esp_rom/patches/ |
D | esp_rom_systimer.c | 30 hal->us_to_ticks = ops->us_to_ticks; in systimer_hal_set_tick_rate_ops() 41 .val = hal->us_to_ticks(target), in systimer_hal_set_alarm_target() 52 systimer_ll_set_alarm_period(hal->dev, alarm_id, hal->us_to_ticks(period)); in systimer_hal_set_alarm_period() 60 .val = systimer_hal_get_counter_value(hal, counter_id) + hal->us_to_ticks(time_us), in systimer_hal_counter_value_advance()
|
/hal_espressif-latest/components/hal/include/hal/ |
D | systimer_hal.h | 31 us_to_ticks_func_t us_to_ticks; /*!< function to convert microseconds to ticks */ member 39 us_to_ticks_func_t us_to_ticks; /*!< function to convert microseconds to ticks */ member
|
/hal_espressif-latest/components/esp_timer/src/ |
D | esp_timer_impl_systimer.c | 106 .val = systimer_hal.us_to_ticks(new_us), in esp_timer_impl_set() 125 .us_to_ticks = systimer_us_to_ticks, in esp_timer_impl_early_init()
|