优化代码逻辑
This commit is contained in:
		| @@ -7,8 +7,15 @@ | ||||
| typedef unsigned int u16; | ||||
| typedef unsigned char u8; | ||||
|  | ||||
| // 用于自动重启的变量 | ||||
| __sfr __at (0xE7) ISP_CONTR; | ||||
| #define RESET_PASSWORD_LENGTH 6 | ||||
| extern char __xdata reset_password[RESET_PASSWORD_LENGTH]; | ||||
| extern char __xdata receice_password[RESET_PASSWORD_LENGTH]; | ||||
|  | ||||
|  | ||||
| void delay_10us(u16 ten_us); | ||||
| void delay_ms(u16 ms); | ||||
| u8 auto_reset(u8 rec_data); | ||||
|  | ||||
| #endif | ||||
|   | ||||
		Reference in New Issue
	
	Block a user