1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/driver_soft_spi
2021-01-21 11:24:31 +01:00
..
app.config.test tests/driver_s*: add Kconfig configuration files 2021-01-21 11:24:31 +01:00
main.c driver/soft_spi: initial implementation 2017-11-13 10:11:06 +01:00
Makefile tests: remove redundant APPLICATION defines 2017-12-01 11:03:39 +01:00
README.md driver/soft_spi: initial implementation 2017-11-13 10:11:06 +01:00

Expected result

The test code transmits one byte with each SPI mode and a string over the software SPI MOSI line. This can be verified with a Logic Analyzer connected to the corresponding pins. When you see 0xa5 in all four SPI modes and the string "Soft SPI Test String" in SPI mode 0 being transmitted via the CLK and MOSI pin, the test is successful.

Notes

  • Because the module does not cover MISO inputs, neither does the test.
  • The definition of SOFT SPI devices is done via the CFLAGS in the Makefile