flash.h

来自「LwIP adaptation for Fujitsu MB90f497 and」· C头文件 代码 · 共 29 行

H
29
字号

//#include "main.def"

/******************************* Defines ****************************************/
#define seq_AAAA ((__far volatile uint*)0xFFAAAA)	/* sequence address */
#define seq_5554 ((__far volatile uint*)0xFF5554)	

/* sector start address */
#define SA2 ((__far uint*)0xFF8000)
#define SA3 ((__far uint*)0xFFA000)

#define DQ7 0x0080							/* data polling flag */
#define DQ5 0x0020							/* time limit exceeding flag */

#define TRUE 1
#define FALSE 0

#define uchar unsigned char
#define uint unsigned int
#define FLASH_ADR ((__far volatile uint *)0xFFA000)     

/******************************* Gloabals ***************************************/

/******************************* Prototyps **************************************/
uchar Flash_write(volatile __far uint*,uint);
uint Flash_read(volatile __far uint*);
uchar Flash_sector_erase( volatile __far uint *sector_adr);
void Store_flash(volatile __far uint *Flash_adr, volatile uint *Ram_adr, int counter);

⌨️ 快捷键说明

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