evm5509_srom.h

来自「dsp 5509a MMC 卡 ID号读取 12Mhzx16=192M」· C头文件 代码 · 共 50 行

H
50
字号
/*
 *  Copyright 2004 by Spectrum Digital Incorporated.
 *  All rights reserved. Property of Spectrum Digital Incorporated.
 */
 
/*
 *  ======== evm5509_srom.h ========
 *
 *  Interface for the AT25F512 serial Flash on the 5509 EVM board
 */
#ifndef EVM5509_SROM_
#define EVM5509_SROM_

#ifdef __cplusplus
extern "C" {
#endif

#include <csl.h>

/* SROM definitions */
#define EVM5509_SROM_SIZE           0x010000
#define EVM5509_SROM_BASE           0x000000
#define EVM5509_SROM_PAGESIZE       0x001000
#define EVM5509_SROM_PAGES          0x4
#define EVM5509_SROM_BLOCKSIZE      64
#define EVM5509_SROM_BLOCKMASK      0xffffff00

#define EVM5509_SROM_WREN           0x06
#define EVM5509_SROM_WRDI           0x04
#define EVM5509_SROM_RDSR           0x05
#define EVM5509_SROM_WRSR           0x01
#define EVM5509_SROM_READ           0x03
#define EVM5509_SROM_PROGRAM        0x02
 
/* Read data from a range in Flash */
extern void EVM5509_SROM_read(Uint32 src, Uint32 dst, Uint32 length);

/* Write data to a data range in Flash */
extern void EVM5509_SROM_write(Uint32 src, Uint32 dst, Uint32 length);

/* Erase a block of the SROM */
extern void EVM5509_SROM_erase(Uint32 start, Uint32 length);

#ifdef __cplusplus
}
#endif

#endif

⌨️ 快捷键说明

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