def.h
来自「win2000下」· C头文件 代码 · 共 37 行
H
37 行
//Def.h
//定义一些变量
#define COM_NUM 4 //驱动对应的串口个数
#define REC_INDEX 0 //接收
#define SEND_INDEX 1 //发送
#define FIFOSIZE 0x800
#define BUFBASE_P0T 0x0000
#define BUFBASE_P1T 0x1000
#define BUFBASE_P2T 0x2000
#define BUFBASE_P3T 0x3000
#define BUFBASE_P0R 0x0800
#define BUFBASE_P1R 0x1800
#define BUFBASE_P2R 0x2800
#define BUFBASE_P3R 0x3800
#define NUMBASE_0T 0x4000
#define NUMBASE_1T 0x4004
#define NUMBASE_2T 0x4008
#define NUMBASE_3T 0x400C
#define NUMBASE_0R 0x4002
#define NUMBASE_1R 0x4006
#define NUMBASE_2R 0x400A
#define NUMBASE_3R 0x400E
#define COMBASE_PORT0 0x6000
#define COMBASE_PORT1 0x6008
#define COMBASE_PORT2 0x6010
#define COMBASE_PORT3 0x6018
#define RESET_BASE 0xFFFF
#define COM_HAVE_IRQ 2//使用中断接收数据的串口号
#define INTERVAL_DPCFORREC 50 //DpcForRec 调用周期 (ms)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?