Instead of selecting appropriate HAS_HW_NRF_* options for particular nRF SoCs (and simulated nRF52 target), set their values basing on information from devicetree. Correct also semantics of those options so that they are set only when a corresponding DT node is enabled. This allows using them directly in Kconfig dependencies of Zephyr drivers for nRF peripherals. Update appropriately these dependencies. Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
31 lines
785 B
Text
31 lines
785 B
Text
# ADC configuration options
|
|
|
|
# Copyright (c) 2018, Nordic Semiconductor ASA
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
config ADC_NRFX_ADC
|
|
bool "nRF ADC nrfx driver"
|
|
depends on HAS_HW_NRF_ADC
|
|
default y
|
|
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"
|
|
depends on HAS_HW_NRF_SAADC
|
|
default y
|
|
select ADC_CONFIGURABLE_INPUTS
|
|
help
|
|
Enable support for nrfx SAADC driver.
|