+#include "lpc2xxx.h"
+
+#define OSC_CLOCK 10000000
+#define BAUDRATE 9600
+#define P_DIV 4
+#define P_CLOCK (OSC_CLOCK/P_DIV)
+
+typedef unsigned char u8;
+typedef unsigned int u32;
+
+
+/* memory mapping */
+
+#define MMAP_BL 0x00
+#define MMAP_RAM 0x02
+#define MMAP_EXT 0x03
+
+void mmap_init(u8 memtype) {
+
+ MEMMAP=memtype;
+}
+