nuttx-apps/examples/spislv_test/Kconfig
Felipe Moura f517b66d60 examples/spislv_test: Added app that allows users to test SPI Slave comm
This application continuously reads the file system of the spislv. Each received message will be written to the user in hexadecimal form, and the same received data will be sent back. In this way, the user can test if their spislv driver and hardware setup are working properly before proceeding further.

On a master device, using the SPI tool, when sending the message: spi exch -x 4 deadbeef

The slave device will output:
Slave: 4 Bytes read
 Value in hex form from /dev/spislv2: de ad be ef
Slave: Writing value back to /dev/spislv2
2024-10-22 18:41:12 +02:00

30 lines
728 B
Text

#
# For a description of the syntax of this configuration file,
# see the file kconfig-language.txt in the NuttX tools repository.
#
config EXAMPLES_SPISLV
tristate "\"SPI Slave Test\" example"
default n
---help---
Enable the "SPI Slave Test" example.
This tool can be used together with the SPI tool to validate communication between two devices.
if EXAMPLES_SPISLV
config EXAMPLES_SPISLV_PROGNAME
string "Program name"
default "spislv"
---help---
This is the name of the program that will be used when the NSH ELF
program is installed.
config EXAMPLES_SPISLV_PRIORITY
int "Spislv task priority"
default 100
config EXAMPLES_SPISLV_STACKSIZE
int "Spislv stack size"
default DEFAULT_TASK_STACKSIZE
endif