Skip to content

Commit 5f64dd0

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 aa59a42 commit 5f64dd0

File tree

3 files changed

+475
-13
lines changed

3 files changed

+475
-13
lines changed

drivers/adc/Kconfig.ad405x

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ 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+
default n
18+
depends on SPI_RTIO
19+
help
20+
Use this configuration option to enable streaming ADC data via RTIO.
21+
1422
config AD405X_TRIGGER
1523
bool "AD405X interrupts"
1624
default n

0 commit comments

Comments
 (0)