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_QENCODER
|
|
|
|
bool "Quadrature encoder example"
|
|
|
|
default n
|
2017-09-24 22:53:27 +02:00
|
|
|
depends on SENSORS_QENCODER
|
2012-04-13 04:14:09 +02:00
|
|
|
---help---
|
|
|
|
Enable the quadrature encoder example
|
|
|
|
|
|
|
|
if EXAMPLES_QENCODER
|
2016-01-19 19:33:22 +01:00
|
|
|
|
|
|
|
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
|
|
|
|
depends on !NSH_BUILTIN_APPS
|
|
|
|
---help---
|
|
|
|
If CONFIG_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. 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.
|
|
|
|
|
2012-04-13 04:14:09 +02:00
|
|
|
endif
|