ryo seki
/
serialSend5
a
Diff: uart1.h
- Revision:
- 1:ed00e9c4ba6e
- Parent:
- 0:62ac378df546
--- a/uart1.h Fri Apr 19 09:14:08 2013 +0000 +++ b/uart1.h Tue Apr 30 09:06:57 2013 +0000 @@ -1,9 +1,9 @@ -#define SEND_DATA_NUM 13 +#define SEND_DATA_NUM 14 #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 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[IR_FOUND] ^ SendData0[XBEE]) #define KEYCODE2 35 #define CHECKCODE2 (RecData[DATA1] ^ RecData[DATA2] ^ RecData[DATA3] ^ RecData[DATA4]) @@ -20,6 +20,7 @@ SONIC3_2, SONIC4_1, SONIC4_2, + IR_FOUND, XBEE, CHECK, };