summaryrefslogtreecommitdiff
path: root/controller/fw/src/sr_global.h
diff options
context:
space:
mode:
authorjaseg <git-bigdata-wsl-arch@jaseg.de>2020-03-11 13:57:22 +0100
committerjaseg <git-bigdata-wsl-arch@jaseg.de>2020-03-11 13:57:22 +0100
commit0af1a534e2930da77ebbab6481adcd17069581ef (patch)
tree6b8c1399fbf69d75c296f2b5060549e63553fa75 /controller/fw/src/sr_global.h
parent0cd07d397fb5a5e7710af66cb1e9e0b61705c94a (diff)
downloadmaster-thesis-0af1a534e2930da77ebbab6481adcd17069581ef.tar.gz
master-thesis-0af1a534e2930da77ebbab6481adcd17069581ef.tar.bz2
master-thesis-0af1a534e2930da77ebbab6481adcd17069581ef.zip
Start with integration of everything
Diffstat (limited to 'controller/fw/src/sr_global.h')
-rw-r--r--controller/fw/src/sr_global.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/controller/fw/src/sr_global.h b/controller/fw/src/sr_global.h
index abbad93..ac77359 100644
--- a/controller/fw/src/sr_global.h
+++ b/controller/fw/src/sr_global.h
@@ -1,9 +1,19 @@
#ifndef __SR_GLOBAL_H__
#define __SR_GLOBAL_H__
+#include <stdint.h>
+
#define UNUSED(x) ((void) x)
#define ARRAY_LENGTH(x) (sizeof(x) / sizeof(x[0]))
+#define unused_a __attribute__((unused))
+
static inline uint16_t htole(uint16_t val) { return val; }
+void __libc_init_array(void);
+
+static inline void panic(void) {
+ asm volatile ("bkpt");
+}
+
#endif /* __SR_GLOBAL_H__ */