Home
last modified time | relevance | path

Searched refs:PCA9685_COUNTER_RANGE (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/pwm/
H A Dpwm-pca9685.c53 #define PCA9685_COUNTER_RANGE 4096 macro
145 } else if (duty >= PCA9685_COUNTER_RANGE) { in pca9685_pwm_set_duty()
161 on = channel * PCA9685_COUNTER_RANGE / PCA9685_MAXCHAN; in pca9685_pwm_set_duty()
165 off = (on + duty) % PCA9685_COUNTER_RANGE; in pca9685_pwm_set_duty()
194 return PCA9685_COUNTER_RANGE; in pca9685_pwm_get_duty()
208 return (off - on) & (PCA9685_COUNTER_RANGE - 1); in pca9685_pwm_get_duty()
272 pca9685_pwm_set_duty(chip, offset, value ? PCA9685_COUNTER_RANGE : 0); in pca9685_pwm_gpio_set()
379 PCA9685_COUNTER_RANGE * 1000) - 1; in __pca9685_pwm_apply()
414 duty = PCA9685_COUNTER_RANGE * state->duty_cycle; in __pca9685_pwm_apply()
452 state->period = (PCA9685_COUNTER_RANGE * 1000 / PCA9685_OSC_CLOCK_MHZ) * in pca9685_pwm_get_state()
[all …]