dsk5510_flash.h
来自「MSP430与DSP接口技术3 编辑环境C语言,未试过,仅供参考」· C头文件 代码 · 共 47 行
H
47 行
/*
* Copyright 2002 by Spectrum Digital Incorporated.
* All rights reserved. Property of Spectrum Digital Incorporated.
*/
/*
* ======== dsk5510_flash.h ========
*
* Interface for the AMD29LV400BT Flash on the DSK5510 board
*/
#ifndef DSK5510_FLASH_
#define DSK5510_FLASH_
#ifdef __cplusplus
extern "C" {
#endif
#include <csl.h>
/* Flash address definitions */
#define DSK5510_FLASH_BASE 0x200000
#define DSK5510_FLASH_PAGESIZE 0x008000
#define DSK5510_FLASH_PAGES 0x8
#define DSK5510_FLASH_SIZE 0x040000
#define DSK5510_FLASH_CTL555 (DSK5510_FLASH_BASE + 0x555)
#define DSK5510_FLASH_CTL2AA (DSK5510_FLASH_BASE + 0x2aa)
#define DSK5510_FLASH_SUPPORT 1
/* Calculate the checksum of a data range in Flash */
Uint32 DSK5510_FLASH_checksum(Uint32 start, Uint32 length);
/* Erase a segment of Flash memory */
void DSK5510_FLASH_erase(Uint32 start, Uint32 length);
/* Read data from a range in Flash */
void DSK5510_FLASH_read(Uint32 src, Uint32 dst, Uint32 length);
/* Write data to a data range in Flash */
void DSK5510_FLASH_write(Uint32 src, Uint32 dst, Uint32 length);
#ifdef __cplusplus
}
#endif
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?