Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 1aed1527 authored by Fabrice Gasnier's avatar Fabrice Gasnier Committed by William Breathitt Gray
Browse files

counter: stm32-timer-cnt: add support for capture events


Add support for capture events. Captured counter value for each channel
can be retrieved through CCRx register.
STM32 timers can have up to 4 capture channels (on input channel 1 to
channel 4), hence need to check the number of channels before reading
the capture data.
The capture configuration is hard-coded to capture signals on both edges
(non-inverted). Interrupts are used to report events independently for
each channel.

Reviewed-by: default avatarWilliam Breathitt Gray <william.gray@linaro.org>
Acked-by: default avatarLee Jones <lee@kernel.org>
Signed-off-by: default avatarFabrice Gasnier <fabrice.gasnier@foss.st.com>
Link: https://lore.kernel.org/r/20240307133306.383045-11-fabrice.gasnier@foss.st.com


Signed-off-by: default avatarWilliam Breathitt Gray <william.gray@linaro.org>
parent 2c70ccd4
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment