armnet.h

来自「基于三星44b0芯片arm嵌入式系统的rtl8019网口的驱动程序」· C头文件 代码 · 共 26 行

H
26
字号
#ifndef __ARMNET_H__
#define __ARMNET_H__

#include "necfg.h"
#include "ne2000.h"
#include "ip.h"
#include "icmp.h"
#include "arp.h"
#include "udp.h"
#include "tftp.h"
#include "util.h"

#define DEMO_DEBUG		0
#define TFTP_DEBUG		0
#define ICMP_DEBUG		0
#define ARP_DEBUG		0
#define DEBUGF(debug, x) do { if(debug){ Uart_Printf x; } } while(0)

#define IP4_ADDR(a,b,c,d) ((unsigned int)(a & 0xff) << 24) | ((unsigned int)(b & 0xff) << 16) | \
                          ((unsigned int)(c & 0xff) << 8) | (unsigned int)(d & 0xff)

#define NET_INTERRUPT_DISABLE	rINTMSK = rINTMSK | BIT_EINT3;
#define NET_INTERRUPT_ENABLE	rINTMSK = rINTMSK & (~BIT_EINT3);

#endif

⌨️ 快捷键说明

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