a

Dependencies:   TextLCD mbed

Revision:
0:62ac378df546
Child:
1:ed00e9c4ba6e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/uart1.h	Fri Apr 19 09:14:08 2013 +0000
@@ -0,0 +1,34 @@
+
+#define SEND_DATA_NUM       13
+#define RECEIVE_DATA_NUM    6
+
+#define KEYCODE             120
+#define CHECKCODE           (SendData0[DIRECTIONN] ^ SendData0[DISTANCE] ^ SendData0[SONIC1_1] ^ SendData0[SONIC1_2] ^ SendData0[SONIC2_1] ^ SendData0[SONIC2_2] ^ SendData0[SONIC3_1] ^ SendData0[SONIC3_2] ^ SendData0[SONIC4_1] ^ SendData0[SONIC4_2] ^ SendData0[XBEE])
+#define KEYCODE2            35
+#define CHECKCODE2          (RecData[DATA1] ^ RecData[DATA2] ^ RecData[DATA3] ^ RecData[DATA4])
+
+
+enum{
+    KEY = 0,
+    DIRECTIONN,
+    DISTANCE,
+    SONIC1_1,
+    SONIC1_2,
+    SONIC2_1,
+    SONIC2_2,
+    SONIC3_1,
+    SONIC3_2,
+    SONIC4_1,
+    SONIC4_2,
+    XBEE,
+    CHECK,
+};
+
+enum{
+    KEY2 = 0,
+    DATA1,
+    DATA2,
+    DATA3,
+    DATA4,
+    CHECK2,
+};