2014-04-22 16:40:48 +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.
|
2014-04-22 16:40:48 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
config EXAMPLES_SERIALRX
|
2015-11-24 20:48:44 +01:00
|
|
|
bool "Serial RX example"
|
2014-04-22 16:40:48 +02:00
|
|
|
default n
|
|
|
|
---help---
|
2014-04-22 16:41:15 +02:00
|
|
|
Enable the serial RX example
|
2014-04-22 16:40:48 +02:00
|
|
|
|
|
|
|
if EXAMPLES_SERIALRX
|
2014-04-22 18:38:08 +02:00
|
|
|
|
|
|
|
config EXAMPLES_SERIALRX_STACKSIZE
|
2015-11-24 20:48:44 +01:00
|
|
|
int "Serial RX stack size"
|
2014-04-22 18:38:08 +02:00
|
|
|
default 2048
|
|
|
|
|
|
|
|
config EXAMPLES_SERIALRX_PRIORITY
|
2015-11-24 20:48:44 +01:00
|
|
|
int "Serial RX task priority"
|
2014-04-22 18:38:08 +02:00
|
|
|
default 50
|
|
|
|
|
2015-11-24 20:48:44 +01:00
|
|
|
config EXAMPLES_SERIALRX_BUFFERED
|
|
|
|
bool "Buffered I/O"
|
|
|
|
default y
|
|
|
|
---help---
|
|
|
|
Use buffered I/O
|
|
|
|
|
|
|
|
config EXAMPLES_SERIALRX_BUFSIZE
|
|
|
|
int "Buffer size"
|
|
|
|
default 11520
|
|
|
|
---help---
|
|
|
|
Specifies the default buffer size
|
|
|
|
|
|
|
|
config EXAMPLES_SERIALRX_DEVPATH
|
|
|
|
string "Serial device path"
|
|
|
|
default "/dev/ttyS0"
|
|
|
|
---help---
|
|
|
|
The default path to the serial device
|
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "Output method"
|
|
|
|
default EXAMPLES_SERIALRX_PRINTHYPHEN
|
|
|
|
|
|
|
|
config EXAMPLES_SERIALRX_PRINTHYPHEN
|
|
|
|
bool "Hyphen"
|
|
|
|
---help---
|
|
|
|
Print a hyphen after receiving a full buffer
|
|
|
|
|
|
|
|
config EXAMPLES_SERIALRX_PRINTHEX
|
|
|
|
bool "Hexadecimal"
|
|
|
|
---help---
|
|
|
|
Print the bytes received in hexadecimal
|
|
|
|
|
|
|
|
config EXAMPLES_SERIALRX_PRINTSTR
|
|
|
|
bool "String"
|
|
|
|
---help---
|
|
|
|
Print the bytes received as a string
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
2014-04-22 16:40:48 +02:00
|
|
|
endif
|