Lines Matching refs:step_num
433 uint32_t step_num, uint32_t duty_cyle_num, uint32_t duty_scale) in ledc_set_fade() argument
438 LEDC_ARG_CHECK(step_num <= LEDC_DUTY_NUM_MAX, "step_num"); in ledc_set_fade()
448 step_num, //uint32_t duty_num, in ledc_set_fade()
696 int step_num = 0; in _ledc_set_fade_with_step() local
701 step_num = (duty_cur - target_duty) / scale; in _ledc_set_fade_with_step()
702 step_num = step_num > LEDC_STEP_NUM_MAX ? LEDC_STEP_NUM_MAX : step_num; in _ledc_set_fade_with_step()
706 step_num = (target_duty - duty_cur) / scale; in _ledc_set_fade_with_step()
707 step_num = step_num > LEDC_STEP_NUM_MAX ? LEDC_STEP_NUM_MAX : step_num; in _ledc_set_fade_with_step()
712 if (scale > 0 && step_num > 0) { 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()