2012-04-06 18:33:17 +02:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
2015-06-28 16:14:53 +02:00
|
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
2012-04-06 18:33:17 +02:00
|
|
|
#
|
2012-04-13 04:14:09 +02:00
|
|
|
|
|
|
|
config EXAMPLES_ADC
|
2018-09-03 17:29:56 +02:00
|
|
|
tristate "ADC example"
|
2012-04-13 04:14:09 +02:00
|
|
|
default n
|
2016-03-30 15:37:45 +02:00
|
|
|
depends on ADC && LIB_BOARDCTL
|
2012-04-13 04:14:09 +02:00
|
|
|
---help---
|
|
|
|
Enable the ADC example
|
|
|
|
|
|
|
|
if EXAMPLES_ADC
|
2012-10-04 19:36:07 +02:00
|
|
|
|
|
|
|
config EXAMPLES_ADC_DEVPATH
|
|
|
|
string "ADC device path"
|
|
|
|
default "/dev/adc0"
|
|
|
|
---help---
|
|
|
|
The default path to the ADC device. Default: /dev/adc0
|
|
|
|
|
|
|
|
config EXAMPLES_ADC_NSAMPLES
|
|
|
|
int "Number of Sample Groups"
|
|
|
|
default 0
|
|
|
|
---help---
|
2019-10-07 10:37:56 +02:00
|
|
|
This number of samples is collected and the program terminates.
|
|
|
|
Default: 0 (samples are collected indefinitely).
|
2012-10-04 19:36:07 +02:00
|
|
|
|
|
|
|
config EXAMPLES_ADC_GROUPSIZE
|
|
|
|
int "Number of Samples per Group"
|
|
|
|
default 4
|
|
|
|
---help---
|
|
|
|
The number of samples to read at once. Default: 4
|
|
|
|
|
2013-10-25 22:17:29 +02:00
|
|
|
config EXAMPLES_ADC_SWTRIG
|
|
|
|
bool "Use software trigger"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Some ADCs may be configured so there is no automatic or periodic
|
|
|
|
conversion of samples. Rather, the ADC sampling must be trigger by
|
|
|
|
software via an ioctl command. Select this option only if
|
|
|
|
applicable for your ADC configuration. In this case, the test will
|
|
|
|
issue the software trigger ioctl before attempting to read from the
|
|
|
|
ADC.
|
|
|
|
|
2012-04-13 04:14:09 +02:00
|
|
|
endif
|