ryo seki
/
serialSend5
a
uart1.h
- Committer:
- akudohune
- Date:
- 2013-04-19
- Revision:
- 0:62ac378df546
- Child:
- 1:ed00e9c4ba6e
File content as of revision 0:62ac378df546:
#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, };