Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
uart1.h
00001 00002 #define SEND_DATA_NUM 14 00003 #define RECEIVE_DATA_NUM 18 00004 00005 #define KEYCODE 120 00006 #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]) 00007 #define KEYCODE2 35 00008 #define CHECKCODE2 (RecData[DATA1] ^ RecData[DATA2] ^ RecData[DATA3] ^ RecData[DATA4] ^ RecData[DISTANCE1] ^ RecData[DISTANCE1_2] ^ RecData[DISTANCE2] ^ RecData[DISTANCE2_2] ^ RecData[DISTANCE3] ^ RecData[DISTANCE3_2] ^ RecData[DISTANCE4] ^ RecData[DISTANCE4_2] ^ RecData[DISTANCE5] ^ RecData[DISTANCE5_2] ^ RecData[DISTANCE6] ^ RecData[DISTANCE6_2]) 00009 00010 00011 enum{ 00012 KEY = 0, 00013 DIRECTIONN, 00014 DISTANCE, 00015 SONIC1_1, 00016 SONIC1_2, 00017 SONIC2_1, 00018 SONIC2_2, 00019 SONIC3_1, 00020 SONIC3_2, 00021 SONIC4_1, 00022 SONIC4_2, 00023 IR_FOUND, 00024 XBEE, 00025 CHECK, 00026 }; 00027 00028 enum{ 00029 KEY2 = 0, 00030 DATA1, 00031 DATA2, 00032 DATA3, 00033 DATA4, 00034 DISTANCE1, 00035 DISTANCE1_2, 00036 DISTANCE2, 00037 DISTANCE2_2, 00038 DISTANCE3, 00039 DISTANCE3_2, 00040 DISTANCE4, 00041 DISTANCE4_2, 00042 DISTANCE5, 00043 DISTANCE5_2, 00044 DISTANCE6, 00045 DISTANCE6_2, 00046 CHECK2, 00047 };
Generated on Wed Jul 20 2022 05:51:04 by
1.7.2