www.pudn.com > zbtsram.rar > flash.H


/******************************************************************************* 
	filename:	flash.h 
	designer:	´÷Õ¹²¨ 
	date:		2004/09/28 
*********************************************************************************/ 
 
#define		FLASH_UL1	0xAA 
#define		FLASH_UL2	0x55 
#define		FLASH_UL3	0x80 
#define		FLASH_UL4	0xAA 
#define		FLASH_UL5	0x55 
#define		FLASH_SECTOR_UL6	0x30 
#define		FLASH_CHIP_UL6		0x10 
#define		FLASH_PROGRAM	0xA0 
#define		SECTOR_SIZE	0x0800 
#define		BLOCK_SIZE	0x8000 
#define		CHIP_SIZE	0x40000 
 
volatile Uint32* FLASH_5555 = (volatile Uint32 *) 0x64005555; 
volatile Uint32* FLASH_2AAA = (volatile Uint32 *) 0x64002AAA; 
 
Uint32 flash_erase(Uint32 *addr,Uint32 type); 
void flash_readm(Uint32 *addr,Uint32 *ptr,Uint32 length); 
Uint32 flash_reads(Uint32 *addr); 
Uint32 flash_writem(Uint32 *addr,Uint32 *ptr,Uint32 length); 
Uint32 flash_writes(Uint32 *addr,Uint32 data);