Skip to content
Commit f3204b73 authored by Ruibin Chang's avatar Ruibin Chang Committed by Carles Cufí
Browse files

ITE drivers/pwm: don't divide-by-zero



Make sure cxcprs isn't zero, or we will have
divide-by-zero on calculating actual_freq.

Test:
1.tests/drivers/pwm/pwm_api pattern
2.GPA0(pwm0) output 79201Hz, 324Hz, 100Hz, 1Hz waveform

Signed-off-by: default avatarRuibin Chang <Ruibin.Chang@ite.com.tw>
parent 23225c68
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment