Searched refs:TICKS_PER_US (Results 1 – 1 of 1) sorted by relevance
65 #define TICKS_PER_US 2 macro144 return esp_timer_impl_get_counter_reg() / TICKS_PER_US; in esp_timer_impl_get_time()155 int64_t offset = TICKS_PER_US * 2; in esp_timer_impl_set_alarm_id()157 timer_64b_reg_t alarm = { .val = MAX(timestamp * TICKS_PER_US, now_time + offset) }; in esp_timer_impl_set_alarm_id()167 offset += llabs(delta) + TICKS_PER_US * 2; in esp_timer_impl_set_alarm_id()190 …assert(apb_ticks_per_us % TICKS_PER_US == 0 && "APB frequency (in MHz) should be divisible by TICK… in esp_timer_impl_update_apb_freq()191 REG_SET_FIELD(CONFIG_REG, TIMG_LACT_DIVIDER, apb_ticks_per_us / TICKS_PER_US); in esp_timer_impl_update_apb_freq()198 timer_64b_reg_t dst = { .val = new_us * TICKS_PER_US }; in esp_timer_impl_set()222 REG_SET_FIELD(CONFIG_REG, TIMG_LACT_DIVIDER, APB_CLK_FREQ / 1000000 / TICKS_PER_US); in esp_timer_impl_early_init()254 uint32_t slowclk_ticks_per_us = esp_clk_slowclk_cal_get() * TICKS_PER_US; in esp_timer_impl_init()