public inbox for linux-iio@vger.kernel.org
 help / color / mirror / Atom feed
* Counter device Interface for reading out input capture
@ 2020-11-05 18:46 Ahmad Fatoum
  2020-11-06  9:11 ` Fabrice Gasnier
  2020-11-06 12:42 ` William Breathitt Gray
  0 siblings, 2 replies; 6+ messages in thread
From: Ahmad Fatoum @ 2020-11-05 18:46 UTC (permalink / raw)
  To: Benjamin Gaignard, Fabrice Gasnier
  Cc: Pengutronix Kernel Team, Holger Assmann,
	linux-stm32@st-md-mailman.stormreply.com, Alexandre Torgue,
	linux-iio, William Breathitt Gray

Hello Benjamin,
Hello Fabrice,

In the stm32-timer-cnt driver I find unused #defines for TIM_CCMR_MASK and
TIM_CCER_MASK, which to me hint that support for the "input capture mode"[1]
was implemented but removed prior to upstreaming.

It doesn't look like the counter device API is yet made to support such
an input capture mode (latching a counter value on an external event, e.g.
to timestamp incoming rising edges to measure jitter between pulses).

I am still very new to this, so I figured I ask whether you already have
thoughts (or maybe code to share) on how to best integrate this with the
counter device API.

I've added linux-iio/linux-stm32 to the CC as well, so if someone else
has an idea how to best do this, please share.

[1]: 40.3.7 in RM0436 rev 3

Cheers,
Ahmad

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-11-17 12:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-05 18:46 Counter device Interface for reading out input capture Ahmad Fatoum
2020-11-06  9:11 ` Fabrice Gasnier
2020-11-06 17:16   ` Holger Assmann
2020-11-06 12:42 ` William Breathitt Gray
2020-11-17 10:54   ` Ahmad Fatoum
2020-11-17 12:25     ` William Breathitt Gray

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox