aboutsummaryrefslogtreecommitdiff
path: root/02-usart/tests/test_spi.c
diff options
context:
space:
mode:
Diffstat (limited to '02-usart/tests/test_spi.c')
-rw-r--r--02-usart/tests/test_spi.c11
1 files changed, 11 insertions, 0 deletions
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;
+}