[PATCH v4 11/11] counter: stm32-timer-cnt: add support for capture events

William Breathitt Gray william.gray at linaro.org
Wed Mar 6 11:41:08 PST 2024


On Tue, Feb 27, 2024 at 06:38:03PM +0100, Fabrice Gasnier wrote:
> 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.
> 
> Acked-by: Lee Jones <lee at kernel.org>
> Signed-off-by: Fabrice Gasnier <fabrice.gasnier at foss.st.com>

Reviewed-by: William Breathitt Gray <william.gray at linaro.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20240306/01d165ff/attachment.sig>


More information about the linux-arm-kernel mailing list