ryo seki
/
serialSend5
a
uart1.h@0:62ac378df546, 2013-04-19 (annotated)
- Committer:
- akudohune
- Date:
- Fri Apr 19 09:14:08 2013 +0000
- Revision:
- 0:62ac378df546
- Child:
- 1:ed00e9c4ba6e
a
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
akudohune | 0:62ac378df546 | 1 | |
akudohune | 0:62ac378df546 | 2 | #define SEND_DATA_NUM 13 |
akudohune | 0:62ac378df546 | 3 | #define RECEIVE_DATA_NUM 6 |
akudohune | 0:62ac378df546 | 4 | |
akudohune | 0:62ac378df546 | 5 | #define KEYCODE 120 |
akudohune | 0:62ac378df546 | 6 | #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]) |
akudohune | 0:62ac378df546 | 7 | #define KEYCODE2 35 |
akudohune | 0:62ac378df546 | 8 | #define CHECKCODE2 (RecData[DATA1] ^ RecData[DATA2] ^ RecData[DATA3] ^ RecData[DATA4]) |
akudohune | 0:62ac378df546 | 9 | |
akudohune | 0:62ac378df546 | 10 | |
akudohune | 0:62ac378df546 | 11 | enum{ |
akudohune | 0:62ac378df546 | 12 | KEY = 0, |
akudohune | 0:62ac378df546 | 13 | DIRECTIONN, |
akudohune | 0:62ac378df546 | 14 | DISTANCE, |
akudohune | 0:62ac378df546 | 15 | SONIC1_1, |
akudohune | 0:62ac378df546 | 16 | SONIC1_2, |
akudohune | 0:62ac378df546 | 17 | SONIC2_1, |
akudohune | 0:62ac378df546 | 18 | SONIC2_2, |
akudohune | 0:62ac378df546 | 19 | SONIC3_1, |
akudohune | 0:62ac378df546 | 20 | SONIC3_2, |
akudohune | 0:62ac378df546 | 21 | SONIC4_1, |
akudohune | 0:62ac378df546 | 22 | SONIC4_2, |
akudohune | 0:62ac378df546 | 23 | XBEE, |
akudohune | 0:62ac378df546 | 24 | CHECK, |
akudohune | 0:62ac378df546 | 25 | }; |
akudohune | 0:62ac378df546 | 26 | |
akudohune | 0:62ac378df546 | 27 | enum{ |
akudohune | 0:62ac378df546 | 28 | KEY2 = 0, |
akudohune | 0:62ac378df546 | 29 | DATA1, |
akudohune | 0:62ac378df546 | 30 | DATA2, |
akudohune | 0:62ac378df546 | 31 | DATA3, |
akudohune | 0:62ac378df546 | 32 | DATA4, |
akudohune | 0:62ac378df546 | 33 | CHECK2, |
akudohune | 0:62ac378df546 | 34 | }; |