2012-04-06 23:49:35 +08:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
2015-06-28 22:08:57 +08:00
|
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
2012-04-06 23:49:35 +08:00
|
|
|
#
|
2012-04-07 22:50:57 +08:00
|
|
|
|
2020-02-15 21:38:35 +08:00
|
|
|
menuconfig ANALOG
|
|
|
|
bool "Analog Device(ADC/DAC) Support"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
This directory holds implementations of analog device drivers.
|
|
|
|
This includes drivers for Analog to Digital Conversion (ADC) as
|
|
|
|
well as drivers for Digital to Analog Conversion (DAC).
|
|
|
|
See include/nuttx/analog/*.h for registration information.
|
|
|
|
|
2020-02-08 15:30:09 +08:00
|
|
|
if ANALOG
|
|
|
|
|
2012-07-27 04:38:46 +08:00
|
|
|
config ADC
|
|
|
|
bool "Analog-to-Digital Conversion"
|
2012-04-07 22:50:57 +08:00
|
|
|
default n
|
2012-07-27 04:38:46 +08:00
|
|
|
---help---
|
|
|
|
Select to enable support for analog input device support. This includes
|
|
|
|
not only Analog-to-Digital Converters (ADC) but also amplifiers and
|
|
|
|
analog multiplexers.
|
2012-04-07 22:50:57 +08:00
|
|
|
|
2016-05-28 00:53:27 +08:00
|
|
|
This selection enables:
|
|
|
|
|
|
|
|
- The upper half, device-independent ADC character driver, and
|
|
|
|
- Selection of common lower half ADC drivers.
|
|
|
|
|
|
|
|
MCU-specific, lower half drivers may be selected independently of
|
|
|
|
CONFIG_ADC. However, if CONFIG_ADC is selected, then it is assume
|
2018-07-09 08:24:45 +08:00
|
|
|
that lower half ADC drivers will be used only with the common ADC
|
2016-05-28 00:53:27 +08:00
|
|
|
upper half driver.
|
|
|
|
|
2013-10-29 00:08:12 +08:00
|
|
|
if ADC
|
|
|
|
|
|
|
|
config ADC_FIFOSIZE
|
|
|
|
int "ADC buffer size"
|
|
|
|
default 8
|
|
|
|
---help---
|
|
|
|
This variable defines the size of the ADC ring buffer that is used
|
|
|
|
to queue received ADC data until they can be retrieved by the
|
|
|
|
application by reading from the ADC character device. NOTE: Since
|
|
|
|
this is a ring buffer, the actual number of bytes that can be
|
|
|
|
retained in buffer is (ADC_FIFOSIZE - 1).
|
|
|
|
|
2017-08-28 20:53:24 +08:00
|
|
|
config ADC_NPOLLWAITERS
|
|
|
|
int "Number of poll waiters"
|
|
|
|
default 2
|
|
|
|
---help---
|
|
|
|
Maximum number of threads that can be waiting on poll.
|
|
|
|
|
2016-01-29 21:55:39 +08:00
|
|
|
config ADC_ADS1242
|
|
|
|
bool "TI ADS1242 support"
|
|
|
|
default n
|
|
|
|
select SPI
|
|
|
|
---help---
|
|
|
|
Enable driver support for the ADS1242 24-Bit SPI powered ADC.
|
|
|
|
|
|
|
|
This driver supports reading the ADC conversion result as well as
|
|
|
|
configuring the ADC, setting the input channel, etc. is implemented
|
|
|
|
via ioctl calls. However, it does not yet implement the standard ADC
|
|
|
|
interface.
|
|
|
|
|
2012-04-07 22:50:57 +08:00
|
|
|
config ADC_ADS125X
|
2012-07-27 04:38:46 +08:00
|
|
|
bool "TI ADS1255/ADS1256 support"
|
2012-04-07 22:50:57 +08:00
|
|
|
default n
|
|
|
|
select SPI
|
2016-05-27 03:42:35 +08:00
|
|
|
select SCHED_HPWORK
|
2012-07-27 04:38:46 +08:00
|
|
|
|
2013-10-29 00:08:12 +08:00
|
|
|
if ADC_ADS125X
|
|
|
|
|
2012-07-27 04:38:46 +08:00
|
|
|
config ADS1255_FREQUENCY
|
|
|
|
int "ADS1255/ADS1256 SPI frequency"
|
|
|
|
default 1000000
|
2013-10-29 00:08:12 +08:00
|
|
|
|
|
|
|
endif # ADC_ADS125X
|
2012-07-27 04:38:46 +08:00
|
|
|
|
2017-03-28 20:34:37 +08:00
|
|
|
config ADC_LTC1867L
|
|
|
|
bool "LTC 1863L/1867L support"
|
|
|
|
default n
|
|
|
|
select SPI
|
|
|
|
---help---
|
|
|
|
Enable driver support for the LTC 1863L (12 bit) and LTC 1867L (16 bit) SPI powered ADC.
|
|
|
|
|
|
|
|
Note that the ADC conversion is started via the ANIOC_TRIGGER iotcl.
|
|
|
|
|
|
|
|
if ADC_LTC1867L
|
|
|
|
|
|
|
|
config LTC1867L_FREQUENCY
|
|
|
|
int "LTC 1863L/1867L SPI frequency"
|
|
|
|
default 1000000
|
|
|
|
---help---
|
|
|
|
LTC 1863L/1867L SPI frequency. Maximum is 20 MHz.
|
|
|
|
|
|
|
|
endif # ADC_LTC1867L
|
|
|
|
|
2012-07-27 04:38:46 +08:00
|
|
|
config ADC_PGA11X
|
|
|
|
bool "TI PGA112/3/6/7 support"
|
|
|
|
default n
|
|
|
|
select SPI
|
|
|
|
---help---
|
2019-03-22 19:44:53 +08:00
|
|
|
Enables support for the PGA112, PGA113, PGA116, PGA117 Zero-Drift
|
2012-07-27 04:38:46 +08:00
|
|
|
PROGRAMMABLE GAIN AMPLIFIER with MUX
|
|
|
|
|
2013-10-29 00:08:12 +08:00
|
|
|
if ADC_PGA11X
|
|
|
|
|
2012-07-27 04:38:46 +08:00
|
|
|
config PGA11X_SPIFREQUENCY
|
|
|
|
int "TI PGA112/3/6/7 SPI frequency"
|
|
|
|
default 1000000
|
|
|
|
---help---
|
|
|
|
PGA11x SPI frequency.
|
|
|
|
|
|
|
|
config PGA11X_SPIMODE
|
|
|
|
int "TI PGA112/3/6/7 SPI mode"
|
|
|
|
default 0
|
|
|
|
---help---
|
|
|
|
PGA11x SPI mode. The specification says that the device operates in Mode 0 or
|
|
|
|
Mode 3. But sometimes you need to tinker with this to get things to work
|
|
|
|
correctly. Default: Mode 0
|
|
|
|
|
|
|
|
config PGA11X_DAISYCHAIN
|
|
|
|
bool "TI PGA112/3/6/7 daisy chain mode"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Enable support to use two PGA116/7's in Daisy Chain configuration.
|
|
|
|
|
|
|
|
config PGA11X_MULTIPLE
|
|
|
|
bool "Multiple TI PGA112/3/6/7 support"
|
|
|
|
default n
|
2013-10-29 00:08:12 +08:00
|
|
|
depends on !PGA11X_DAISYCHAIN
|
2012-07-27 04:38:46 +08:00
|
|
|
---help---
|
|
|
|
Can be defined to support multiple PGA11X devices on board with separate
|
|
|
|
chip selects (not daisy chained). Each device will require a customized
|
|
|
|
SPI interface to distinguish them when SPI_SELECT is called with
|
2017-04-30 02:26:52 +08:00
|
|
|
devid=SPIDEV_MUX(n).
|
2012-07-27 04:38:46 +08:00
|
|
|
|
2013-10-29 00:08:12 +08:00
|
|
|
endif # if ADC_PGA11X
|
2018-12-21 23:46:33 +08:00
|
|
|
|
2020-02-19 04:19:40 +08:00
|
|
|
config ADC_ADS7828
|
|
|
|
bool "TI ADS7828 support"
|
|
|
|
default n
|
|
|
|
select I2C
|
|
|
|
---help---
|
|
|
|
Enable driver support for the ADS7828 12-Bit I2C powered ADC.
|
|
|
|
|
|
|
|
This driver supports reading single or multiple ADC conversion result
|
|
|
|
as well as onfiguring the ADC, via ioctl calls.
|
|
|
|
|
|
|
|
if ADC_ADS7828
|
|
|
|
|
|
|
|
config ADS7828_FREQUENCY
|
|
|
|
int "TI ADS7828 I2C frequency"
|
|
|
|
default 100000
|
|
|
|
---help---
|
|
|
|
ADS7828 supports standard, fast, and high-speed I2C modes.
|
|
|
|
|
|
|
|
endif # ADC_ADS7828
|
|
|
|
|
2013-10-29 00:08:12 +08:00
|
|
|
endif # ADC
|
|
|
|
|
2017-03-25 23:50:11 +08:00
|
|
|
config COMP
|
2017-03-26 00:38:41 +08:00
|
|
|
bool "Analog Comparator"
|
|
|
|
default n
|
|
|
|
---help---
|
2017-03-25 23:50:11 +08:00
|
|
|
Select to enable support for Analog Comparators (COMPs).
|
|
|
|
|
2012-07-27 04:38:46 +08:00
|
|
|
config DAC
|
|
|
|
bool "Digital-to-Analog Conversion"
|
2013-10-29 00:08:12 +08:00
|
|
|
default n
|
2012-07-27 04:38:46 +08:00
|
|
|
---help---
|
|
|
|
Select to enable support for Digital-to-Analog Converters (DACs).
|
2012-04-07 22:50:57 +08:00
|
|
|
|
2013-10-29 00:08:12 +08:00
|
|
|
if DAC
|
|
|
|
|
2012-04-07 22:50:57 +08:00
|
|
|
config DAC_AD5410
|
|
|
|
bool "AD5410 support"
|
|
|
|
default n
|
|
|
|
select SPI
|
2013-10-29 00:08:12 +08:00
|
|
|
|
2018-08-02 20:39:07 +08:00
|
|
|
config DAC7571
|
|
|
|
bool "DAC7571 support"
|
|
|
|
default n
|
|
|
|
select I2C
|
|
|
|
---help---
|
|
|
|
Enable driver support for the Texas Instruments DAC7571 dac.
|
|
|
|
|
|
|
|
config DAC7571_I2C_FREQUENCY
|
|
|
|
int "DAC7571 I2C frequency"
|
|
|
|
default 400000
|
|
|
|
depends on DAC7571
|
|
|
|
|
2019-08-28 21:01:17 +08:00
|
|
|
config DAC7554
|
|
|
|
bool "DAC7554 support"
|
|
|
|
default n
|
|
|
|
select SPI
|
|
|
|
---help---
|
|
|
|
Enable driver support for the Texas Instruments DAC7554 dac.
|
|
|
|
|
2013-10-29 00:08:12 +08:00
|
|
|
endif # DAC
|
2017-04-30 17:11:17 +08:00
|
|
|
|
|
|
|
config OPAMP
|
2018-12-21 23:46:33 +08:00
|
|
|
bool "Operational Amplifier"
|
|
|
|
default n
|
|
|
|
---help---
|
2017-04-30 17:11:17 +08:00
|
|
|
Select to enable support for Operational Amplifiers (OPAMPs).
|
2018-12-21 23:46:33 +08:00
|
|
|
|
|
|
|
config LMP92001
|
|
|
|
bool "LMP92001 support"
|
|
|
|
default n
|
|
|
|
select I2C
|
|
|
|
---help---
|
|
|
|
Enable driver support for the Texas Instruments LMP92001.
|
|
|
|
|
|
|
|
config LMP92001_I2C_FREQUENCY
|
|
|
|
int "LMP92001 I2C frequency"
|
|
|
|
default 400000
|
|
|
|
depends on LMP92001
|
2020-02-08 15:30:09 +08:00
|
|
|
|
|
|
|
endif # ANALOG
|