2019-11-01 13:45:29 +01:00
|
|
|
# ADC configuration options
|
2018-05-21 15:01:08 +02:00
|
|
|
|
|
|
|
# Copyright (c) 2018, Nordic Semiconductor ASA
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2020-04-10 02:53:06 +02:00
|
|
|
# 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
|
|
|
|
|
2018-05-21 15:01:08 +02:00
|
|
|
config ADC_NRFX_ADC
|
|
|
|
bool "nRF ADC nrfx driver"
|
2018-12-11 14:22:57 +01:00
|
|
|
default y
|
2020-04-10 02:53:06 +02:00
|
|
|
depends on HAS_HW_NRF_ADC && $(dt_nodelabel_has_compat,adc,$(DT_COMPAT_NORDIC_NRF_ADC))
|
2018-05-21 15:01:08 +02:00
|
|
|
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"
|
2018-12-11 14:22:57 +01:00
|
|
|
default y
|
2020-04-10 02:53:06 +02:00
|
|
|
depends on HAS_HW_NRF_SAADC && $(dt_nodelabel_has_compat,adc,$(DT_COMPAT_NORDIC_NRF_SAADC))
|
2018-05-21 15:01:08 +02:00
|
|
|
select ADC_CONFIGURABLE_INPUTS
|
|
|
|
help
|
2020-04-10 02:53:06 +02:00
|
|
|
Enable support for nrfx SAADC driver.
|