Description: This example shows control of the SPI slave, how to configure and transfer data with SPI slave. By default, example runs in SPI slave mode, waiting for SPI slave & DBGU input. The code can be roughly broken down as follows:
- 's' will start SPI transfer test
- Configure SPI as master, setup SPI clock.
- Setup SPI clock for slave.