📄 global.lst
字号:
C51 COMPILER V7.06 GLOBAL 12/07/2004 08:46:34 PAGE 1
C51 COMPILER V7.06, COMPILATION OF MODULE GLOBAL
OBJECT MODULE PLACED IN global.OBJ
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE global.c DEBUG OBJECTEXTEND
stmt level source
1 /*********************************************************************
2 *文件名称: global.c
3 *文件标识:
4 *摘 要: 定义全局变量,网络底层驱动程序,校验和计算,处理器相关设定
5 *
6 *********************************************************************/
7 /*********************************************************************
8 * 公共变量定义
9 *
10 ********************************************************************/
11 //#include "uart.c"
12 #define GLOBAL_GLOBALS
13 #include "net_cfg.h"
14
15
16 /****************************************************************/
17 uchar Ping_Count; //ping的次数,决定本地回显次数
18 uchar Ping_IP_TTL=0; //ping的主机的物理地址生存时间,单位分钟,为0表示IP地址没有解析
19 uchar Gateway_IP_TTL=0 ; //网关IP地址的物理地址生存时间,单位分钟
20 //=0表示还没有解析,<5分钟时需要更新
21
22 uchar Udp_Count;
23 uchar Msec=0; //10毫秒
24 uchar Sec=0; //秒钟
25 uchar Min=0; //分钟
26 uchar i=0;
27 uchar bnry; //读芯片RAM指针
28 uchar curr; //写芯片RAM指针
29 //uchar Tcp_Drop_Count=0; //用于关闭tcp连接的计数
30 uchar RtTime=20; //重发时间
31 uchar Tcp_Drop_Count=0; //用于关闭tcp连接的计数
32 uint FrameIndex=0; //IP包的序列号
33 uint ComRxdRead=0; //串口接收读指针
34 uint ComTxdRead=0; //串口发送读指针
35 uint ComRxdWrite=0; //串口接收写指针
36 uint ComTxdWrite=0; //串口发送写指针
37
38 bit ComTxdBufempty=0; //串口发送缓冲区数据空的标志
39 bit Tx_Buff_Sel=0; //芯片的发送缓冲区选择
40 bit BiSecond; //两秒时,该标志置1
41 bit Tcp_Timeout=0; //TCP超时标志,定时器0中断中将该标志置位
42 bit TcpConnected=0; //TCP连接建立标志
43
44 uchar code MacID[6]=MY_MAC_ID;//将RTL8019的物理地址存储在程序空间中
45 uchar code HexTable[]={"0123456789ABCDEF"}; //为ascii->hex的转换表
46 xdata uchar Command_Buf[COMMAND_BUFF_SIZE];//命令缓冲区
47 xdata unsigned char IpStr[16];
48 xdata unsigned char PortStr[5];
49 xdata struct Socket_Type TCP1024;
50
51 xdata uchar ComRxdBuf[COM_RXD_BUFF_SIZE]; //串口的接收缓冲区
52 xdata uchar ComTxdBuf[COM_TXD_BUFF_SIZE]; //串口的发送缓冲区
53
54 xdata union Netcard RxdNetBuff; //数据接收缓冲区
55 xdata union Netcard TxdNetBuff; //数据发送缓冲区
C51 COMPILER V7.06 GLOBAL 12/07/2004 08:46:34 PAGE 2
56 xdata union Netcard Resend_Buff;
57
58 xdata union Ethernet_Address_Type My_MAC ; //本机的物理地址
59 xdata union Ethernet_Address_Type Gateway_MAC; //网关的物理地址
60 xdata union Ethernet_Address_Type Ping_MAC; //PING的物理地址
61
62 xdata union Ip_Address_Type My_Ip_Address ; //本机IP地址
63 xdata union Ip_Address_Type Gateway_Ip_Address; //网关IP地址
64 xdata union Ip_Address_Type Mask_Ip_Address; //子网掩码
65 xdata union Ip_Address_Type Ping_Ip_Address; //保存PING命令的目的主机的物理地址
66
67 union u RemotePort;
68 union w CrcTemp;
69 /**********************************************************************
70 **函数原型: void delay_ms(uint ms_number)
71 **入口参数:
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -