step_time_to_reg
val = step_time_to_reg(val, data->pwm_mode[nr]);
val = step_time_to_reg(val, data->pwm_mode[nr]); \