2015-10-05 19:56:33 +08:00
|
|
|
# Kconfig - ADC configuration options
|
|
|
|
|
|
|
|
#
|
|
|
|
# Copyright (c) 2015 Intel Corporation
|
|
|
|
#
|
2017-01-19 09:01:01 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2015-10-05 19:56:33 +08:00
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# ADC options
|
|
|
|
#
|
|
|
|
menuconfig ADC
|
2018-08-14 22:19:20 +08:00
|
|
|
bool "ADC drivers"
|
2018-07-11 15:10:30 +08:00
|
|
|
# All platforms that implement the ADC driver are now required to
|
|
|
|
# provide relevant DTS entries.
|
|
|
|
select HAS_DTS_ADC
|
2015-10-05 19:56:33 +08:00
|
|
|
help
|
2018-05-21 21:00:28 +08:00
|
|
|
Enable ADC (Analog to Digital Converter) driver configuration.
|
2015-10-05 19:56:33 +08:00
|
|
|
|
2017-06-08 01:54:25 +08:00
|
|
|
if ADC
|
|
|
|
|
2018-05-21 21:00:28 +08:00
|
|
|
# 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.
|
|
|
|
|
2018-09-18 01:00:47 +08:00
|
|
|
module = ADC
|
|
|
|
module-str = ADC
|
|
|
|
source "subsys/logging/Kconfig.template.log_config"
|
2015-10-05 23:41:18 +08:00
|
|
|
|
2016-05-08 00:18:23 +08:00
|
|
|
config ADC_INIT_PRIORITY
|
2018-08-14 22:19:20 +08:00
|
|
|
int "Init priority"
|
2016-05-08 00:18:23 +08:00
|
|
|
default 80
|
|
|
|
help
|
|
|
|
ADC Device driver initialization priority.
|
|
|
|
|
2017-06-07 06:56:14 +08:00
|
|
|
config ADC_0
|
|
|
|
bool "Enable ADC 0"
|
|
|
|
|
|
|
|
config ADC_1
|
|
|
|
bool "Enable ADC 1"
|
|
|
|
|
2019-05-16 14:17:18 +08:00
|
|
|
config ADC_2
|
|
|
|
bool "Enable ADC 2"
|
|
|
|
|
2017-08-30 18:25:49 +08:00
|
|
|
source "drivers/adc/Kconfig.mcux"
|
2016-06-29 05:43:47 +08:00
|
|
|
|
2018-05-21 21:01:08 +08:00
|
|
|
source "drivers/adc/Kconfig.nrfx"
|
|
|
|
|
2017-08-04 19:38:18 +08:00
|
|
|
source "drivers/adc/Kconfig.sam_afec"
|
|
|
|
|
2018-08-30 07:42:43 +08:00
|
|
|
source "drivers/adc/Kconfig.intel_quark"
|
|
|
|
|
2019-02-24 22:47:57 +08:00
|
|
|
source "drivers/adc/Kconfig.sam0"
|
|
|
|
|
2019-05-07 16:37:35 +08:00
|
|
|
source "drivers/adc/Kconfig.stm32"
|
|
|
|
|
2017-06-08 01:54:25 +08:00
|
|
|
endif # ADC
|