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

📄 sdram_test.h

📁 ADI公司blackfin DSP开发板BF533 EZ-KIT LITE附带的全部原代码
💻 H
字号:
/*********************************************************************************

Copyright(c) 2005 Analog Devices, Inc. All Rights Reserved. 

This software is proprietary and confidential.  By using this software you agree
to the terms of the associated Analog Devices License Agreement.  

Description:
			SDRAM test and acess routines
			
*********************************************************************************/
#include <services/services.h>

// address for start of SDRAM (external memory)
#define	pSDRAM_PTR			(volatile u32 *)0x000000

// AMount of memory depends on EZ-Kit type
#if defined(__ADSP_EDINBURGH__) 
#define SDRAM_COUNT 0x00800000  // 32MB
#elif defined(__ADSP_BRAEMAR__) || defined(__ADSP_TETON__)
#define SDRAM_COUNT 0x01000000 	// 64MB
#else
#error "SDRAM test routines not available for this processor"
#endif

// Prototypes
int 	TestSDRAM	(void);		// Writes and reads all SDRAM, returns 1 if successful
void 	WriteSDRAM	(void);		// Writes to all SDRAM
int 	ReadSDRAM	(void);		// reads all SDRAM, returns 1 if successful
u32 	AccessSDRAM	(void);		// Returns value at base SDRAM location

⌨️ 快捷键说明

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