www.pudn.com > modbus51_c.rar > main.h, change:2005-03-16,size:485b


#include "reg52.h" 
 
typedef unsigned char	uint8; 
typedef unsigned int	uint16; 
typedef unsigned long	uint32; 
 
 
sbit	bRunLED			=	P3^4;	//运行指示灯 
sbit	bWatchDog		=	P1^7;	//看门狗复位 
sbit	b485Send		= 	P1^3;	//75LBC184 发送接收控制 
	 
#define TIMER_HIGHT	0xf8 
#define TIMER_LOW	0xcd 
  
 
extern uint8	idata sendBuf[16],receBuf[16]; 
extern uint8	idata checkoutError;	// ==2 偶校验错  
extern uint8	idata receTimeOut; 
extern uint32 	dwTickCount; 
 
 
#include "modbus.h"