⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 config.lst

📁 世纪民生公司的带网络功能的单片机CS6209开发http服务器的演示源代码。
💻 LST
字号:
C51 COMPILER V7.50   CONFIG                                                                10/12/2006 15:31:39 PAGE 1   


C51 COMPILER V7.50, COMPILATION OF MODULE CONFIG
OBJECT MODULE PLACED IN .\Release\Config.obj
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE Config.c LARGE OPTIMIZE(9,SIZE) BROWSE ORDER MODDP2 INCDIR(e:\releasePackag
                    -e\release\inc\;..\..\inc\) DEBUG OBJECTEXTEND PRINT(.\Release\Config.lst) OBJECT(.\Release\Config.obj)

line level    source

   1          /*
   2           * 
   3           * config.c
   4           * 
   5           * Part of the Myson Century CS620X     demo program.
   6           *
   7           * Authors: LY Lin, WM Wang, IJ Chen, WH Lee
   8           *
   9           * config.c contains the configuration of CS620X ethernet.
  10           *
  11           * This program was developed using the Keil 8051 C uVision 2 system.
  12           * The Keil compiler MUST be used if working with Myson Century supplied
  13           * firmware.
  14           *
  15           * This program must be linked with the 620xlib.LIB library 
  16           * supplied     by Myson Century in object module form.  
  17           * 
  18           */
  19          
  20          #include "hpserver.h"
  21          #include "620xenet.h"
  22          #include "timer.h"
  23          #include "ether.h"
  24          #include "netutil.h"
  25          #include "net.h"
  26          #include "ip.h"
  27          #include "tcp.h"
  28          #include "config.h"
  29          
  30          /* Ethernet MAC address*/
  31          xdata BYTE my_mac_addr[6] = {0x00,0xC0,0xB4,0x83,0xf0,0xff};
  32          
  33          /* Static IP address*/
  34          //xdata BYTE my_ip_addr[] = "172.16.20.244";
  35          xdata BYTE my_ip_addr[] = "172.16.20.100";
  36          /* IP address Mask*/
  37          xdata BYTE my_ip_mask[] = "255.255.255.0";
  38          
  39          /* Gateway IP address */
  40          xdata BYTE my_gateway_addr[] = "172.16.20.2";
  41          
  42          /* 
  43           Device driver buffer (Ethernet, serial port)
  44           set the NIC receive buffer to the size of (RXSTOP-RXSTART) number of pages
  45           and each page is 256 bytes.  This buffer has to be on a 256-byte boundary.
  46          */
  47          xdata unsigned char nic_rcv_buf [(RXSTOP-RXSTART)*256] _at_ RXSTART00;
  48          
  49          /* Set the NIC xmit buffer.  This buffer has to be on a 256 byte boundary.*/
  50          xdata unsigned char nic_xmit_buf [3072/*MAXFRAMEC*/] _at_ RXSTOP00;
  51          
  52          #ifndef UDP_ONLY
  53          /* The Socket structures are defined here.
  54           NSOCKS is the number of sockets defined in config.h*/
C51 COMPILER V7.50   CONFIG                                                                10/12/2006 15:31:39 PAGE 2   

  55          TSOCK tsocks[NSOCKS]; 
  56          
  57          /*
  58          
  59           ** Total buffer space for Socket TRANSMIT buffers **
  60          
  61           _CBUFFLEN_ is defined in netutil.h, and it defines the socket 
  62           txb or rxb circular buffer size.  Actually this size can be different 
  63           for each socket.  In the following we allocat socket transmit buffers 
  64           with the assumption that txb buffer size for all sockets are the same.
  65           
  66           If you assign different size txb buffers to sockets, you have to change
  67           the txb buffer space allocation, and at initialization you have to 
  68           link the buffers to each socket individually.
  69          
  70           Because of the design of the circular buffer handling routines, You have 
  71           to make sure the size of the buffer is a power of 2.  The recommended
  72           minimum circular buffer size is 2K (2048) bytes.
  73          
  74          */
  75          
  76          BYTE tsock_txb [NSOCKS*_CBUFFLEN_];
  77          
  78          /*
  79          
  80           ** Total buffer space for Socket RECEIVE buffers **
  81          
  82           Each socket can have a recevie circular buffer assigned or not.
  83           If a receive circular buffer is assigned, the TCP will write the 
  84           received data in the socket receive buffer first.  If not, the data
  85           is routed to the application directly.
  86          
  87           Depending on your application requirement, you can decide whether to use
  88           a reveive buffer for a socket or not.  For application sending requests
  89           in one TCP segment, it is sensible to forgo the socket receive buffer 
  90           to save data space.  For applications sending one logical data record in 
  91           several TCP segments, it might be easier to have the TCP assemble the 
  92           segments in the socket receive buffer.
  93          
  94           The data memory space is limited.  If the buffer space allocated
  95           for the sockets takes up too much space, that means the number of
  96           sockets that can be supported is less.  You have to make the design
  97           trade-off as to whether you need a receive buffer for each socket, or
  98           you need to support more sockets.
  99          
 100           For an example, let us say your design allocates a total of 12K bytes
 101           for socket buffer storage.  Each socket transmit buffer takes 2K, 
 102           and each receive buffer takes 2K.  So each socket takes 4K buffer space.
 103           This means you can support 3 sockets in total.  If you do not use the 
 104           socket receive buffer, the buffer space taken up by one socket (only the 
 105           transmit buffer) is 2K, and that means you can support 6 sockets.
 106          
 107           For each socket, you have the freedom to choose whether to use the 
 108           receive buffer or not.  If you decice to use the reveive buffer, the
 109           sizeof the buffer can be different for each socket too.  You specify the
 110           size of the buffer at initialization time.
 111          
 112           If you do not use the socket receive buffer, or you only use the socket
 113           receive buffer for some of the sockets, then you have to modify the 
 114           following line.
 115          */
 116          #if (!NO_SOCKET_RXB)
C51 COMPILER V7.50   CONFIG                                                                10/12/2006 15:31:39 PAGE 3   

 117          BYTE tsock_rxb [NSOCKS*_CBUFFLEN_];
 118          #endif
 119          #endif


MODULE INFORMATION:   STATIC OVERLAYABLE
   CODE SIZE        =   ----    ----
   CONSTANT SIZE    =   ----    ----
   XDATA SIZE       =  16906    ----
   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 + -