Home
last modified time | relevance | path

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

/Zephyr-Core-3.6.0/drivers/pwm/
Dpwm_sifive.c116 uint32_t pwmscale = 0U; in pwm_sifive_set_cycles() local
150 while ((period_cycles >> pwmscale) > max_cmp_val) { in pwm_sifive_set_cycles()
151 pwmscale++; in pwm_sifive_set_cycles()
155 if (pwmscale > SF_PWMSCALEMASK) { in pwm_sifive_set_cycles()
157 period_cycles, max_cmp_val << pwmscale); in pwm_sifive_set_cycles()
164 SF_PWMSCALE(pwmscale)); in pwm_sifive_set_cycles()
167 sys_write32((period_cycles >> pwmscale), PWM_REG(config, REG_PWMCMP0)); in pwm_sifive_set_cycles()
170 sys_write32((pulse_cycles >> pwmscale), in pwm_sifive_set_cycles()
175 pwmscale, in pwm_sifive_set_cycles()
176 (period_cycles >> pwmscale), in pwm_sifive_set_cycles()
[all …]