📄 common.h
字号:
#ifndef _COMMON_H_
#define _COMMON_H_
#if 0
#include "reg51.h"
#include< intrins.h>
typedef unsigned char uchar;
typedef unsigned char uChar;
typedef unsigned int ushort;
typedef unsigned short uInt2;
typedef unsigned long uInt4;
typedef unsigned char BYTE;
typedef uChar BOOL;
#define FALSE 0
#define TRUE 1
#define OpenInt0AndCloseSerial() ES=0; EX0=1
#define CloseInt0AndOpenSerial() EX0=0; ES=1
#define EnterCrucial() EA=0
#define ExitCrucial() EA=1
sfr CHPENT = 0xf6; //for winbond chip
sfr CHPCON = 0xbf;
typedef struct GpsInfo_Tag
{
uChar Item;
uInt4 Longitude;
uInt4 Latitude;
}GpsInfo;
#define Nec_Null 0
#define Nec_Head 1
#define Nec_FacDat 2
/*
sbit CLK = P3^2;
sbit DAT = P1^7;
sbit GUEST = P1^2;
sbit VFD_CLK = P1^3;
sbit VFD_DAT = P1^4;
sbit VFD_STB = P1^5;
*/
#define _Key_0 18
#define _Key_1 9
#define _Key_2 29
#define _Key_3 31
#define _Key_4 13
#define _Key_5 25
#define _Key_6 27
#define _Key_7 17
#define _Key_8 21
#define _Key_9 23
#endif
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -