Skip to content

Commit

Permalink
drivers: adc: add driver for ADS114S08
Browse files Browse the repository at this point in the history
Implement a driver for the ADC ADS114S08

Signed-off-by: Benedikt Schmidt <[email protected]>
  • Loading branch information
benediktibk authored and carlescufi committed May 4, 2023
1 parent 6c191c2 commit 6d6f6eb
Show file tree
Hide file tree
Showing 4 changed files with 1,053 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/adc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ zephyr_library_sources_ifdef(CONFIG_ADC_ADS1X1X adc_ads1x1x.c)
zephyr_library_sources_ifdef(CONFIG_ADC_GD32 adc_gd32.c)
zephyr_library_sources_ifdef(CONFIG_ADC_ADS1119 adc_ads1119.c)
zephyr_library_sources_ifdef(CONFIG_ADC_ADS7052 adc_ads7052.c)
zephyr_library_sources_ifdef(CONFIG_ADC_ADS114S0X adc_ads114s0x.c)
zephyr_library_sources_ifdef(CONFIG_ADC_RPI_PICO adc_rpi_pico.c)
zephyr_library_sources_ifdef(CONFIG_ADC_XMC4XXX adc_xmc4xxx.c)
zephyr_library_sources_ifdef(CONFIG_ADC_ESP32 adc_esp32.c)
Expand Down
2 changes: 2 additions & 0 deletions drivers/adc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ source "drivers/adc/Kconfig.ads1119"

source "drivers/adc/Kconfig.ads7052"

source "drivers/adc/Kconfig.ads114s0x"

source "drivers/adc/Kconfig.rpi_pico"

source "drivers/adc/Kconfig.xmc4xxx"
Expand Down
25 changes: 25 additions & 0 deletions drivers/adc/Kconfig.ads114s0x
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Copyright (c) 2023 SILA Embedded Solutions GmbH
#
# SPDX-License-Identifier: Apache-2.0

menuconfig ADC_ADS114S0X
bool "Texas instruments ADS114S0x"
default y
depends on DT_HAS_TI_ADS114S08_ENABLED
select SPI
select ADC_CONFIGURABLE_INPUTS
help
Enable the driver implementation for the ADS114S0X family

config ADC_ADS114S0X_ASYNC_THREAD_INIT_PRIO
int "ADC ADS114S0x async thread priority"
default 0
depends on ADC_ADS114S0X

config ADC_ADS114S0X_ACQUISITION_THREAD_STACK_SIZE
int "Stack size for the ADC data acquisition thread"
default 400
depends on ADC_ADS114S0X
help
Size of the stack used for the internal data acquisition
thread.
Loading

0 comments on commit 6d6f6eb

Please sign in to comment.