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

Feat add ad4114 driver #82816

Merged
merged 2 commits into from
Jan 15, 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 @@ -55,3 +55,4 @@ zephyr_library_sources_ifdef(CONFIG_ADC_MCUX_GAU adc_mcux_gau_adc.c)
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)
2 changes: 2 additions & 0 deletions drivers/adc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,6 @@ source "drivers/adc/Kconfig.renesas_ra"

source "drivers/adc/Kconfig.max32"

source "drivers/adc/Kconfig.ad4114"

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

config ADC_AD4114
bool "AD4114 ADC driver"
default y
depends on DT_HAS_ADI_AD4114_ADC_ENABLED
select SPI
help
Enable the AD4114 ADC driver.

config ADC_AD4114_ACQUISITION_THREAD_STACK_SIZE
int "Stack size for the ADC data acquisition thread"
depends on ADC_AD4114
default 512
help
Size of the stack used for the internal data acquisition
thread.

config ADC_AD4114_ACQUISITION_THREAD_PRIO
int "Priority for the ADC data acquisition thread"
depends on ADC_AD4114
default 0
help
Priority level for the internal ADC data acquisition thread.
Loading
Loading