Searched refs:PWM_SIFIVE_CMPWIDTH (Results 1 – 1 of 1) sorted by relevance
38 #define PWM_SIFIVE_CMPWIDTH 16 macro81 scale = clamp(ilog2(scale_pow) - PWM_SIFIVE_CMPWIDTH, 0, 0xf); in pwm_sifive_set_config()90 num = (u64)duty_ns * (1U << PWM_SIFIVE_CMPWIDTH); in pwm_sifive_set_config()92 frac = min(frac, (1U << PWM_SIFIVE_CMPWIDTH) - 1); in pwm_sifive_set_config()93 frac = (1U << PWM_SIFIVE_CMPWIDTH) - 1 - frac; in pwm_sifive_set_config()
Completed in 2 milliseconds