Lines Matching refs:duty_cur
580 uint32_t duty_cur = 0; in ledc_fade_isr() local
581 ledc_hal_get_duty(&(p_ledc_obj[speed_mode]->ledc_hal), channel, &duty_cur); in ledc_fade_isr()
584 if (duty_cur == duty_tar || scale == 0) { in ledc_fade_isr()
591 .duty = duty_cur in ledc_fade_isr()
600 …ed_mode][channel]->direction == LEDC_DUTY_DIR_DECREASE ? duty_cur - duty_tar : duty_tar - duty_cur; in ledc_fade_isr()
607 duty_cur, in ledc_fade_isr()
686 uint32_t duty_cur = 0; in _ledc_set_fade_with_step() local
687 ledc_hal_get_duty(&(p_ledc_obj[speed_mode]->ledc_hal), channel, &duty_cur); in _ledc_set_fade_with_step()
689 if (duty_cur == ledc_get_max_duty(speed_mode, channel)) { in _ledc_set_fade_with_step()
690 duty_cur -= 1; in _ledc_set_fade_with_step()
699 if (duty_cur > target_duty) { in _ledc_set_fade_with_step()
701 step_num = (duty_cur - target_duty) / scale; in _ledc_set_fade_with_step()
706 step_num = (target_duty - duty_cur) / scale; in _ledc_set_fade_with_step()
713 …ledc_duty_config(speed_mode, channel, LEDC_VAL_NO_CHANGE, duty_cur, dir, step_num, cycle_num, scal… in _ledc_set_fade_with_step()
715 duty_cur, target_duty, step_num, cycle_num, scale, dir); in _ledc_set_fade_with_step()
726 uint32_t duty_cur = 0; in _ledc_set_fade_with_time() local
728 ledc_hal_get_duty(&(p_ledc_obj[speed_mode]->ledc_hal), channel, &duty_cur); in _ledc_set_fade_with_time()
730 uint32_t duty_delta = target_duty > duty_cur ? target_duty - duty_cur : duty_cur - target_duty; in _ledc_set_fade_with_time()