Skip to content

Commit f231fa5

Browse files
driver: adc: ad405x: Add RTIO stream
Added support for RTIO stream. Also added sampling_period property to the DTS. This is for setting the sampling period when streaming is used. Hardware or kernel timer can be used for this. To use hardware timer you need to add it to the DTS. Example: { chosen { zephyr,adc-clock = &counter0; }; }; Signed-off-by: Vladislav Pejic <vladislav.pejic@orioninc.com>
1 parent b4ca871 commit f231fa5

File tree

4 files changed

+613
-13
lines changed

4 files changed

+613
-13
lines changed

drivers/adc/Kconfig.ad405x

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ config ADC_AD405X
1111
help
1212
Enable ADC driver for ADI AD405X.
1313

14+
config AD405X_STREAM
15+
bool "Use FIFO to stream data"
16+
select AD405X_TRIGGER
17+
depends on SPI_RTIO
18+
help
19+
Use this configuration option to enable streaming ADC data via RTIO.
20+
1421
config AD405X_TRIGGER
1522
bool "AD405X interrupts"
1623
default n

0 commit comments

Comments
 (0)