Searched refs:count_unit (Results 1 – 1 of 1) sorted by relevance
27 static const uint64_t count_unit = 100000000; // 100M count per second variable36 duty_clk = (cfg->pulse * count_unit) / NSEC_COUNT; in cvi_pwm_set_config()39 period_clk = (cfg->period * count_unit) / NSEC_COUNT; in cvi_pwm_set_config()50 cfg->pulse = duty_clk * NSEC_COUNT / count_unit; in cvi_pwm_get_config()53 cfg->period = period_clk * NSEC_COUNT / count_unit; in cvi_pwm_get_config()61 const uint64_t count_unit = 100000000; // 100M count per second in _pwm_control() local86 period_clk = (cfg->period * count_unit) / NSEC_COUNT; in _pwm_control()91 duty_clk = (cfg->pulse * count_unit) / NSEC_COUNT; in _pwm_control()
Completed in 5 milliseconds