Skip to content

Commit

Permalink
iio: adc: stm32: add support for triggered buffer mode
Browse files Browse the repository at this point in the history
STM32 ADC conversions can be launched using hardware triggers.
It can be used to start conversion sequences (group of channels).
Selected channels are select via sequence registers.
Trigger source is selected via 'extsel' (external trigger mux).
Trigger polarity is set to rising edge by default.

Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
  • Loading branch information
Fabrice Gasnier authored and Jonathan Cameron committed Jan 28, 2017
1 parent 6db0f7c commit da9b948
Show file tree
Hide file tree
Showing 2 changed files with 298 additions and 21 deletions.
2 changes: 2 additions & 0 deletions drivers/iio/adc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,8 @@ config STM32_ADC_CORE
depends on ARCH_STM32 || COMPILE_TEST
depends on OF
depends on REGULATOR
select IIO_BUFFER
select IIO_TRIGGERED_BUFFER
help
Select this option to enable the core driver for STMicroelectronics
STM32 analog-to-digital converter (ADC).
Expand Down
Loading

0 comments on commit da9b948

Please sign in to comment.