Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce AD7124 ADC #84197

Merged
merged 4 commits into from
Jan 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions drivers/adc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,4 @@ zephyr_library_sources_ifdef(CONFIG_ADC_AMBIQ adc_ambiq.c)
zephyr_library_sources_ifdef(CONFIG_ADC_RENESAS_RA adc_renesas_ra.c)
zephyr_library_sources_ifdef(CONFIG_ADC_MAX32 adc_max32.c)
zephyr_library_sources_ifdef(CONFIG_ADC_AD4114 adc_ad4114.c)
zephyr_library_sources_ifdef(CONFIG_ADC_AD7124 adc_ad7124.c)
2 changes: 2 additions & 0 deletions drivers/adc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,6 @@ source "drivers/adc/Kconfig.max32"

source "drivers/adc/Kconfig.ad4114"

source "drivers/adc/Kconfig.ad7124"

endif # ADC
25 changes: 25 additions & 0 deletions drivers/adc/Kconfig.ad7124
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Copyright (c) 2025 Analog Devices, Inc.
# SPDX-License-Identifier: Apache-2.0

config ADC_AD7124
bool "ADI AD7124 Analog-to-Digital Converter"
default y
depends on DT_HAS_ADI_AD7124_ADC_ENABLED
select SPI
select CRC
select ADC_CONFIGURABLE_INPUTS
help
Enable the ad7124 adc

config ADI_AD7124_ADC_ACQUISITION_THREAD_INIT_PRIO
int "ADC data acquisition thread priority"
default 0
depends on ADC_AD7124 && ADC_ASYNC

config ADI_AD7124_ADC_ACQUISITION_THREAD_STACK_SIZE
int "Stack size for the ADC data acquisition thread"
default 400
depends on ADC_AD7124 && ADC_ASYNC
help
Size of the stack used for the internal data acquisition
thread.
Loading
Loading