31a7b99f9c
1. Check NSH_NETINIT for self network initialization 2. Check NSH_ARCHINIT for sel arch specific initialization 3. Always show help regardless of NSH_BUILTIN_APPS 4. Loop forever regardless of NSH_BUILTIN_APPS, user could: a.change the default behavior by the command line argument b.or ctrl+c to break out the loop
46 lines
1.2 KiB
Plaintext
46 lines
1.2 KiB
Plaintext
#
|
|
# For a description of the syntax of this configuration file,
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
|
#
|
|
|
|
config EXAMPLES_ADC
|
|
tristate "ADC example"
|
|
default n
|
|
depends on ADC && LIB_BOARDCTL
|
|
---help---
|
|
Enable the ADC example
|
|
|
|
if EXAMPLES_ADC
|
|
|
|
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---
|
|
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
|
|
|
|
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.
|
|
|
|
endif
|