Commit da9b9485 authored by Fabrice Gasnier's avatar Fabrice Gasnier Committed by Jonathan Cameron

iio: adc: stm32: add support for triggered buffer mode

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: default avatarFabrice Gasnier <fabrice.gasnier@st.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 6db0f7cc
...@@ -499,6 +499,8 @@ config STM32_ADC_CORE ...@@ -499,6 +499,8 @@ config STM32_ADC_CORE
depends on ARCH_STM32 || COMPILE_TEST depends on ARCH_STM32 || COMPILE_TEST
depends on OF depends on OF
depends on REGULATOR depends on REGULATOR
select IIO_BUFFER
select IIO_TRIGGERED_BUFFER
help help
Select this option to enable the core driver for STMicroelectronics Select this option to enable the core driver for STMicroelectronics
STM32 analog-to-digital converter (ADC). STM32 analog-to-digital converter (ADC).
......
This diff is collapsed.
Markdown is supported
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