mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-04 05:39:05 +00:00
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
30 lines
728 B
Text
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
|