📄 common.h
字号:
// common.h
/********************************************************************/
/* */
/* user macro */
/* */
/********************************************************************/
/*------------ Debug configuration ------------
DEBUG=0: ADuC7020 sfp board
DEBUG=1: ADuC7020 eval board
DEBUG=2: ADuC7024 eval board
----------------------------------------------*/
#define DEBUG 1 // 0 to 2
#define TRUE 1
#define FALSE 0
#define HIGH 1
#define LOW 0
/********************************************************************/
/* */
/* user type */
/* */
/********************************************************************/
typedef unsigned char BYTE; //8-bit
typedef unsigned short int HALFWORD; //16-bit
typedef unsigned int WORD; //32-bit
/********************************************************************/
/* */
/* global variables */
/* */
/********************************************************************/
extern unsigned char A0h[];
extern unsigned char A2h[];
extern unsigned char i2c_first;
extern unsigned char i2c_receive;
extern BYTE int_count;
/********************************************************************/
/* */
/* function prototype */
/* */
/********************************************************************/
void delay(int);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -