代码搜索结果
找到约 10,000 项符合
Ethernet 的代码
ethernet.c
//********************************************************************************************
//
// File : ethernet.c implement for Ethernet Protocol
//
//****************************************
ethernet.c
#define ETHERNET_GLOBALS
#include "config.h"
#include "../include/cfg_net.h"
uint8 My_Ip_1ID[4]=MY_IP_1ID;
uint8 My_Gateway_1ID[4]=MY_GATEWAY_1ID;
uint8 MY_IP_MARK_1ID[4]=IP_MARK_1ID;
uint8 MY
ethernet.h
#ifdef ETHERNET_GLOBALS
#define ETHERNET_EXT
#else
#define ETHERNET_EXT extern
#endif
#define IP_PACKED 0x01
#define ARP_PACKED 0x02
#define MAX_NET_PORT 0x01
typedef struct {
ethernet.h
#ifndef ETHERNET_H
#define ETHERNET_H
//********************** Including Libs **********************
#include
#include
#include "comdef.h"
#include "dm9000.h"
#include
ethernet.c
#define __ETHERNET
#include "ethernet.h"
#undef __ETHERNET
//********************** Global Variable **********************
volatile uchar *udppack = 0; // 接收的udp包的IP指针
volatile uchar PktBuf[(
ethernet.h
#ifdef ETHERNET_GLOBALS
#define ETHERNET_EXT
#else
#define ETHERNET_EXT extern
#endif
#define IP_PACKED 0x01
#define ARP_PACKED 0x02
#define MAX_NET_PORT 0x01
typedef struct {
ethernet.c
#define ETHERNET_GLOBALS
#include "config.h"
#include "../include/cfg_net.h"
uint8 My_Ip_1ID[4]=MY_IP_1ID;
uint8 My_Gateway_1ID[4]=MY_GATEWAY_1ID;
uint8 MY_IP_MARK_1ID[4]=IP_MARK_1ID;
uint8 MY