Searched full:pwm_period_ns (Results 1 – 1 of 1) sorted by relevance
48 uint32_t pwm_period_ns, pwm_pulse_ns;57 pwm_period_ns = NSEC_PER_SEC / pwm_frequency;58 pwm_pulse_ns = (pwm_duty_percent * pwm_period_ns) / 100;60 return pwm_set(pwm, 0, pwm_period_ns, pwm_pulse_ns, 0);