common.h
来自「采用IAR在线调试ADI基于ARM7内核的ADUC7026的RAM_CODE」· C头文件 代码 · 共 49 行
H
49 行
// 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 + =
减小字号Ctrl + -
显示快捷键?