Lines Matching refs:timer_num
262 static esp_err_t ledc_set_timer_div(ledc_mode_t speed_mode, ledc_timer_t timer_num, ledc_clk_cfg_t … in ledc_set_timer_div() argument
305 ledc_timer_set(speed_mode, timer_num, div_param, duty_resolution, timer_clk_src); in ledc_set_timer_div()
307 ledc_timer_rst(speed_mode, timer_num); in ledc_set_timer_div()
320 uint32_t timer_num = timer_conf->timer_num; in ledc_timer_config() local
329 if (timer_num > LEDC_TIMER_3) { in ledc_timer_config()
330 ESP_LOGE(LEDC_TAG, "invalid timer #%u", timer_num); in ledc_timer_config()
342 return ledc_set_timer_div(speed_mode, timer_num, timer_conf->clk_cfg, freq_hz, duty_resolution); in ledc_timer_config()
517 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
520 LEDC_ARG_CHECK(timer_num < LEDC_TIMER_MAX, "timer_num"); in ledc_set_freq()
524 ledc_hal_get_clk_cfg(&(p_ledc_obj[speed_mode]->ledc_hal), timer_num, &clk_cfg); in ledc_set_freq()
525 ledc_hal_get_duty_resolution(&(p_ledc_obj[speed_mode]->ledc_hal), timer_num, &duty_resolution); in ledc_set_freq()
526 return ledc_set_timer_div(speed_mode, timer_num, clk_cfg, freq_hz, duty_resolution); in ledc_set_freq()
529 uint32_t ledc_get_freq(ledc_mode_t speed_mode, ledc_timer_t timer_num) in ledc_get_freq() argument
532 LEDC_ARG_CHECK(timer_num < LEDC_TIMER_MAX, "timer_num"); in ledc_get_freq()
538 ledc_hal_get_clock_divider(&(p_ledc_obj[speed_mode]->ledc_hal), timer_num, &clock_divider); in ledc_get_freq()
539 ledc_hal_get_duty_resolution(&(p_ledc_obj[speed_mode]->ledc_hal), timer_num, &duty_resolution); in ledc_get_freq()
540 ledc_hal_get_clk_cfg(&(p_ledc_obj[speed_mode]->ledc_hal), timer_num, &clk_cfg); in ledc_get_freq()