📄 mn_userconst.lst
字号:
C51 COMPILER V8.08 MN_USERCONST 03/19/2008 20:26:25 PAGE 1
C51 COMPILER V8.08, COMPILATION OF MODULE MN_USERCONST
OBJECT MODULE PLACED IN mn_userconst.OBJ
COMPILER INVOKED BY: C:\SiLabs\MCU\IDEfiles\C51\BIN\c51.exe mn_userconst.h DB OE LARGE
line level source
1 //-----------------------------------------------------------------------------
2 // mn_userconst.h
3 //-----------------------------------------------------------------------------
4 // Copyright 2005 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.0.
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 { 192, 168, 0,22 } // 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 // Sets the number of sockets that can be used. The value must be between
46 // 1 and 127. Each socket uses about 46 bytes of RAM.
47 #define num_sockets 3
48
49 // Sets the size of the buffer used for transmission
50 #define xmit_buff_size 560
51
52 // Sets the size of the buffer used for reception
53 #define recv_buff_size 840
54
55 // Number of system ticks to wait for a packet
C51 COMPILER V8.08 MN_USERCONST 03/19/2008 20:26:25 PAGE 2
56 #define socket_wait_ticks 100
57
58 // Sets the time to live field in the IP packet
59 #define ip_time_to_live 64
60
61 // Sets the time to live field in an IP packet for multicast packets
62 #define multicast_ttl 1
63
64 // Timer 0 reload values such that Timer 0 overflows in 10ms.
65 // This defines a system tick.
66 #define tl0_flash 0xEF
67 #define th0_flash 0xD8
68
69 // Number of system ticks to wait for an ethernet packet
70 #define ether_wait_ticks 5
71
72 // Number of system ticks to keep entries in the ARP cache
73 #define arp_keep_ticks 6000
74
75 // Number of times an ARP packet is re-transmitted
76 #define arp_resend_trys 6
77
78 // Number of system ticks to wait for an ARP packet
79 #define arp_wait_ticks 600
80
81 // Number of entries in the ARP cache
82 #define arp_cache_size 4
83
84 // When set to 1, the ARP cache is updated after every valid packet is received.
85 // The ARP cache is always updated on PING requests
86 #define arp_auto_update 0
87
88 // Buffer used to process HTTP includes. Should be the same size as TCP window
89 #define http_buffer_len 256
90
91 // If PING is enabled the value is the size of the data from a PING request that
92 // can be stored. 9 bytes are added to the value to store part of the PING request
93 // header also. If the PING request contains more data than the specified value the
94 // packet will be discarded and no reply sent. The default value is 32.
95 #define ping_buff_size 32
96
97 // This value is both the amount of data you are willing to accept from the remote
98 // connection and the amount of data you are sending in a single packet. This value must
99 // be greater than 0 and less than or equal to 1460. A larger value will yield better
100 // throughput but require larger buffers. Note: The TCP/IP Stack uses a fixed window when
101 // receiving, not a sliding window as specified in RFC 793. If using PPP, the
102 // RECV_BUFF_SIZE and XMIT_BUFF_SIZE should be at least double the TCP
103 // window to allow for escaped characters. If using ethernet the RECV_BUFF_SIZE and
104 // XMIT_BUFF_SIZE should be at least TCP_WINDOW + 58.
105 #define tcp_window 256
106
107 // Number of system ticks to wait before retransmitting a TCP packet
108 #define tcp_resend_ticks 100
109
110 // Number of times a TCP packet is transmitted before aborting the connection
111 #define tcp_resend_trys 12
112
113 // The number of entries in the directory table in the virtual file system. Can be 1 to 255.
114 #define num_vf_pages 1
115
116 // This value is the number of entries in the post-function table in the virtual file system.
117 // The value can be 1 to 255.
C51 COMPILER V8.08 MN_USERCONST 03/19/2008 20:26:25 PAGE 3
118 #define num_post_funcs 1
119
120 // The C8051F340 has 4K of on-chip XRAM. Off-chip access begins at 0x1000.
121 // Load EMI0CN with 0x10.
122 #define BASE_ADDRESS 0x10
123
124 // This value is loaded into EMI0TC.
125 #define EMIF_TIMING 0x9E
126
127 #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 + -