Skip to content

Commit

Permalink
drivers: adc: support Nuvoton numaker series
Browse files Browse the repository at this point in the history
Add Nuvoton numaker series adc controller, including async read feature.

Signed-off-by: cyliang tw <[email protected]>
  • Loading branch information
cyliangtw authored and carlescufi committed Jan 2, 2024
1 parent 4a77bdb commit 9ad8e1a
Show file tree
Hide file tree
Showing 7 changed files with 488 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 @@ -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

0 comments on commit 9ad8e1a

Please sign in to comment.