summaryrefslogtreecommitdiff
path: root/prototype/fw/include
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2020-11-24 19:00:18 +0100
committerjaseg <git@jaseg.de>2020-11-24 19:00:18 +0100
commit0bfd7efaf4256e4c2821f8796781f0d81ad08251 (patch)
treeb9c1e08032ff7b31a70cddc35ed59137db43cc9e /prototype/fw/include
parent7ab2d94564fdb723eefca576f8043a770f22e1f7 (diff)
downloadihsm-0bfd7efaf4256e4c2821f8796781f0d81ad08251.tar.gz
ihsm-0bfd7efaf4256e4c2821f8796781f0d81ad08251.tar.bz2
ihsm-0bfd7efaf4256e4c2821f8796781f0d81ad08251.zip
Add prototype rotor firmware skeleton
Diffstat (limited to 'prototype/fw/include')
-rw-r--r--prototype/fw/include/global.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/prototype/fw/include/global.h b/prototype/fw/include/global.h
new file mode 100644
index 0000000..138cbc9
--- /dev/null
+++ b/prototype/fw/include/global.h
@@ -0,0 +1,15 @@
+
+#ifndef __GLOBAL_H__
+#define __GLOBAL_H__
+
+#include <stdbool.h>
+#include <stdint.h>
+#include <assert.h>
+#include <string.h>
+
+/* The IRQ header must be included before stm32_device.h since ST defines a bunch of messy macros there. */
+#include <generated/stm32_irqs.h> /* Header generated from stm32***_startup.s in Makefile */
+
+#include <generated/stm32_device.h>
+
+#endif /* __GLOBAL_H__ */