sdram_test.h
来自「ADI公司blackfin DSP开发板BF533 EZ-KIT LITE附带的」· C头文件 代码 · 共 32 行
H
32 行
/*********************************************************************************
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 + =
减小字号Ctrl + -
显示快捷键?