www.pudn.com > stm32-gprs.rar > GPRS.H, change:2012-05-31,size:781b


#include <sys.h>  
//#include <intrins.h> 
#include <stdio.h> 
#include <string.h> 
#include "rtc.h" 
#define uchar u8 
#define bit u8 
 
#define no_reset 1	//定义错误 
#define no_close 3 
#define no_ate 2 
#define no_apn 4 
#define no_tcpip 5 
#define no_dns 6 
#define no_web 7 
#define no_send 8 
 
#define LED PBout(5) 
#define GPRS_RESET PBout(5) 
#define BELL PBout(5) 
//sbit LED = P3^3; 
//sbit GPRS_RESET=P3^4; 
//sbit  BELL=P4^2; 
 
extern volatile vu16 TimingDelay; //该变量应每MS减一 
extern volatile vs32 TimingDelayGprs; //该变量应每MS减一 
extern char gprsbuf[0x3ff]; 
extern char ipbuf[20]; 
extern uchar *projectname; 
extern uchar projectID; 
extern uchar cellars; 
extern uchar cellar_count; 
extern uchar yy,mo,dd,hh,mm,ss; 
extern u16 sensorbuf[12],e_temp;