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

📄 cfg_net.h

📁 周立功magic2200实验箱flash下载演示工程
💻 H
字号:
/****************************************Copyright (c)**************************************************
**                               Guangzou ZLG-MCU Development Co.,LTD.
**                                      graduate school
**                                 http://www.zlgmcu.com
**
**--------------File Info-------------------------------------------------------------------------------
** File name:           cfg_net.h
** Last modified Date:  2004-11-25
** Last Version:        1.0
** Descriptions:        configration file of the ZLGIP tcpip stacks
**------------------------------------------------------------------------------------------------------
** Created by:          Yehaoben
** Created date:        2004-11-25
** Version:             1.0
** Descriptions:        The original version
**
**------------------------------------------------------------------------------------------------------
** Modified by: 
** Modified date:
** Version: 
** Descriptions: 
**
********************************************************************************************************/
/*
*********************************************************************************************************
*                                         ZLGIP CONFIGURATION
*********************************************************************************************************
*/
/*****  ethernet  ******/
#define MAX_NET_PORT    1       /* MAXIM OF THE NETWORK INTERFACE  ( == 1 ) */
#define MAX_NET_REC_LEN 1536    /* MAX SIZE OF THE NETWORK FRAME LENGTH . ( <= 1536 ) */
#define MAX_REC_BUFF    20      /* How many frames that the recive buffer can save. ( >= 2 ) */

/*******  arp  **********/
#define MAX_ARP_TERM    50      /* How many MAC address can be save . it define in think about the network */

/*******  udp  **********/
#define UdpMaxDataLen   1478    /* Max udp data length in one frame. Less then MAX_NET_REC_LEN and ( <= 1478 ) */
#define UdpMaxRec       3       /* How many UDP frames can be saved. Less then MAX_REC_BUFF and ( >= 1 ) */
#define MAX_UDP_LINKS   1       /* How many UDP socket can be created. ( >= 1 ) */

/*******  tcp  **********/
#define MAX_TCP_DATA    1460    /* Max tcp data length in one frame. Less then MAX_NET_REC_LEN and ( <= 1460 ) */
#define MAX_TCP_LINKS   9       /* How many tcp links can be connected. ( >= 1 ) */
#define MY_TCP_WIN      8000    /* Tcp connection recive data buffer size ( 1 <= MY_TCP_WIN  <= 65535 ) */
/************************/

#define MAC_FORM_EEPROM     0   /* if get mac address form iic eeprom ,the value must be 1*/

#define Little_End              /* CPU working mode */

/*
*********************************************************************************************************
*                                         NETWORK CONFIGRATION
*********************************************************************************************************
*/
/************** first Net Port Config **************************/
#define My_Mac_1ID      {0x00,0x14,0x97,0x0f,0x00,0x00}//将RTL8019的物理地址存储在程序空间
#define IP_MARK_1ID         {255,255,0,0}         //255.255.255.0,子网掩码
#define MY_IP_1ID           {192,168,15,25}
#define MY_GATEWAY_1ID      {192,168,0,1}
/**************End Net Port Config **************************/
#if (MAX_NET_PORT>=2)
/************** first Net Port Config **************************/
#define My_Mac_2ID      {0x52,0x54,0x4c,0x19,0xf8,0x32}//将RTL8019的物理地址存储在程序空间
#define IP_MARK_2ID         {255,255,255,0}         //255.255.255.0,子网掩码
#define MY_IP_2ID           {192,168,0,200}
#define MY_GATEWAY_2ID      {192,168,0,1}
/**************End Net Port Config **************************/
#endif
/*
*********************************************************************************************************
*                                         ZLGIP including file
*********************************************************************************************************
*/

#include "..\TCPIP\include\netutil.h"
#include "..\TCPIP\include\hardware.h"
#include "..\TCPIP\include\ethernet.h"
#include "..\TCPIP\include\ARP.h"
#include "..\TCPIP\include\ip.h"
#include "..\TCPIP\include\icmp.h"
#include "..\TCPIP\include\udp.h"
#include "..\TCPIP\include\rcf_tcp.h"
#include "..\TCPIP\include\rcf_socket.h"
#include "..\TCPIP\include\DHCP.h"
#include "..\TCPIP\include\tcpip_main.h"

#if MAC_FORM_EEPROM > 0
#include "i2c.h"
#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -