a

Dependencies:   TextLCD mbed

uart1.h

Committer:
akudohune
Date:
2013-04-30
Revision:
1:ed00e9c4ba6e
Parent:
0:62ac378df546

File content as of revision 1:ed00e9c4ba6e:


#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[IR_FOUND] ^ 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,
    IR_FOUND,
    XBEE,
    CHECK,
};

enum{
    KEY2 = 0,
    DATA1,
    DATA2,
    DATA3,
    DATA4,
    CHECK2,
};