final cup
Dependencies: HMC6352 PID mbed
uart1.h
00001 00002 00003 00004 #define RECEIVE_DATA_NUM 14 00005 #define SEND_DATA_NUM 6 00006 00007 #define KEYCODE 120 00008 #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]) 00009 #define KEYCODE2 35 00010 #define CHECKCODE2 (SendData[DATA1] ^ SendData[DATA2] ^ SendData[DATA3] ^ SendData[DATA4]) 00011 00012 00013 enum{ 00014 KEY = 0, 00015 DIRECTION, 00016 DISTANCE, 00017 SONIC1_1, 00018 SONIC1_2, 00019 SONIC2_1, 00020 SONIC2_2, 00021 SONIC3_1, 00022 SONIC3_2, 00023 SONIC4_1, 00024 SONIC4_2, 00025 IR_FOUND, 00026 XBEE, 00027 CHECK, 00028 }; 00029 enum{ 00030 KEY2 = 0, 00031 DATA1, 00032 DATA2, 00033 DATA3, 00034 DATA4, 00035 CHECK2, 00036 };
Generated on Sat Jul 16 2022 02:12:24 by 1.7.2