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
|
2018-09-03 17:29:56 +02:00
|
|
|
tristate "Quadrature encoder example"
|
2012-04-13 04:14:09 +02:00
|
|
|
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
|
|
|
|
---help---
|
2019-10-07 10:37:56 +02:00
|
|
|
This number of samples is collected and the program
|
2016-01-19 19:33:22 +01:00
|
|
|
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.
|
|
|
|
|
2021-08-10 10:21:49 +02:00
|
|
|
config EXAMPLES_QENCODER_HAVE_MAXPOS
|
|
|
|
bool "Enable the maximum encoder position"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config EXAMPLES_QENCODER_MAXPOS
|
|
|
|
int "Maximum encoder position"
|
|
|
|
default 0
|
|
|
|
depends on EXAMPLES_QENCODER_HAVE_MAXPOS
|
|
|
|
|
2012-04-13 04:14:09 +02:00
|
|
|
endif
|