Zimin Wang / Mbed 2 deprecated DDRO_Farrari

Dependencies:   mbed-rtos mbed

Fork of DDRO_Farrari by Liangzhen Lai

Revision:
10:95e9932f7990
Parent:
1:6a820a0ca03b
--- a/mmap.h	Tue Feb 11 21:36:52 2014 +0000
+++ b/mmap.h	Tue Feb 25 02:14:41 2014 +0000
@@ -1,9 +1,19 @@
+#ifndef MMAP_H_
+#define MMAP_H_
+
 // SRAM Limits
 #define IMEM_MIN 0x00000000
 #define IMEM_MAX 0x00010000
 #define DMEM_MIN 0x20000000
 #define DMEM_MAX 0x2002C000
 
+// ram buffer for data transmission between mbed and cortex-m3
+// read from IO_TYPE to check whether the request is print or scan request
+#define RAMBUF_BEGIN (0x24000100)
+#define RAMBUF_END (0x2400017C)
+#define RAMBUF_SIZE ((RAMBUF_END - RAMBUF_BEGIN)*4)
+#define IO_TYPE    (0x2400017C)
+
 // Redefine Imem addr from 0x10000000 to 0x00000000
 #define set_imem 0x44000008
 
@@ -258,3 +268,5 @@
 #define dmem_CRE 0x441001f0
 #define dmem_RR 0x441001f4
 #define dmem_RRE 0x441001f8
+
+#endif
\ No newline at end of file