aboutsummaryrefslogtreecommitdiff
path: root/02-usart/include/common.h
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2020-11-16 18:20:32 -0700
committerJosh Rahm <joshuarahm@gmail.com>2020-11-16 18:20:32 -0700
commit9f17335c19a6ae91a450e267b5313148644a7a14 (patch)
treef1ae946ada62148913a8cc10bc985f8de926a4a0 /02-usart/include/common.h
parent4767c73fb2e1f96469fe24a83b443c1774b01d86 (diff)
downloadstm32l4-9f17335c19a6ae91a450e267b5313148644a7a14.tar.gz
stm32l4-9f17335c19a6ae91a450e267b5313148644a7a14.tar.bz2
stm32l4-9f17335c19a6ae91a450e267b5313148644a7a14.zip
Add DMA header file which defines the DMA registers and add
testing_harness with fake environment to allow testing on x86 development machines.
Diffstat (limited to '02-usart/include/common.h')
-rw-r--r--02-usart/include/common.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/02-usart/include/common.h b/02-usart/include/common.h
index 9d5c7cd..01b6a47 100644
--- a/02-usart/include/common.h
+++ b/02-usart/include/common.h
@@ -2,6 +2,12 @@
#define COMMON__H
#include <stdint.h>
+#include <stddef.h>
+#include <assert.h>
+
+#ifndef static_assert
+#define static_assert(a, b)
+#endif
/* Define __IO to be volatile if it's not already. */
#ifndef __IO