summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/target/firmware/include/endian.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/target/firmware/include/endian.h b/src/target/firmware/include/endian.h
new file mode 100644
index 00000000..3abcb327
--- /dev/null
+++ b/src/target/firmware/include/endian.h
@@ -0,0 +1,12 @@
+#ifndef __ENDIAN_H
+#define __ENDIAN_H
+
+#include <sys/cdefs.h>
+#include <sys/_types.h>
+#include <machine/_endian.h>
+
+#define __BYTE_ORDER __LITTLE_ENDIaN
+#define _QUAD_HIGHWORD 1
+#define _QUAD_LOWWORD 0
+
+#endif /* __ENDIAN_H__ */