Skip to content
Permalink
Browse files

drivers: adc: Add SAM0 ADC driver

This adds a driver for the SAM0 series ADC.

Tested with /tests/drivers/adc/adc_api on SAMD21.

Signed-off-by: Derek Hageman <hageman@inthat.cloud>
  • Loading branch information...
Sizurka authored and nashif committed Feb 24, 2019
1 parent 9a6bbbf commit 1d64a4650138b010ac0144722809a3d7d965d6f9
@@ -8,4 +8,5 @@ zephyr_library_sources_ifdef(CONFIG_ADC_NRFX_ADC adc_nrfx_adc.c)
zephyr_library_sources_ifdef(CONFIG_ADC_NRFX_SAADC adc_nrfx_saadc.c)
zephyr_library_sources_ifdef(CONFIG_ADC_INTEL_QUARK_SE_C1000_SS adc_intel_quark_se_c1000_ss.c)
zephyr_library_sources_ifdef(CONFIG_ADC_INTEL_QUARK_D2000 adc_intel_quark_d2000.c)
zephyr_library_sources_ifdef(CONFIG_ADC_SAM0 adc_sam0.c)
zephyr_library_sources_ifdef(CONFIG_USERSPACE adc_handlers.c)
@@ -55,4 +55,6 @@ source "drivers/adc/Kconfig.sam_afec"

source "drivers/adc/Kconfig.intel_quark"

source "drivers/adc/Kconfig.sam0"

endif # ADC
@@ -0,0 +1,13 @@
#
# Copyright (c) 2019 Derek Hageman <hageman@inthat.cloud>
#
# SPDX-License-Identifier: Apache-2.0
#

config ADC_SAM0
bool "Atmel SAM0 series ADC Driver"
default y
depends on SOC_FAMILY_SAM0
select ADC_CONFIGURABLE_INPUTS
help
Enable Atmel SAM0 MCU Family Analog-to-Digital Converter (ADC) driver.

0 comments on commit 1d64a46

Please sign in to comment.
You can’t perform that action at this time.