aboutsummaryrefslogtreecommitdiff
path: root/system-clock/common.h
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2018-01-15 13:51:38 -0700
committerJosh Rahm <joshuarahm@gmail.com>2018-01-15 13:51:38 -0700
commitc861c7cd70959f9d6154d1b5541cc5cd57f030ba (patch)
treee26281e90e136e62e48b1206ef858f2db3430538 /system-clock/common.h
downloadstm32l4-c861c7cd70959f9d6154d1b5541cc5cd57f030ba.tar.gz
stm32l4-c861c7cd70959f9d6154d1b5541cc5cd57f030ba.tar.bz2
stm32l4-c861c7cd70959f9d6154d1b5541cc5cd57f030ba.zip
Added system-clock files including the genmake script.
Diffstat (limited to 'system-clock/common.h')
-rw-r--r--system-clock/common.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/system-clock/common.h b/system-clock/common.h
new file mode 100644
index 0000000..f58f179
--- /dev/null
+++ b/system-clock/common.h
@@ -0,0 +1,13 @@
+#ifndef COMMON__H
+#define COMMON__H
+
+/* Define __IO to be volatile if it's not already. */
+#ifndef __IO
+#define __IO volatile
+#endif
+
+#define bool int
+
+#define PACKED __attribute__((packed))
+
+#endif /* COMMON_H */