2019-11-01 13:45:29 +01:00
|
|
|
# ADC configuration options
|
2017-08-30 12:25:49 +02:00
|
|
|
|
|
|
|
# Copyright (c) 2015 Intel Corporation
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2019-05-16 08:17:18 +02:00
|
|
|
config ADC_MCUX_ADC12
|
|
|
|
bool "MCUX ADC12 driver"
|
|
|
|
depends on HAS_MCUX_ADC12
|
2022-03-08 20:18:09 +01:00
|
|
|
select PINCTRL
|
2019-05-16 08:17:18 +02:00
|
|
|
help
|
|
|
|
Enable the MCUX ADC12 driver.
|
|
|
|
|
2017-08-30 12:25:49 +02:00
|
|
|
config ADC_MCUX_ADC16
|
|
|
|
bool "MCUX ADC16 driver"
|
2017-08-25 18:15:49 +02:00
|
|
|
depends on HAS_MCUX_ADC16
|
2022-03-08 00:44:27 +01:00
|
|
|
select PINCTRL
|
2017-08-30 12:25:49 +02:00
|
|
|
help
|
|
|
|
Enable the MCUX ADC16 driver.
|
2018-09-28 14:18:03 +02:00
|
|
|
|
2021-10-08 20:01:56 +02:00
|
|
|
config ADC_MCUX_12B1MSPS_SAR
|
|
|
|
bool "MCUX 12B1MSPS SAR ADC driver"
|
|
|
|
depends on HAS_MCUX_12B1MSPS_SAR
|
|
|
|
help
|
|
|
|
Enable the MCUX 12B1MSPS SAR ADC driver.
|
|
|
|
|
2020-08-12 12:12:19 +02:00
|
|
|
config ADC_MCUX_LPADC
|
|
|
|
bool "MCUX LPADC driver"
|
|
|
|
depends on HAS_MCUX_LPADC
|
|
|
|
help
|
|
|
|
Enable the MCUX LPADC driver.
|
|
|
|
|
2018-09-28 14:18:03 +02: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
|
|
|
|
|
2020-02-14 14:33:53 +01:00
|
|
|
choice ADC_MCUX_ADC16_VREF
|
2018-09-28 14:18:03 +02:00
|
|
|
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
|
|
|
|
|
2020-08-24 11:28:01 +02:00
|
|
|
config ADC_MCUX_ADC16_ENABLE_EDMA
|
2022-03-09 12:05:12 +01:00
|
|
|
bool "EDMA for adc driver"
|
2020-08-24 11:28:01 +02:00
|
|
|
depends on HAS_MCUX_ADC16 && HAS_MCUX_EDMA
|
|
|
|
help
|
|
|
|
Enable the MCUX ADC16 driver.
|
|
|
|
|
|
|
|
if ADC_MCUX_ADC16_ENABLE_EDMA
|
|
|
|
|
|
|
|
config ADC_MCUX_ADC16_HW_TRIGGER
|
|
|
|
bool "ADC HW TRIGGER"
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
Support HW Trigger ADC
|
|
|
|
|
|
|
|
endif # ADC_MCUX_ADC16_ENABLE_EDMA
|
|
|
|
|
2018-09-28 14:18:03 +02:00
|
|
|
endif # ADC_MCUX_ADC16
|
2020-08-12 12:12:19 +02:00
|
|
|
|
|
|
|
|
|
|
|
if ADC_MCUX_LPADC
|
|
|
|
|
|
|
|
config LPADC_DO_OFFSET_CALIBRATION
|
|
|
|
bool "Do offset calibration"
|
|
|
|
help
|
|
|
|
Do offset calibration
|
|
|
|
|
|
|
|
endif # ADC_MCUX_LPADC
|