📄 mn_vars.lst
字号:
C51 COMPILER V8.08 MN_VARS 04/24/2008 18:17:35 PAGE 1
C51 COMPILER V8.08, COMPILATION OF MODULE MN_VARS
OBJECT MODULE PLACED IN mn_vars.OBJ
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE mn_vars.c LARGE BROWSE DEBUG OBJECTEXTEND
line level source
1 //-----------------------------------------------------------------------------
2 // mn_vars.c
3 //-----------------------------------------------------------------------------
4 // Copyright 2005 Silicon Laboratories, Inc.
5 //
6 // Description:
7 // This file contains variables used by the TCP/IP Stack.
8 //
9 // Generated by TCP/IP Library Builder Version 3.0.
10 //
11
12 #include "mn_defs.h"
13 #include "mn_userconst.h"
14
15 //-----------------------------------------------------------------------------
16 // IP Address Setup
17 //-----------------------------------------------------------------------------
18 //
19 // Change the ip_src_addr below to select the IP address of
20 // your target. If the IP address of the destination is known
21 // replace ip_dest_addr with that address. If you are dialing
22 // into an ISP, the source and destination addresses initially
23 // specified do not matter as they will be negotiated.
24 //
25
26 byte ip_dest_addr[IP_ADDR_LEN] = IP_DEST_ADDR;
27 byte ip_src_addr[IP_ADDR_LEN] = IP_SRC_ADDR;
28
29 //-----------------------------------------------------------------------------
30 // MAC Address Setup
31 //-----------------------------------------------------------------------------
32 //
33 // If using the CP2200, mn_ether_init will overwrite this value with the
34 // MAC address stored in the Flash of the CP2200.
35 //
36 // If using another Ethernet controller with EEPROM you may need to write
37 // a routine to take the value of the hw_addr in EEPROM and put it into
38 // the array below on startup. Otherwise replace eth_src_hw_addr
39 // below with the proper ethernet hardware address.
40 //
41
42 byte eth_src_hw_addr[ETH_ADDR_LEN] = ETH_SRC_HW_ADDR;
43
44 // ARP is used, so the array below is used as a temporary holder for
45 // the destination hardware address. It does not have to be changed.
46 byte eth_dest_hw_addr[ETH_ADDR_LEN] = ETH_DEST_HW_ADDR;
47
48 // If a gateway is being used set the gateway IP address and
49 // subnet mask below.
50 //
51 // If a gateway is not being used:
52 // set the gateway IP address to { 255,255,255,255 }
53 // set the subnet mask to { 255,255,255, 0 }
54 //
55 byte gateway_ip_addr[IP_ADDR_LEN] = GATEWAY_IP_ADDR;
C51 COMPILER V8.08 MN_VARS 04/24/2008 18:17:35 PAGE 2
56 byte subnet_mask[IP_ADDR_LEN] = SUBNET_MASK_ADDR;
57
58 //-----------------------------------------------------------------------------
59 // Stack Variable Declarations
60 //-----------------------------------------------------------------------------
61 //
62 // These arrays are used by the TCP/IP stack. They cannot be removed or edited.
63 //
64 SOCKET_INFO_T sock_info[num_sockets];
65 byte null_addr[IP_ADDR_LEN];
66
67 byte recv_buff[recv_buff_size];
68 byte send_buff[xmit_buff_size];
69 byte ping_reply_buff[ping_buff_size + 9];
70
71 VF_PTR http_vf_ptrs[num_sockets];
72 TEMP_SSI_S temp_ssi_info[num_sockets];
73 byte HTTPBuffer[http_buffer_len];
74
75 VF vf_dir[num_vf_pages];
76 PAGE_SEND_T page_send_info[num_sockets];
77 POST_FUNCS pf[num_post_funcs];
78
79 ARP_INFO_T arp_info[arp_cache_size];
80
81 //-----------------------------------------------------------------------------
82 // FLASH Constants
83 //-----------------------------------------------------------------------------
84 //
85 // These constants define the behavior of the stack. They should not be changed
86 // or edited here.
87 //
88 // To change the value of a FLASH constant, modify its corresponding
89 // preprocessor-defined constant in mn_userconst.h.
90 //
91
92 //--------------------------
93 // Device
94 //--------------------------
95 byte code DEVICE_ID = device_id;
96
97 //--------------------------
98 // Sockets
99 //--------------------------
100 byte code NUM_SOCKETS = num_sockets;
101 word16 code XMIT_BUFF_SIZE = xmit_buff_size;
102 word16 code RECV_BUFF_SIZE = recv_buff_size;
103 word16 code SOCKET_WAIT_TICKS = socket_wait_ticks;
104
105 //--------------------------
106 // Ethernet
107 //--------------------------
108 word16 code ETHER_WAIT_TICKS = ether_wait_ticks;
109
110 //--------------------------
111 // ARP
112 //--------------------------
113 word16 code ARP_KEEP_TICKS = arp_keep_ticks;
114 byte code ARP_RESEND_TRYS = arp_resend_trys;
115 word16 code ARP_WAIT_TICKS = arp_wait_ticks;
116 byte code ARP_CACHE_SIZE = arp_cache_size;
117 byte code ARP_AUTO_UPDATE = arp_auto_update;
C51 COMPILER V8.08 MN_VARS 04/24/2008 18:17:35 PAGE 3
118
119 //--------------------------
120 // HTTP
121 //--------------------------
122 word16 code HTTP_BUFFER_LEN = http_buffer_len;
123
124 //--------------------------
125 // IP
126 //--------------------------
127 byte code TIME_TO_LIVE = ip_time_to_live;
128 byte code MULTICAST_TTL = multicast_ttl;
129
130 //--------------------------
131 // PING
132 //--------------------------
133 word16 code PING_BUFF_SIZE = ping_buff_size;
134
135 //--------------------------
136 // TCP
137 //--------------------------
138 word16 code TCP_WINDOW = tcp_window;
139 word16 code TCP_RESEND_TICKS = tcp_resend_ticks;
140 byte code TCP_RESEND_TRYS = tcp_resend_trys;
141
142 //--------------------------
143 // Virtual File
144 //--------------------------
145 byte code NUM_VF_PAGES = num_vf_pages;
146 byte code NUM_POST_FUNCS = num_post_funcs;
147
148 //--------------------------
149 // Timer
150 //--------------------------
151 byte code TL0_FLASH = tl0_flash;
152 byte code TH0_FLASH = th0_flash;
153
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = ---- ----
CONSTANT SIZE = 32 ----
XDATA SIZE = 2181 ----
PDATA SIZE = ---- ----
DATA SIZE = ---- ----
IDATA SIZE = ---- ----
BIT SIZE = ---- ----
END OF MODULE INFORMATION.
C51 COMPILATION COMPLETE. 0 WARNING(S), 0 ERROR(S)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -