Skip to content
Commit 70b91098 authored by Guillaume Gautier's avatar Guillaume Gautier Committed by Daniel DeGrasse
Browse files

drivers: pwm: stm32: fix four channel pwm capture



With the four-channel-capture-support property enabled, the STM32 PWM
driver was missing every other frames during PWM capture.

The counter values are now reset just after getting the pulse and the
period of the cycle, instead of waiting the next interrupt to do so, and
thus missing a cycle.

Signed-off-by: default avatarGuillaume Gautier <guillaume.gautier-ext@st.com>
parent 79f599ac
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment