zephyr/drivers/adc/Kconfig
Tomasz Michalec d83647dea6 drivers: adc: add ADC emulator
ADC emulator is designed to be used in tests on native_posix board. It
supports 1-16 bit resolution range and all GAINs from enum adc_gain.
Reference voltages and number of emulated channels are set through dts.
Using special API from drivers/adc/adc_emul.h it is possible to set
constant voltage value returned by given ADC channel or set custom
function which allows to simulate complex output.
Also reference voltages can be changed in runtime using the API.

The CL also includes:
- Add adc definitions of ADC emulator in
  tests/drivers/adc/adc_api/src/test_adc.c for supporting test suites.
- Add test for ADC emulator API in tests/drivers/adc/adc_emul/

Signed-off-by: Tomasz Michalec <tm@semihalf.com>
2021-05-07 15:27:37 +02:00

66 lines
1.3 KiB
Plaintext

# ADC configuration options
# Copyright (c) 2015 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
# ADC options
#
menuconfig ADC
bool "ADC drivers"
# All platforms that implement the ADC driver are now required to
# provide relevant DTS entries.
help
Enable ADC (Analog to Digital Converter) driver configuration.
if ADC
config ADC_SHELL
bool "Enable ADC Shell"
default y
depends on SHELL
help
Enable ADC Shell for testing.
# By selecting or not this option particular ADC drivers indicate if it is
# required to explicitly specify analog inputs when configuring channels or
# just the channel identifier is sufficient.
config ADC_CONFIGURABLE_INPUTS
bool
config ADC_ASYNC
bool "Enable asynchronous call support"
select POLL
help
This option enables the asynchronous API calls.
module = ADC
module-str = ADC
source "subsys/logging/Kconfig.template.log_config"
source "drivers/adc/Kconfig.it8xxx2"
source "drivers/adc/Kconfig.mcux"
source "drivers/adc/Kconfig.nrfx"
source "drivers/adc/Kconfig.sam_afec"
source "drivers/adc/Kconfig.sam0"
source "drivers/adc/Kconfig.stm32"
source "drivers/adc/Kconfig.xec"
source "drivers/adc/Kconfig.lmp90xxx"
source "drivers/adc/Kconfig.mcp320x"
source "drivers/adc/Kconfig.npcx"
source "drivers/adc/Kconfig.cc32xx"
source "drivers/adc/Kconfig.adc_emul"
endif # ADC