nuttx-apps/examples/qencoder/Kconfig
Xiang Xiao 31a7b99f9c apps.: Remove the inappropriate NSH_BUILTIN_APPS coupling
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
2019-10-07 02:37:56 -06:00

37 lines
940 B
Plaintext

#
# For a description of the syntax of this configuration file,
# see the file kconfig-language.txt in the NuttX tools repository.
#
config EXAMPLES_QENCODER
tristate "Quadrature encoder example"
default n
depends on SENSORS_QENCODER
---help---
Enable the quadrature encoder example
if EXAMPLES_QENCODER
config EXAMPLES_QENCODER_DEVPATH
string "QE device path"
default "/dev/qe0"
---help---
The default path to the QE device
config EXAMPLES_QENCODER_NSAMPLES
int "Number of samples"
default 0
---help---
This number of samples is collected and the program
terminates. If the value is 0, samples are collected indefinitely.
config EXAMPLES_QENCODER_DELAY
int "Delay between samples"
default 100
---help---
This value provides the delay (in milliseconds) between each sample.
If CONFIG_NSH_BUILTIN_APPS is defined, then this value is the default
delay if no other delay is provided on the command line.
endif