代码搜索结果
找到约 10,000 项符合
Ethernet 的代码
ethernet.h
#ifndef _ETHERNET_H // 防止Ethernet.h被重复引用
#define _ETHERNET_H
#include // 引用标准库的头文件
#include
#include
#define uchar unsigned char //无符号字符型
#defi
ethernet.lst
C51 COMPILER V7.02b ETHERNET 12/10/2005 21:31:08 PAGE 1
C51 COMPILER V7.02b, COMPILATION OF MODULE ETHERNET
OBJECT MODULE PLACED
ethernet.c
#include "Ethernet.h"
/* 主函数 */
void main(void)
{
delay(1000); // 延时1s,保证电源稳定和网卡自身的上电完成
NICRst(); // RTL8019AS热复位
ClearISR(); // 清除ISR寄存器
RTL8019Init(); // 初始化RTL8019A
ethernet.c
#define ETHERNET_GLOBALS
#include "config.h"
#include "../include/cfg_net.h"
/************** first Net Port Config **************************/
//#define SOURCEMAC {0x00,0x14,0x97,0x0f,0x17,0xc
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
//#include
//#include
//#include
#define reg00 XBYTE[0xFF00] //reg00- 10为isa网卡接口的寄存器地址300-310;
#define reg01 XBYTE[0xFF01]
#define reg02 XBYTE[0xFF02]
ethernet.h
/*********************************************************************************************
* File: ETHERNET.H
* Author: embest
* Desc: Ethernet control define and RTL8019as register descriptio