2012-09-17 15:18:44 -03:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
|
|
|
# see misc/tools/kconfig-language.txt.
|
|
|
|
#
|
|
|
|
|
|
|
|
config EXAMPLES_ADC
|
|
|
|
bool "ADC example"
|
|
|
|
default n
|
2012-10-04 14:36:07 -03:00
|
|
|
depends on ADC
|
2012-09-17 15:18:44 -03:00
|
|
|
---help---
|
|
|
|
Enable the ADC example
|
|
|
|
|
|
|
|
if EXAMPLES_ADC
|
2012-10-04 14:36:07 -03: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
|
|
|
|
depends on !NSH_BUILTIN_APPS
|
|
|
|
---help---
|
|
|
|
If NSH_BUILTIN_APPS is defined, then the number of samples is provided
|
|
|
|
on the command line and this value is ignored. Otherwise, this number
|
|
|
|
of samples is collected and the program terminates. Default: 0 (samples
|
|
|
|
are collected indefinitely).
|
|
|
|
|
|
|
|
config EXAMPLES_ADC_GROUPSIZE
|
|
|
|
int "Number of Samples per Group"
|
|
|
|
default 4
|
|
|
|
---help---
|
|
|
|
The number of samples to read at once. Default: 4
|
|
|
|
|
2012-09-17 15:18:44 -03:00
|
|
|
endif
|