summaryrefslogtreecommitdiff
path: root/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'types.h')
-rw-r--r--types.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/types.h b/types.h
new file mode 100644
index 0000000..a18a03b
--- /dev/null
+++ b/types.h
@@ -0,0 +1,23 @@
+#include<pgmspace.h>
+
+typedef unsigned char u8;
+typedef signed char s8;
+typedef unsigned short u16;
+typedef signed short s16;
+typedef unsigned long u32;
+typedef signed long s32;
+
+#define uchar unsigned char
+#define uint unsigned int
+
+
+// 8051 compatibility:
+
+#define code PROGMEM
+#define LPM(i) (__LPM_classic__(i))
+#define data
+#define idata
+#define pdata
+#define xdata
+
+#define bit uchar