summaryrefslogtreecommitdiff
path: root/types.h
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2012-04-01 00:20:25 +0200
committerDavid Lamparter <equinox@diac24.net>2012-04-01 00:20:25 +0200
commit75a61c57fb0402f777bfa828dd71818a97ed54a4 (patch)
treedaa218546b1b744a28cbed9c05e8e405af2caf38 /types.h
parent6061b632e87645e79c17b7de8a927836300afb4f (diff)
original dcf77 C code
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