?? flash.h
字號:
#ifndef __INCflashH
#define __INCflashH
#include "vxworks.h"
#include "config.h"
#define SST39VF160_ARG_ADRS(reg) ((UINT32 *)FLASH_ADRS + reg * 4)
#define AM29F040B_ARG_ADRS(reg) ((UINT8 *)AM29F040B_ADRS + reg)
#define SST_FIRST_CYCLE SST39VF160_ARG_ADRS(0x5555)
#define SST_SECOND_CYCLE SST39VF160_ARG_ADRS(0x2aaa)
#define AMD_FIRST_CYCLE AM29F040B_ARG_ADRS(0x555)
#define AMD_SECOND_CYCLE AM29F040B_ARG_ADRS(0x2aa)
#define SST_CMD_FIRST 0xaaaaaaaa
#define SST_CMD_SECOND 0x55555555
#define SST_CMD_FOURTH 0xaaaaaaaa
#define SST_CMD_FIFTH 0x55555555
#define SST_CMD_SECTOR 0x30303030
#define SST_CMD_BLOCK 0x50505050
#define SST_CMD_CHIP 0x10101010
#define SST_CMD_PROGRAM 0xa0a0a0a0
#define SST_CMD_ERASE 0x80808080
#define SST_CMD_SWIDENTRY 0x90909090
#define SST_CMD_CFIENTRY 0x98989898
#define SST_CMD_SWCFIEXIT 0xf0f0f0f0
#define AMD_CMD_FIRST 0xaa
#define AMD_CMD_SECOND 0x55
#define AMD_CMD_FOURTH 0xaa
#define AMD_CMD_FIFTH 0x55
#define AMD_CMD_CHIP 0x10
#define AMD_CMD_SECTOR 0x30
#define AMD_CMD_PROGRAM 0xa0
#define AMD_CMD_ERASE 0x80
#define AMD_CMD_SELECT 0x90 /* Manufacturer ID, Device ID or
Sector Protect Verify */
#define SECTOR_SIZE 2048 /* Must be 2048 words for 39VF160 */
#define BLOCK_SIZE 32768 /* Must be 32K words for 39VF160 */
#define AMD_SERTOR_SIZE 65536 /* Must Be 64k bytes for 29f040 */
#define SST_ID 0x00bf00bf /* SST Manufacturer's ID code */
#define SST_39VF160 0x27822782 /* SST 39VF160 device code */
#define AMD_ID 0x01 /* AMD Manufacturer's ID code */
#define AMD_29F040B 0xa4 /* AMD 29f040B device ID */
#endif /* __INCflashH */
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -