⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ethloop.h

📁 Cirrus Logic EP7312处理器部分控制程序。
💻 H
字号:
//*******************************************************************
// 
// ETHLOOP.h - Definitions for LoopTest
//
//******************************************************************
#ifndef LoopTest_h
#define LoopTest_h

#define CS8900ASTART 		0x20000000
#define IO_BASE 		CS8900ASTART


//
// Address translation for 73xx cogent board.
//
#define PP_POINTER 		0x000A
#define PP_DATA 		0x000C
#define TX_CMD 			0x0004
#define TX_LENGTH 		0x0006
#define SKIP 			0040


#define NO_FRAMES_TO_SEND 	1

//
// Size of the frame in words.
//
#define SIZE_OF_FRAME		10

//
// Data to put in the frame.
//
#define WORD_DATA		0x1234


#define SUCCESS 		0
#define FAILURE 		1

#define   outport( addr, val ) (*(volatile unsigned short int * const)(addr) = val)
#define   inport( addr ) (*(volatile unsigned short int * const)(addr))


#endif 

⌨️ 快捷键说明

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