Skip to content

Commit

Permalink
drivers: adc: mcux_adc12: add driver for the NXP ADC12 module
Browse files Browse the repository at this point in the history
Add MCUX driver shim for the NXP Kinetis 12-bit ADC module (ADC12).

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
  • Loading branch information
henrikbrixandersen authored and MaureenHelm committed Jun 7, 2019
1 parent 1c55882 commit 683ca77
Show file tree
Hide file tree
Showing 7 changed files with 453 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/adc/CMakeLists.txt
Expand Up @@ -2,6 +2,7 @@


zephyr_library() zephyr_library()


zephyr_library_sources_ifdef(CONFIG_ADC_MCUX_ADC12 adc_mcux_adc12.c)
zephyr_library_sources_ifdef(CONFIG_ADC_MCUX_ADC16 adc_mcux_adc16.c) zephyr_library_sources_ifdef(CONFIG_ADC_MCUX_ADC16 adc_mcux_adc16.c)
zephyr_library_sources_ifdef(CONFIG_ADC_SAM_AFEC adc_sam_afec.c) zephyr_library_sources_ifdef(CONFIG_ADC_SAM_AFEC adc_sam_afec.c)
zephyr_library_sources_ifdef(CONFIG_ADC_NRFX_ADC adc_nrfx_adc.c) zephyr_library_sources_ifdef(CONFIG_ADC_NRFX_ADC adc_nrfx_adc.c)
Expand Down
3 changes: 3 additions & 0 deletions drivers/adc/Kconfig
Expand Up @@ -47,6 +47,9 @@ config ADC_0
config ADC_1 config ADC_1
bool "Enable ADC 1" bool "Enable ADC 1"


config ADC_2
bool "Enable ADC 2"

source "drivers/adc/Kconfig.mcux" source "drivers/adc/Kconfig.mcux"


source "drivers/adc/Kconfig.nrfx" source "drivers/adc/Kconfig.nrfx"
Expand Down
6 changes: 6 additions & 0 deletions drivers/adc/Kconfig.mcux
Expand Up @@ -6,6 +6,12 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# #


config ADC_MCUX_ADC12
bool "MCUX ADC12 driver"
depends on HAS_MCUX_ADC12
help
Enable the MCUX ADC12 driver.

config ADC_MCUX_ADC16 config ADC_MCUX_ADC16
bool "MCUX ADC16 driver" bool "MCUX ADC16 driver"
depends on HAS_MCUX_ADC16 depends on HAS_MCUX_ADC16
Expand Down

0 comments on commit 683ca77

Please sign in to comment.