?? net_globel.h
字號:
/**---------------------版權 (c)----------------------------------------------------------***
*** 作者:顏章健 ***
*** 郵件:jenkinyan@163.com ***
*** ***
***---------------------File Info---------------------------------------------------------***
*** 創 建 人: 顏章健 ***
*** 創建日期: 2008-03-16 ***
*** 創建版本: ***
*** 文件描述: ***
***---------------------------------------------------------------------------------------***
*** 修 訂 人: ***
*** 修訂日期: ***
*** 修訂版本: ***
*** 修訂描述 ***
***---------------------------------------------------------------------------------------**/
#ifndef __net_globel_h_
#define __net_globel_h_
//#define DEBUG
//#define DBG_TIMER
#define _printf Uart0PutStr
#define MAX_NET_TIMER_HOOK 5 // 最大支持127個服務
#if MAX_NET_TIMER_HOOK > 127
#error "unsupport more than 127 timer hooks"
#endif
typedef struct _NET_PKT
{
uint8 *Data; // 數據段指針
uint16 Length; // 數據段長度
struct _NET_PKT *Next; // 下一數據段
}NET_PKT;
#include "..\..\net\tcpip\tcp.h"
#include "..\..\net\tcpip\udp.h"
#include "..\..\net\tcpip\icmp.h"
#include "..\..\net\tcpip\ip.h"
#include "..\..\net\ppp\ppp.h"
#include "..\..\net\ppp\ncp.h"
#include "..\..\net\ppp\lcp.h"
#include "..\..\net\ppp\chap.h"
#include "..\..\net\ppp\pap.h"
#include "..\..\net\ppp\md5.h"
#include "..\..\net\modem\fifo.h"
#include "..\..\net\modem\modem.h"
#include <stdlib.h> // lcp.c ,tcp.c需要使用該函數庫
extern NET_LAYER NetLayer;
extern LINK_LAYER LinkLayer;
extern PHY_LAYER PhyLayer;
// 網絡定時器
int NetTimerHookRegist(uint32 ms, void (*/*TimeOutAction*/)(void));
uint8 NetTimerHookDelete(int /*Handler*/);
void NetTimerInit(void);
uint32 NetTimerGetTc(void);
void __irq IRQ_NetTimer(void);
// 常用API
uint8 InetMemCmp(uint8 */*Memory1*/, uint8* /*Memory2*/, uint8 /*Length*/);
uint16 InetCheckSum(uint8 */*Data*/,uint16 /*Length*/);
void NetSystemInitial(void);
#endif
/********************************************************************************************
*** 文件結束 ***
********************************************************************************************/
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -