Lines Matching refs:channel
34 uint32_t channel, uint64_t *cycles) in sam_pwm_get_cycles_per_sec() argument
46 static int sam_pwm_set_cycles(const struct device *dev, uint32_t channel, in sam_pwm_set_cycles() argument
55 if (channel >= PWMCHNUM_NUMBER) { in sam_pwm_set_cycles()
75 if (pwm->PWM_CH_NUM[channel].PWM_CMR != cmr) { in sam_pwm_set_cycles()
76 pwm->PWM_DIS = 1 << channel; in sam_pwm_set_cycles()
78 pwm->PWM_CH_NUM[channel].PWM_CMR = cmr; in sam_pwm_set_cycles()
79 pwm->PWM_CH_NUM[channel].PWM_CPRD = period_cycles; in sam_pwm_set_cycles()
80 pwm->PWM_CH_NUM[channel].PWM_CDTY = pulse_cycles; in sam_pwm_set_cycles()
85 pwm->PWM_CH_NUM[channel].PWM_CPRDUPD = period_cycles; in sam_pwm_set_cycles()
86 pwm->PWM_CH_NUM[channel].PWM_CDTYUPD = pulse_cycles; in sam_pwm_set_cycles()
90 pwm->PWM_ENA = 1 << channel; in sam_pwm_set_cycles()