📄 flash.h
字号:
//
// Project: Experiment 2.10.5 Flash Programming - Chapter 2
// File name: flash.h
//
// Description: This is the C header file for the flash program experiment
//
// For the book "Real Time Digital Signal Processing:
// Implementation and Application, 2nd Ed"
// By Sen M. Kuo, Bob H. Lee, and Wenshun Tian
// Publisher: John Wiley and Sons, Ltd
//
// Tools used: CCS v.2.12.07
// TMS320VC5510 DSK Rev-C
//
// FLASH addresses
#define FLASH_MEM_BASE 0x200000
#define FLASH_MEM_ADDR2AA (FLASH_MEM_BASE + 0x2AA)
#define FLASH_MEM_ADDR555 (FLASH_MEM_BASE + 0x555)
// FLASH Commands
#define FLASH_MEM_RESET 0xF0
#define FLASH_MEM_ERASE 0x10
#define FLASH_MEM_SETUP 0x80
#define FLASH_MEM_ID 0x90
#define FLASH_MEM_PROGRAM 0xA0
#define FLASH_MEM_55 0x55
#define FLASH_MEM_AA 0xAA
#define FLASH_MEM_DQ7 0x80
#define FLASH_MEM_DQ5 0x20
// Flash manufacture IDs
#define AMD 0x0001
#define FUJITSU 0x0004
#define ATMEL 0x001f
#define ST 0x0020
#define INTEL 0x0089
#define TOSHIBA 0x0098
#define HYNIX 0x00AD
#define SHARP 0x00B0
#define MXIC 0x00C2
#define AMDTOP_BOOT_BLOCK 0x22B9
#define AMDBOTTOM_BOOT_BLOCK 0x22BA
extern void flashReset(void);
extern void flashID(unsigned short *ManuID, unsigned short *DevID);
extern short flashErase(void);
extern short flashWrite(unsigned short *source, unsigned short *dest,
unsigned long length);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -