diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2013-10-28 10:08:12 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2013-10-28 10:08:12 -0600 |
commit | 022d45602666fd6966d721dde9635a62d8c56898 (patch) | |
tree | 210d028db3590d3069f1e2c268c1680a18f58b5c /nuttx/drivers/analog/Kconfig | |
parent | 252a9031e7e0c68d880273550358ab32008bbd12 (diff) | |
download | px4-nuttx-022d45602666fd6966d721dde9635a62d8c56898.tar.gz px4-nuttx-022d45602666fd6966d721dde9635a62d8c56898.tar.bz2 px4-nuttx-022d45602666fd6966d721dde9635a62d8c56898.zip |
SAMA5 ADC: Seems functional in all modes including DMA
Diffstat (limited to 'nuttx/drivers/analog/Kconfig')
-rw-r--r-- | nuttx/drivers/analog/Kconfig | 36 |
1 files changed, 27 insertions, 9 deletions
diff --git a/nuttx/drivers/analog/Kconfig b/nuttx/drivers/analog/Kconfig index ebed79c78..5a4019571 100644 --- a/nuttx/drivers/analog/Kconfig +++ b/nuttx/drivers/analog/Kconfig @@ -11,37 +11,50 @@ config ADC not only Analog-to-Digital Converters (ADC) but also amplifiers and analog multiplexers. +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). + config ADC_ADS125X bool "TI ADS1255/ADS1256 support" default n - depends on ADC select SPI +if ADC_ADS125X + config ADS1255_FREQUENCY int "ADS1255/ADS1256 SPI frequency" default 1000000 - depends on ADC_ADS125X + +endif # ADC_ADS125X config ADC_PGA11X bool "TI PGA112/3/6/7 support" default n - depends on ADC select SPI ---help--- Enables support for the PGA112, PGA113, PGA116, PGA117 Zerø-Drift PROGRAMMABLE GAIN AMPLIFIER with MUX +if ADC_PGA11X + config PGA11X_SPIFREQUENCY int "TI PGA112/3/6/7 SPI frequency" default 1000000 - depends on ADC_PGA11X ---help--- PGA11x SPI frequency. config PGA11X_SPIMODE int "TI PGA112/3/6/7 SPI mode" default 0 - depends on ADC_PGA11X ---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 @@ -50,28 +63,33 @@ config PGA11X_SPIMODE config PGA11X_DAISYCHAIN bool "TI PGA112/3/6/7 daisy chain mode" default n - depends on ADC_PGA11X ---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 - depends on ADC_PGA11X && !PGA11X_DAISYCHAIN + depends on !PGA11X_DAISYCHAIN ---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 devid=SPIDEV_MUX. +endif # if ADC_PGA11X +endif # ADC + config DAC bool "Digital-to-Analog Conversion" - default n + default n ---help--- Select to enable support for Digital-to-Analog Converters (DACs). +if DAC + config DAC_AD5410 bool "AD5410 support" default n - depends on DAC select SPI + +endif # DAC |