SHIM Nordic modification for the ADC driver controlling the SAADC peripheral. Replaced HAL based implementation in favor of nrfx driver. As a next step, it is planned to implement a feature that will allow the peripheral SAADC timer to be used for sampling, and for this it is necessary to use the nrfx driver in this SHIM. This will allow more accurate and faster sampling than the kernel mechanism currently provides. Signed-off-by: Jakub Zymelka <jakub.zymelka@nordicsemi.no>
32 lines
834 B
Text
32 lines
834 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"
|
|
default y
|
|
depends on DT_HAS_NORDIC_NRF_ADC_ENABLED
|
|
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 DT_HAS_NORDIC_NRF_SAADC_ENABLED
|
|
select ADC_CONFIGURABLE_INPUTS
|
|
select NRFX_SAADC
|
|
help
|
|
Enable support for nrfx SAADC driver.
|