zephyr/drivers/adc/Kconfig.nrfx
Kumar Gala 024ea0e44e adc: Kconfig: Remove per instance ADC_{0..2} Kconfig symbols
No code utilizes CONFIG_ADC_{0..2} so we can now remove the Kconfig
sybmols for them.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-05-04 09:04:16 -05:00

36 lines
1 KiB
Plaintext

# ADC configuration options
# Copyright (c) 2018, Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
# Workaround for not being able to have commas in macro arguments
DT_COMPAT_NORDIC_NRF_ADC := nordic,nrf-adc
DT_COMPAT_NORDIC_NRF_SAADC := nordic,nrf-saadc
config ADC_NRFX_ADC
bool "nRF ADC nrfx driver"
default y
depends on HAS_HW_NRF_ADC && $(dt_nodelabel_has_compat,adc,$(DT_COMPAT_NORDIC_NRF_ADC))
select NRFX_ADC
select ADC_CONFIGURABLE_INPUTS
help
Enable support for nrfx ADC driver for nRF51 MCU series.
config ADC_NRFX_ADC_CHANNEL_COUNT
int "Number of ADC channels"
depends on ADC_NRFX_ADC
range 1 8
default 1
help
Number of ADC channels to be supported by the driver. Each channel
needs a dedicated structure in RAM that stores the ADC settings
to be used when sampling this channel.
config ADC_NRFX_SAADC
bool "nRF SAADC nrfx driver"
default y
depends on HAS_HW_NRF_SAADC && $(dt_nodelabel_has_compat,adc,$(DT_COMPAT_NORDIC_NRF_SAADC))
select ADC_CONFIGURABLE_INPUTS
help
Enable support for nrfx SAADC driver.