2017-08-30 18:25:49 +08:00
|
|
|
# Kconfig - ADC configuration options
|
|
|
|
|
|
|
|
#
|
|
|
|
# Copyright (c) 2015 Intel Corporation
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#
|
|
|
|
|
2019-05-16 14:17:18 +08:00
|
|
|
config ADC_MCUX_ADC12
|
|
|
|
bool "MCUX ADC12 driver"
|
|
|
|
depends on HAS_MCUX_ADC12
|
|
|
|
help
|
|
|
|
Enable the MCUX ADC12 driver.
|
|
|
|
|
2017-08-30 18:25:49 +08:00
|
|
|
config ADC_MCUX_ADC16
|
|
|
|
bool "MCUX ADC16 driver"
|
2017-08-26 00:15:49 +08:00
|
|
|
depends on HAS_MCUX_ADC16
|
2017-08-30 18:25:49 +08:00
|
|
|
help
|
|
|
|
Enable the MCUX ADC16 driver.
|
2018-09-28 20:18:03 +08:00
|
|
|
|
|
|
|
if ADC_MCUX_ADC16
|
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "Clock Divide Selection"
|
|
|
|
default ADC_MCUX_ADC16_CLK_DIV_RATIO_1
|
|
|
|
|
|
|
|
config ADC_MCUX_ADC16_CLK_DIV_RATIO_1
|
|
|
|
bool "Divide ratio is 1"
|
|
|
|
|
|
|
|
config ADC_MCUX_ADC16_CLK_DIV_RATIO_2
|
|
|
|
bool "Divide ratio is 2"
|
|
|
|
|
|
|
|
config ADC_MCUX_ADC16_CLK_DIV_RATIO_4
|
|
|
|
bool "Divide ratio is 4"
|
|
|
|
|
|
|
|
config ADC_MCUX_ADC16_CLK_DIV_RATIO_8
|
|
|
|
bool "Divide ratio is 8"
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "Voltage Reference Selection"
|
|
|
|
default ADC_MCUX_ADC16_VREF_DEFAULT
|
|
|
|
|
|
|
|
config ADC_MCUX_ADC16_VREF_DEFAULT
|
|
|
|
bool "Default voltage reference pair V_REFH and V_REFL"
|
|
|
|
|
|
|
|
config ADC_MCUX_ADC16_VREF_ALTERNATE
|
|
|
|
bool "Alternate reference pair"
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
endif # ADC_MCUX_ADC16
|