Searched refs:cal (Results 1 – 2 of 2) sorted by relevance
22 static void i2s_hal_mclk_div_decimal_cal(i2s_hal_clock_cfg_t *clk_cfg, i2s_ll_mclk_div_t *cal) in i2s_hal_mclk_div_decimal_cal() argument26 cal->mclk_div = clk_cfg->mclk_div; in i2s_hal_mclk_div_decimal_cal()27 cal->a = 1; in i2s_hal_mclk_div_decimal_cal()28 cal->b = 0; in i2s_hal_mclk_div_decimal_cal()30 uint32_t freq_diff = abs(clk_cfg->sclk - clk_cfg->mclk * cal->mclk_div); in i2s_hal_mclk_div_decimal_cal()37 cal->mclk_div++; in i2s_hal_mclk_div_decimal_cal()47 cal->a = a; in i2s_hal_mclk_div_decimal_cal()48 cal->b = b; in i2s_hal_mclk_div_decimal_cal()52 cal->a = a; in i2s_hal_mclk_div_decimal_cal()53 cal->b = b; in i2s_hal_mclk_div_decimal_cal()
107 const uint32_t cal = esp_clk_slowclk_cal_get(); in esp_rtc_get_time_us() local123 const uint64_t delta_time_us = ((ticks_low * cal) >> RTC_CLK_CAL_FRACT) + in esp_rtc_get_time_us()124 ((ticks_high * cal) << (32 - RTC_CLK_CAL_FRACT)); in esp_rtc_get_time_us()