mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-19 00:45:22 +00:00
NPCX7 includes a 10-bit resolution Analog-to-Digital Converter (ADC). Up to 10 voltage inputs can be measured and a internal voltage reference (VREF), 2.816V (typical) is used for measurement. It can be triggered automatically in Autoscan mode. Each input channel is assigned a separate result register, which is updated at the end of the conversion. The CL also includes: — Add npcx adc device tree declarations. — Zephyr adc api implementation. — Add adc definitions of npcx7 in tests/drivers/adc/adc_api/src/test_adc.c for supporting test suites. Signed-off-by: Mulin Chao <MLChao@nuvoton.com>
60 lines
1.2 KiB
Plaintext
60 lines
1.2 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.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"
|
|
|
|
endif # ADC
|