Skip to content
Commit 17326510 authored by Hein Wessels's avatar Hein Wessels Committed by Carles Cufí
Browse files

drivers: pwm: stm32: support capturing on four channels



Previously the pwm capture only support capturing on channel 1
and 2, because the slave mode controller was used, which uses
the signal TIxFP which is not available for channel 3 and 4.

This commit adds optional support for four channel capturing by
changing the method of capturing PWM signals to not use the
slave mode controller to reset the counter register. Instead the
counter is reset in the ISR. This will result in a slight loss
of accuracy but is still within an acceptable range.

Co-authored-by: default avatarJeroen van Dooren <jeroen.van.dooren@nobleo.nl>
Signed-off-by: default avatarHein Wessels <heinwessels93@gmail.com>
parent 3ecb4916
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment