fpga_config.h.svn-base

来自「lwip协议在arm7+uCos系统上的移植」· SVN-BASE 代码 · 共 33 行

SVN-BASE
33
字号
/****************************************************************************
  文件名称:fpga_config.h
  版本号:	1.0
  日期:	2006-5-10
  说明:	fpga_config的头文件,包含配置FPGA EP1C12Q2408相关的函数的声明。
  调用列表:--
  修改历史:--
****************************************************************************/

#ifndef __FPGA_CONFIG_H__
#define __FPGA_CONFIG_H__
#include "44b.h"

#define FERROR	0
#define FOK		1
#define FDELAY	0

#define NSTATUS		((rPDATF & ((unsigned)0x1<<8))>>8)
#define CONF_DONE	((rPDATF & ((unsigned)0x1<<5))>>5)

#define NCONFIG1	(rPDATF = rPDATF |  ((unsigned)0x1<<7))
#define NCONFIG0	(rPDATF = rPDATF & ~((unsigned)0x1<<7))
#define DCLK1		(rPDATF = rPDATF |  ((unsigned)0x1<<6))
#define DCLK0		(rPDATF = rPDATF & ~((unsigned)0x1<<6))
#define DATA01		(rPDATF = rPDATF |  ((unsigned)0x1<<1))
#define DATA00		(rPDATF = rPDATF & ~((unsigned)0x1<<1))

#define FPGA_ADD	0x001a0000
#define FPGA_LEN	0x00046e65

int FConfig(void);

#endif //__FPGA_CONFIG_H__

⌨️ 快捷键说明

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