The SPI Slave Example demonstrates the use of the SPIS peripheral. It uses the SPIS driver - legacy layer.
In the main loop, the application prepares the SPIS for a transfer and waits until the transfer is completed. Every time a transfer is completed, the LED is toggled.
You can find the source code and the project file of the example in the following folder: <InstallFolder>\examples\peripheral\spis
Hardware configuration:
The default pin assignments for the SCLK, MOSI, and MISO lines can be found in sdk_config.h
. The default pin assignment for the CS pin can be found in main.c
.
Test the SPI Slave Example application by performing the following steps: