driver

Dependencies:   HMC6352 PID mbed

Fork of ver3_1_0 by ryo seki

uart1.h

Committer:
akudohune
Date:
2013-06-19
Revision:
0:bde8ed56b164

File content as of revision 0:bde8ed56b164:




#define RECEIVE_DATA_NUM    14
#define SEND_DATA_NUM       18

#define KEYCODE             120
#define CHECKCODE           (RecData[DIRECTION] ^ RecData[DISTANCE] ^ RecData[SONIC1_1] ^ RecData[SONIC1_2] ^ RecData[SONIC2_1] ^ RecData[SONIC2_2] ^ RecData[SONIC3_1] ^ RecData[SONIC3_2] ^ RecData[SONIC4_1] ^ RecData[SONIC4_2] ^ RecData[IR_FOUND] ^ RecData[XBEE])
#define KEYCODE2            35
#define CHECKCODE2          (SendData[DATA1] ^ SendData[DATA2] ^ SendData[DATA3] ^ SendData[DATA4] ^ SendData[DISTANCE1] ^ SendData[DISTANCE1_2] ^ SendData[DISTANCE2] ^ SendData[DISTANCE2_2] ^ SendData[DISTANCE3] ^ SendData[DISTANCE3_2] ^ SendData[DISTANCE4] ^  SendData[DISTANCE4_2] ^ SendData[DISTANCE5] ^ SendData[DISTANCE5_2] ^ SendData[DISTANCE6] ^ SendData[DISTANCE6_2])


enum{
    KEY = 0,
    DIRECTION,
    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,
    DISTANCE1,
    DISTANCE1_2,
    DISTANCE2,
    DISTANCE2_2,
    DISTANCE3,
    DISTANCE3_2,
    DISTANCE4,
    DISTANCE4_2,
    DISTANCE5,
    DISTANCE5_2,
    DISTANCE6,
    DISTANCE6_2,
    CHECK2,
};