📄 mn_userconst.lst
字号:
C51 COMPILER V8.08 MN_USERCONST 04/01/2008 13:19:21 PAGE 1
C51 COMPILER V8.08, COMPILATION OF MODULE MN_USERCONST
OBJECT MODULE PLACED IN mn_userconst.OBJ
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.exe mn_userconst.h DB OE LARGE
line level source
1 //-----------------------------------------------------------------------------
2 // mn_userconst.h
3 //-----------------------------------------------------------------------------
4 // Copyright 2006 Silicon Laboratories, Inc.
5 //
6 // Description:
7 // This file contains user defined constants used by the TCP/IP Stack.
8 //
9 // Generated by TCP/IP Configuration Wizard Version 3.1.
10 //
11
12 #ifndef MN_USERCONST_H
13 #define MN_USERCONST_H 1
14 //-----------------------------------------------------------------------------
15 // Default IP Address Configuration
16 //-----------------------------------------------------------------------------
17 //
18 // This section configures the default IP address for the MCU and
19 // the destination, if known. If SMTP is enabled, the SMTP server address
20 // should be specified.
21 //
22 // Note: If dialing into an ISP, the initial IP addresses will be overwritten
23 // when a new address is negotiated.
24 //
25 #define IP_SRC_ADDR { 0, 0, 0, 1 } // IP address for the MCU
26 #define IP_DEST_ADDR { 255, 255, 255, 255 } // IP address for the destination
27
28 #define ETH_SRC_HW_ADDR { 0x00, 0x0B, 0x3C, 0x00, 0x00, 0x00 }
29 #define ETH_DEST_HW_ADDR { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF }
30 #define GATEWAY_IP_ADDR { 255, 255, 255, 255 }
31 #define SUBNET_MASK_ADDR { 255, 255, 255, 0 }
32
33 //-----------------------------------------------------------------------------
34 // User Selected Stack Settings
35 //-----------------------------------------------------------------------------
36 //
37 // This section configures the user selected stack settings.
38 //
39
40 // Sets the part family.
41 // This allows part-specific operation in the library code.
42
43 #define device_id C8051F340
44
45 // If set, locates the transmit buffer in the USB FIFO space of the C8051F34x.
46 #define c8051f340_usb_fifo 0
47
48 // Sets the number of sockets that can be used. The value must be between
49 // 1 and 127. Each socket uses about 46 bytes of RAM.
50 #define num_sockets 3
51
52 // Sets the size of the buffer used for transmission
53 #define xmit_buff_size 600
54
55 // Sets the size of the buffer used for reception
C51 COMPILER V8.08 MN_USERCONST 04/01/2008 13:19:21 PAGE 2
56 #define recv_buff_size 600
57
58 // Number of system ticks to wait for a packet
59 #define socket_wait_ticks 100
60
61 // Sets the time to live field in the IP packet
62 #define ip_time_to_live 64
63
64 // Sets the time to live field in an IP packet for multicast packets
65 #define multicast_ttl 1
66
67 // Timer 0 reload values such that Timer 0 overflows in 10ms.
68 // This defines a system tick.
69 #define tl0_flash 0xEF
70 #define th0_flash 0xD8
71
72 // Number of system ticks to wait for an ethernet packet
73 #define ether_wait_ticks 5
74
75 // Number of system ticks to keep entries in the ARP cache
76 #define arp_keep_ticks 6000
77
78 // Number of times an ARP packet is re-transmitted
79 #define arp_resend_trys 6
80
81 // Number of system ticks to wait for an ARP packet
82 #define arp_wait_ticks 600
83
84 // Number of entries in the ARP cache
85 #define arp_cache_size 4
86
87 // When set to 1, the ARP cache is updated after every valid packet is received.
88 // The ARP cache is always updated on PING requests
89 #define arp_auto_update 0
90
91 // Buffer used to process HTTP includes. Should be the same size as TCP window
92 #define http_buffer_len 942
93
94 // Size of buffer used to hold the URI sent by an HTTP GET, POST, or HEAD request.
95 #define uri_buffer_len 52
96
97 // Size of the buffer used to hold the body sent by an HTTP POST request.
98 #define body_buffer_len 52
99
100 // If PING is enabled the value is the size of the data from a PING request that
101 // can be stored. 9 bytes are added to the value to store part of the PING request
102 // header also. If the PING request contains more data than the specified value the
103 // packet will be discarded and no reply sent. The default value is 32.
104 #define ping_buff_size 500
105
106 // This value is both the amount of data you are willing to accept from the remote
107 // connection and the amount of data you are sending in a single packet. This value must
108 // be greater than 0 and less than or equal to 1460. A larger value will yield better
109 // throughput but require larger buffers. Note: The TCP/IP Stack uses a fixed window when
110 // receiving, not a sliding window as specified in RFC 793. If using PPP, the
111 // RECV_BUFF_SIZE and XMIT_BUFF_SIZE should be at least double the TCP
112 // window to allow for escaped characters. If using ethernet the RECV_BUFF_SIZE and
113 // XMIT_BUFF_SIZE should be at least TCP_WINDOW + 58.
114 #define tcp_window 542
115
116 // Number of system ticks to wait before retransmitting a TCP packet
117 #define tcp_resend_ticks 100
C51 COMPILER V8.08 MN_USERCONST 04/01/2008 13:19:21 PAGE 3
118
119 // Number of times a TCP packet is transmitted before aborting the connection
120 #define tcp_resend_trys 12
121
122 // The number of entries in the directory table in the virtual file system. Can be 1 to 255.
123 #define num_vf_pages 1
124
125 // This value is the number of entries in the post-function table in the virtual file system.
126 // The value can be 1 to 255.
127 #define num_post_funcs 2
128
129 // The C8051F340 has 4K of on-chip XRAM. Off-chip access begins at 0x1000.
130 // Load EMI0CN with 0x10.
131 #define BASE_ADDRESS 0x10
132
133 // This value is loaded into EMI0TC.
134 #define EMIF_TIMING 0x9E
135
136 #endif // MN_USERCONST_H
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = ---- ----
CONSTANT SIZE = ---- ----
XDATA SIZE = ---- ----
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 + -