Lines Matching refs:freq_hz
271 …c_mode_t speed_mode, ledc_timer_t timer_num, ledc_clk_cfg_t clk_cfg, int freq_hz, int duty_resolut… in ledc_set_timer_div() argument
284 div_param = ( (uint64_t) s_ledc_slow_clk_8M << 8 ) / freq_hz / precision; in ledc_set_timer_div()
289 div_param = ( (uint64_t) LEDC_APB_CLK_HZ << 8 ) / freq_hz / precision; in ledc_set_timer_div()
293 div_param = ((uint64_t) LEDC_REF_CLK_HZ << 8) / freq_hz / precision; in ledc_set_timer_div()
302 div_param = ( (uint64_t) src_clk_freq << 8 ) / freq_hz / precision; in ledc_set_timer_div()
327 uint32_t freq_hz = timer_conf->freq_hz; in ledc_timer_config() local
334 if (freq_hz == 0 || duty_resolution == 0 || duty_resolution >= LEDC_TIMER_BIT_MAX) { in ledc_timer_config()
335 ESP_LOGE(LEDC_TAG, "freq_hz=%u duty_resolution=%u", freq_hz, duty_resolution); in ledc_timer_config()
351 return ledc_set_timer_div(speed_mode, timer_num, timer_conf->clk_cfg, freq_hz, duty_resolution); in ledc_timer_config()
525 esp_err_t ledc_set_freq(ledc_mode_t speed_mode, ledc_timer_t timer_num, uint32_t freq_hz) in ledc_set_freq() argument
534 return ledc_set_timer_div(speed_mode, timer_num, clk_cfg, freq_hz, duty_resolution); in ledc_set_freq()