1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/drivers/soft_spi
Hugues Larrive 3c465836f2 examples and tests: add atmega8 to relevent Makefile.ci
using dist/tools/insufficient_memory/add_insufficient_memory_board.sh
2023-07-11 21:22:02 +02:00
..
app.config.test tests/drivers: move all driver tests into own folder 2023-05-04 12:45:07 +02:00
main.c tests/drivers: move all driver tests into own folder 2023-05-04 12:45:07 +02:00
Makefile tests/drivers: move all driver tests into own folder 2023-05-04 12:45:07 +02:00
Makefile.ci examples and tests: add atmega8 to relevent Makefile.ci 2023-07-11 21:22:02 +02:00
README.md tests/drivers: move all driver tests into own folder 2023-05-04 12:45:07 +02: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