flash28.h
资源名称:ixp425BSP.rar [点击查看]
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:2k
源码类别:
VxWorks
开发平台:
C/C++
- /* flash28.h - header for 28FXXX FLASH memory devices */
- /* Copyright 1994-2000 Wind River Systems, Inc. */
- /*
- modification history
- --------------------
- 01i,15feb01,frf added intel Flash 28F128J3A,28F320J3A,28F640J3A support.
- 01h,01feb00,jpd added defs for Intel 28F320, Sharp 28F160S3. SPR 31293
- 01e,28aug98,jpd added 28F016 defs, including FLASH_WIDTH_SPECIAL_2 version.
- 01f,03aug99,dat merge from HIT group T2 branch
- 01e,04may99,cn added 28F016 definitions.
- 01d,04jul97,jpd added 28F008 definitions.
- 01c,26jan96,dzb added casts for CMD constants.
- 01b,24feb94,dzb added device codes for different flash devices.
- 01a,10feb94,dzb created.
- */
- /*
- DESCRIPTION
- This file contains header information for 28F0X0 FLASH memory devices.
- */
- #ifndef __INCflash28h
- #define __INCflash28h
- #ifdef __cplusplus
- extern "C" {
- #endif
- /* defines */
- #define FLASH28_CMD_READ_MEM (FLASH_DEF) 0x00000000
- #define FLASH28_CMD_READ_ID (FLASH_DEF) 0x90909090
- #define FLASH28_CMD_ERASE_SETUP (FLASH_DEF) 0x20202020
- #define FLASH28_CMD_ERASE (FLASH_DEF) 0x20202020
- #define FLASH28_CMD_ERASE_VERIFY (FLASH_DEF) 0xa0a0a0a0
- #define FLASH28_CMD_PROG_SETUP (FLASH_DEF) 0x40404040
- #define FLASH28_CMD_PROG_VERIFY (FLASH_DEF) 0xc0c0c0c0
- #define FLASH28_CMD_RESET (FLASH_DEF) 0xffffffff
- #define FLASH28_CMD_LOCKSETUP (FLASH_DEF) 0x60606060
- #define FLASH28_CMD_LOCK (FLASH_DEF) 0x01010101
- #define FLASH28_CMD_UNLOCK (FLASH_DEF) 0xd0d0d0d0
- #define FLASH28F008_CMD_READ_STATUS (FLASH_DEF) 0x70707070
- #define FLASH28F008_CMD_CLEAR_STATUS (FLASH_DEF) 0x50505050
- #define FLASH28F008_CMD_ERASE (FLASH_DEF) 0xD0D0D0D0
- #ifdef FLASH_WIDTH_SPECIAL_2
- #define FLASH28F008_STAT_WSMS (FLASH_DEF) 0x00800080
- #else
- #define FLASH28F008_STAT_WSMS (FLASH_DEF) 0x80808080
- #endif /* FLASH_WIDTH_SPECIAL_2 */
- #define FLASH28F008_STAT_BWS (FLASH_DEF) 0x10101010
- #define FLASH28F008_STAT_EWS (FLASH_DEF) 0x20202020
- #define FLASH_28F256 0xa1 /* device code 28F256 */
- #define FLASH_28F512 0x25 /* device code 28F512 */
- #define FLASH_28F128J3A 0x18 /* device code 28F128 */
- #define FLASH_28F640J3A 0x17 /* device code 28F640 */
- #define FLASH_28F320J3A 0x16 /* device code 28F320 */
- #define FLASH_28F010 0xa7 /* device code 28F010 */
- #define FLASH_28F020 0x2a /* device code 28F020 */
- #define FLASH_28F008 0xa2 /* device code 28F008 */
- #define FLASH_28F016 0xaa /* device code 28F016 */
- #define FLASH_28F160 0xd0 /* device code 28F160 */
- #define FLASH_28F320 0xd4 /* device code 28F320 */
- #ifdef __cplusplus
- }
- #endif
- #endif /* __INCflash28h */