?? erase_copy.h
字號:
typedef unsigned short U16; /* unsigned 16-bit integer */
typedef unsigned char U8; /* unsigned 8-bit integer */
typedef unsigned long U32; /* unsigned 32-bit integer */
typedef volatile U16 * RP16;
typedef int ER;
typedef volatile unsigned short * POINTER;
typedef volatile U8 * RP8;
#define YES 1
#define NO 0 /* 出錯返回值 */
#define WordLen 2 //32??Norflash×?3¤
#define ERASEBLOCKSIZE 0x2000 /* 8Kbye:??′?2á3yμ?′óD?£??ù?Yflash×êá?μ?μ?£?2??é??òa±??ˉ */
void flash_erase(int NorHead);
void copy(int DataHead, int NorHead);
ER NorFlash_unlock( U32 address);
ER NorFlash_bolckerase(U32 blockadd);
ER NorFlash_write( U32 address, U16 data );
ER NorFlash_read( U32 address);
ER check(U32 head1, U32 head2, U32 num);
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -