Skip to content

Commit bc0683b

Browse files
vladislav-pejiccfriedt
authored andcommitted
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 <[email protected]>
1 parent 9c770bc commit bc0683b

File tree

3 files changed

+457
-13
lines changed

3 files changed

+457
-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+
depends on ADC_AD405X
17+
select AD405X_TRIGGER
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
depends on ADC_AD405X

0 commit comments

Comments
 (0)