Home
last modified time | relevance | path

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

/Zephyr-Core-3.6.0/drivers/pwm/
Dpwm_ite_it8xxx2.c99 uint32_t actual_freq = 0xffffffff, target_freq, deviation, cxcprs, ctr; in pwm_it8xxx2_set_cycles() local
166 cxcprs = (((uint32_t) pwm_clk_src) / (ctr + 1) / target_freq); in pwm_it8xxx2_set_cycles()
171 if (cxcprs != 0) { in pwm_it8xxx2_set_cycles()
172 actual_freq = ((uint32_t) pwm_clk_src) / (ctr + 1) / cxcprs; in pwm_it8xxx2_set_cycles()
175 cxcprs--; in pwm_it8xxx2_set_cycles()
181 if (cxcprs > UINT16_MAX) { in pwm_it8xxx2_set_cycles()
188 inst->C4CPRS = cxcprs & 0xFF; in pwm_it8xxx2_set_cycles()
189 inst->C4MCPRS = (cxcprs >> 8) & 0xFF; in pwm_it8xxx2_set_cycles()
192 inst->C6CPRS = cxcprs & 0xFF; in pwm_it8xxx2_set_cycles()
193 inst->C6MCPRS = (cxcprs >> 8) & 0xFF; in pwm_it8xxx2_set_cycles()
[all …]