aboutsummaryrefslogtreecommitdiff
path: root/02-usart/tests/test_spi.c
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2020-11-21 23:09:31 -0700
committerJosh Rahm <joshuarahm@gmail.com>2020-11-21 23:09:31 -0700
commita922e19f41e25a4b9c77e95c6b5d736609dfb9f5 (patch)
treebf7e537a001b5ac91d94ab2c0ea870efd3551d99 /02-usart/tests/test_spi.c
parent822c68c74ebc3ac3694f87d516f1e91f2ce1d0fe (diff)
downloadstm32l4-a922e19f41e25a4b9c77e95c6b5d736609dfb9f5.tar.gz
stm32l4-a922e19f41e25a4b9c77e95c6b5d736609dfb9f5.tar.bz2
stm32l4-a922e19f41e25a4b9c77e95c6b5d736609dfb9f5.zip
Add the spi headers that define the SPI structure.
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;
+}