net_cfg.h

来自「ADC图形图像例子」· C头文件 代码 · 共 44 行

H
44
字号

/********************************************************************
 * File: NET_CFG.h
 * 
 * Copyright: Peak Microtech Corporation
 *
 *******************************************************************/

#ifndef _NETCFG_H
#define _NETCFG_H

#define   	COM_RXD_BUFF_SIZE   600 
#define		COM_TXD_BUFF_SIZE   600 
#define 	COMMAND_BUFF_SIZE   600
#define    	RT_BUFF_NUM 1           
#define 	TCP_MAX_RETXD   8 

#include "Ne2000.h"
#include "arp.h"
#include "GLOBAL.h"
#include "ICMP.h"
#include "INPUT.h"
#include "TCP.h"
#include "UDP.h"
#include "register.h"
#include "io.h"
#include "int.h"
#include "uart.h"

#include <stdarg.h> 
#include <stdio.h>


#define MY_MAC_ID 		{0x00,0x14,0x2A,0x6D,0x17,0x95}
#define IP_SETTING 		IP_Str2Hex("192.168.1.78") -> dwords;
#define GATEWAY_SETTING IP_Str2Hex("192.168.1.1") -> dwords;

#define IP_MARK_SETTING 0x00ffffff; 		//255.255.255.0
#define MY_TCP_PORT    	1024
#define MY_UDP_PORT  	1025


#endif	/* _NETCFG_H */

⌨️ 快捷键说明

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