From a922e19f41e25a4b9c77e95c6b5d736609dfb9f5 Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Sat, 21 Nov 2020 23:09:31 -0700 Subject: Add the spi headers that define the SPI structure. --- 02-usart/tests/test_spi.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 02-usart/tests/test_spi.c (limited to '02-usart/tests/test_spi.c') diff --git a/02-usart/tests/test_spi.c b/02-usart/tests/test_spi.c new file mode 100644 index 0000000..d6cc24e --- /dev/null +++ b/02-usart/tests/test_spi.c @@ -0,0 +1,11 @@ +#include "test_harness.h" + +#include "core/spi.h" + +TEST(spi, smoke) +{ + __IO spi_t* spi = &SPI1; + spi->s_r = 1; + + return 0; +} -- cgit