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

drivers: adc: support for Nuvoton numaker ADC #66642

Merged
merged 2 commits into from
Jan 2, 2024
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 @@ -48,3 +48,4 @@ zephyr_library_sources_ifdef(CONFIG_ADC_MAX1125X adc_max1125x.c)
zephyr_library_sources_ifdef(CONFIG_ADC_MAX11102_17 adc_max11102_17.c)
zephyr_library_sources_ifdef(CONFIG_ADC_AD5592 adc_ad5592.c)
zephyr_library_sources_ifdef(CONFIG_ADC_LTC2451 adc_ltc2451.c)
zephyr_library_sources_ifdef(CONFIG_ADC_NUMAKER adc_numaker.c)
2 changes: 2 additions & 0 deletions drivers/adc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,6 @@ source "drivers/adc/Kconfig.ad5592"

source "drivers/adc/Kconfig.ltc2451"

source "drivers/adc/Kconfig.numaker"

endif # ADC
14 changes: 14 additions & 0 deletions drivers/adc/Kconfig.numaker
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# NUMAKER ADC Driver configuration options

# Copyright (c) 2023 Nuvoton Technology Corporation.
# SPDX-License-Identifier: Apache-2.0

config ADC_NUMAKER
bool "Nuvoton NuMaker MCU ADC driver"
default y
select HAS_NUMAKER_ADC
depends on DT_HAS_NUVOTON_NUMAKER_ADC_ENABLED
help
This option enables the ADC driver for Nuvoton NuMaker family of
processors.
Say y if you wish to enable NuMaker ADC.
Loading
Loading