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

📄 m5275evb.h

📁 CodeWarrior IDE!COLDFIRE 5275源程序!
💻 H
字号:
/*
 * File:		m5275evb.h
 * Purpose:		Evaluation board definitions and memory map information
 *
 * Notes:
 */

#ifndef _M5275EVB_H
#define _M5275EVB_H

/********************************************************************/

#include "src/init/mcf5xxx.h"
#include "src/init/mcf5275.h"
#include "src/init/io.h"

/********************************************************************/

/*
 * Debug prints ON (#undef) or OFF (#define)
 */
#undef DEBUG

/* 
 * System Bus Clock Info 
 */
#define	SYSTEM_CLOCK			75		/* system bus frequency in MHz */
#define PERIOD					13  	/* system bus period in ns */
#define UART_BAUD				19200	/* 115200 */

/*
 * Ethernet Port Info
 */
#define FEC_PHYADDR0        (0x00)
#define FEC_PHYADDR1        (0x01)

#define FEC_CH0             (0x00)
#define FEC_CH1             (0x01)
/* 
 * Memory map definitions from linker command files 
 */
extern uint8 __IPSBAR[];
extern uint8 __SDRAM[];
extern uint8 __SDRAM_SIZE[];
extern uint8 __SRAM[];
extern uint8 __SRAM_SIZE[];
extern uint8 __EXT_SRAM[];
extern uint8 __EXT_SRAM_SIZE[];
extern uint8 __EXT_FLASH[];
extern uint8 __EXT_FLASH_SIZE[];

/* 
 * Memory Map Info 
 */
#define IPSBAR_ADDRESS			(uint32)__IPSBAR

#define SDRAM_ADDRESS			(uint32)__SDRAM
#define SDRAM_SIZE				(uint32)__SDRAM_SIZE

#define SRAM_ADDRESS			(uint32)__SRAM
#define SRAM_SIZE				(uint32)__SRAM_SIZE

#define EXT_SRAM_ADDRESS		(uint32)__EXT_SRAM
#define EXT_SRAM_SIZE			(uint32)__EXT_SRAM_SIZE

#define EXT_FLASH_ADDRESS		(uint32)__EXT_FLASH
#define EXT_FLASH_SIZE			(uint32)__EXT_FLASH_SIZE

/*
 *	Interrupt Controller Definitions
 */
#define TIMER_NETWORK_LEVEL		3
#define FEC_LEVEL				4

/*
 *	Timer period info
 */
#define TIMER_NETWORK_PERIOD	1000000000/0x10000	/* 1 sec / max timeout */


/*
 *  SDRAM Timing Parameters
 */  

#define SDRAM_BL		8		/* # of beats in a burst */
#define SDRAM_TWR		15  	/* in ns */
#define SDRAM_DBL_CASL	4 		/* double the CASL in clocks */
#define SDRAM_TRCD		20		/* in ns */
#define SDRAM_TRP		20		/* in ns */
#define SDRAM_TRFC		75		/* in ns */
#define SDRAM_TREFI		7800	/* in ns */

/********************************************************************/

#endif /* _M5275EVB_H */

⌨️ 快捷键说明

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