Lines Matching refs:p_ledc_obj
48 static ledc_obj_t *p_ledc_obj[LEDC_SPEED_MODE_MAX] = {0}; variable
76 ledc_hal_ls_timer_update(&(p_ledc_obj[speed_mode]->ledc_hal), timer_sel); in ledc_ls_timer_update()
83 ledc_hal_ls_channel_update(&(p_ledc_obj[speed_mode]->ledc_hal), channel); in ledc_ls_channel_update()
120 ledc_hal_set_fade_end_intr(&(p_ledc_obj[speed_mode]->ledc_hal), channel, true); in ledc_enable_intr_type()
122 ledc_hal_set_fade_end_intr(&(p_ledc_obj[speed_mode]->ledc_hal), channel, false); in ledc_enable_intr_type()
165 ledc_hal_get_max_duty(&(p_ledc_obj[speed_mode]->ledc_hal), channel, &max_duty); in ledc_get_max_duty()
174 LEDC_CHECK(p_ledc_obj[speed_mode] != NULL, LEDC_NOT_INIT, ESP_ERR_INVALID_STATE); in ledc_timer_set()
176 ledc_hal_set_clock_divider(&(p_ledc_obj[speed_mode]->ledc_hal), timer_sel, clock_divider); in ledc_timer_set()
177 ledc_hal_set_clock_source(&(p_ledc_obj[speed_mode]->ledc_hal), timer_sel, clk_src); in ledc_timer_set()
178 ledc_hal_set_duty_resolution(&(p_ledc_obj[speed_mode]->ledc_hal), timer_sel, duty_resolution); in ledc_timer_set()
189 ledc_hal_set_hpoint(&(p_ledc_obj[speed_mode]->ledc_hal), channel, hpoint_val); in ledc_duty_config()
192 ledc_hal_set_duty_int_part(&(p_ledc_obj[speed_mode]->ledc_hal), channel, duty_val); in ledc_duty_config()
194 ledc_hal_set_duty_direction(&(p_ledc_obj[speed_mode]->ledc_hal), channel, duty_direction); in ledc_duty_config()
195 ledc_hal_set_duty_num(&(p_ledc_obj[speed_mode]->ledc_hal), channel, duty_num); in ledc_duty_config()
196 ledc_hal_set_duty_cycle(&(p_ledc_obj[speed_mode]->ledc_hal), channel, duty_cycle); in ledc_duty_config()
197 ledc_hal_set_duty_scale(&(p_ledc_obj[speed_mode]->ledc_hal), channel, duty_scale); in ledc_duty_config()
207 LEDC_CHECK(p_ledc_obj[speed_mode] != NULL, LEDC_NOT_INIT, ESP_ERR_INVALID_STATE); in ledc_bind_channel_timer()
209 ledc_hal_bind_channel_timer(&(p_ledc_obj[speed_mode]->ledc_hal), channel, timer_sel); in ledc_bind_channel_timer()
219 LEDC_CHECK(p_ledc_obj[speed_mode] != NULL, LEDC_NOT_INIT, ESP_ERR_INVALID_STATE); in ledc_timer_rst()
221 ledc_hal_timer_rst(&(p_ledc_obj[speed_mode]->ledc_hal), timer_sel); in ledc_timer_rst()
231 LEDC_CHECK(p_ledc_obj[speed_mode] != NULL, LEDC_NOT_INIT, ESP_ERR_INVALID_STATE); in ledc_timer_pause()
233 ledc_hal_timer_pause(&(p_ledc_obj[speed_mode]->ledc_hal), timer_sel); in ledc_timer_pause()
243 LEDC_CHECK(p_ledc_obj[speed_mode] != NULL, LEDC_NOT_INIT, ESP_ERR_INVALID_STATE); in ledc_timer_resume()
245 ledc_hal_timer_resume(&(p_ledc_obj[speed_mode]->ledc_hal), timer_sel); in ledc_timer_resume()
301 ledc_hal_set_slow_clk(&(p_ledc_obj[speed_mode]->ledc_hal), clk_cfg); in ledc_set_timer_div()
334 if(p_ledc_obj[speed_mode] == NULL) { in ledc_timer_config()
335 …p_ledc_obj[speed_mode] = (ledc_obj_t *) heap_caps_calloc(1, sizeof(ledc_obj_t), MALLOC_CAP_INTERNA… in ledc_timer_config()
336 if (p_ledc_obj[speed_mode] == NULL) { in ledc_timer_config()
339 ledc_hal_init(&(p_ledc_obj[speed_mode]->ledc_hal), speed_mode); in ledc_timer_config()
376 if(p_ledc_obj[speed_mode] == NULL) { in ledc_channel_config()
377 …p_ledc_obj[speed_mode] = (ledc_obj_t *) heap_caps_calloc(1, sizeof(ledc_obj_t), MALLOC_CAP_INTERNA… in ledc_channel_config()
378 if (p_ledc_obj[speed_mode] == NULL) { in ledc_channel_config()
381 ledc_hal_init(&(p_ledc_obj[speed_mode]->ledc_hal), speed_mode); in ledc_channel_config()
409 LEDC_CHECK(p_ledc_obj[speed_mode] != NULL, LEDC_NOT_INIT, ESP_ERR_INVALID_STATE); in ledc_update_duty()
411 ledc_hal_set_sig_out_en(&(p_ledc_obj[speed_mode]->ledc_hal), channel, true); in ledc_update_duty()
412 ledc_hal_set_duty_start(&(p_ledc_obj[speed_mode]->ledc_hal), channel, true); in ledc_update_duty()
422 LEDC_CHECK(p_ledc_obj[speed_mode] != NULL, LEDC_NOT_INIT, ESP_ERR_INVALID_STATE); in ledc_stop()
424 ledc_hal_set_idle_level(&(p_ledc_obj[speed_mode]->ledc_hal), channel, idle_level); in ledc_stop()
425 ledc_hal_set_sig_out_en(&(p_ledc_obj[speed_mode]->ledc_hal), channel, false); in ledc_stop()
426 ledc_hal_set_duty_start(&(p_ledc_obj[speed_mode]->ledc_hal), channel, false); in ledc_stop()
441 LEDC_CHECK(p_ledc_obj[speed_mode] != NULL, LEDC_NOT_INIT, ESP_ERR_INVALID_STATE); in ledc_set_fade()
461 LEDC_CHECK(p_ledc_obj[speed_mode] != NULL, LEDC_NOT_INIT, ESP_ERR_INVALID_STATE); in ledc_set_duty_with_hpoint()
481 LEDC_CHECK(p_ledc_obj[speed_mode] != NULL, LEDC_NOT_INIT, ESP_ERR_INVALID_STATE); in ledc_set_duty()
501 LEDC_CHECK(p_ledc_obj[speed_mode] != NULL, LEDC_NOT_INIT, ESP_ERR_INVALID_STATE); in ledc_get_duty()
503 ledc_hal_get_duty(&(p_ledc_obj[speed_mode]->ledc_hal), channel, &duty); in ledc_get_duty()
511 LEDC_CHECK(p_ledc_obj[speed_mode] != NULL, LEDC_NOT_INIT, ESP_ERR_INVALID_STATE); in ledc_get_hpoint()
513 ledc_hal_get_hpoint(&(p_ledc_obj[speed_mode]->ledc_hal), channel, &hpoint); in ledc_get_hpoint()
521 LEDC_CHECK(p_ledc_obj[speed_mode] != NULL, LEDC_NOT_INIT, ESP_ERR_INVALID_STATE); 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()
533 LEDC_CHECK(p_ledc_obj[speed_mode] != NULL, LEDC_NOT_INIT, ESP_ERR_INVALID_STATE); 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()
563 if (p_ledc_obj[speed_mode] == NULL) { in ledc_fade_isr()
566 ledc_hal_get_fade_end_intr_status(&(p_ledc_obj[speed_mode]->ledc_hal), &intr_status); in ledc_fade_isr()
572 ledc_hal_clear_fade_end_intr_status(&(p_ledc_obj[speed_mode]->ledc_hal), channel); in ledc_fade_isr()
581 ledc_hal_get_duty(&(p_ledc_obj[speed_mode]->ledc_hal), channel, &duty_cur); in ledc_fade_isr()
624 ledc_hal_set_duty_start(&(p_ledc_obj[speed_mode]->ledc_hal), channel, true); in ledc_fade_isr()
687 ledc_hal_get_duty(&(p_ledc_obj[speed_mode]->ledc_hal), channel, &duty_cur); in _ledc_set_fade_with_step()
727 ledc_hal_get_channel_timer(&(p_ledc_obj[speed_mode]->ledc_hal), channel, &timer_sel); in _ledc_set_fade_with_time()
728 ledc_hal_get_duty(&(p_ledc_obj[speed_mode]->ledc_hal), channel, &duty_cur); in _ledc_set_fade_with_time()
763 ledc_hal_clear_fade_end_intr_status(&(p_ledc_obj[speed_mode]->ledc_hal), channel); in _ledc_fade_start()
780 LEDC_CHECK(p_ledc_obj[speed_mode] != NULL, LEDC_NOT_INIT, ESP_ERR_INVALID_STATE); in ledc_set_fade_with_time()
796 LEDC_CHECK(p_ledc_obj[speed_mode] != NULL, LEDC_NOT_INIT, ESP_ERR_INVALID_STATE); in ledc_set_fade_with_step()
810 LEDC_CHECK(p_ledc_obj[speed_mode] != NULL, LEDC_NOT_INIT, ESP_ERR_INVALID_STATE); in ledc_fade_start()
844 LEDC_CHECK(p_ledc_obj[speed_mode] != NULL, LEDC_NOT_INIT, ESP_ERR_INVALID_STATE); in ledc_cb_register()
861 LEDC_CHECK(p_ledc_obj[speed_mode] != NULL, LEDC_NOT_INIT, ESP_ERR_INVALID_STATE); in ledc_set_duty_and_update()
875 LEDC_CHECK(p_ledc_obj[speed_mode] != NULL, LEDC_NOT_INIT, ESP_ERR_INVALID_STATE); in ledc_set_fade_time_and_start()
891 LEDC_CHECK(p_ledc_obj[speed_mode] != NULL, LEDC_NOT_INIT, ESP_ERR_INVALID_STATE); in ledc_set_fade_step_and_start()