?? sdram_test.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 + -