dm642_flash.h

来自「dsp dm642的音频采集与回放源码」· C头文件 代码 · 共 48 行

H
48
字号
/*
 *  Copyright 2003 by Spectrum Digital Incorporated.
 *  All rights reserved. Property of Spectrum Digital Incorporated.
 */
 
/*
 *  ======== evmdm642_flash.h ========
 *
 *  Interface for the AMD29LV033C Flash on the EVMDM642 board
 */
#ifndef DM642_FLASH_
#define DM642_FLASH_

#ifdef __cplusplus
extern "C" {
#endif

#include <csl.h>

/* Flash address definitions */
#define DM642_FLASH_BASE          0x90040000
#define DM642_FLASH_CTL555        (DM642_FLASH_BASE + 0x555)
#define DM642_FLASH_CTLAAA        (DM642_FLASH_BASE + 0xaaa)
#define DM642_FLASH_SECTORSIZE    0x010000
#define DM642_FLASH_SECTORS       0x8
#define DM642_FLASH_PAGES         0x8
#define DM642_FLASH_PAGESIZE      0x080000
#define DM642_FLASH_SIZE          0x400000

#define DM642_FLASH_SUPPORT       1
 

/* Erase a segment of Flash memory */
void DM642_FLASH_erase(Uint32 start, Uint32 length);

/* Read data from a range in Flash */
void DM642_FLASH_read(Uint32 src, Uint32 dst, Uint32 length);

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

#ifdef __cplusplus
}
#endif

#endif

⌨️ 快捷键说明

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