flash28.h
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:2k
源码类别:

VxWorks

开发平台:

C/C++

  1. /* flash28.h - header for 28FXXX FLASH memory devices */
  2. /* Copyright 1994-2000 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 01i,15feb01,frf  added intel Flash 28F128J3A,28F320J3A,28F640J3A support.
  7. 01h,01feb00,jpd  added defs for Intel 28F320, Sharp 28F160S3. SPR 31293
  8. 01e,28aug98,jpd  added 28F016 defs, including FLASH_WIDTH_SPECIAL_2 version.
  9. 01f,03aug99,dat  merge from HIT group T2 branch
  10. 01e,04may99,cn   added 28F016 definitions.
  11. 01d,04jul97,jpd  added 28F008 definitions.
  12. 01c,26jan96,dzb  added casts for CMD constants.
  13. 01b,24feb94,dzb  added device codes for different flash devices.
  14. 01a,10feb94,dzb  created.
  15. */
  16. /*
  17. DESCRIPTION
  18. This file contains header information for 28F0X0 FLASH memory devices.
  19. */
  20. #ifndef __INCflash28h
  21. #define __INCflash28h
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif
  25. /* defines */
  26. #define FLASH28_CMD_READ_MEM (FLASH_DEF) 0x00000000
  27. #define FLASH28_CMD_READ_ID (FLASH_DEF) 0x90909090
  28. #define FLASH28_CMD_ERASE_SETUP (FLASH_DEF) 0x20202020
  29. #define FLASH28_CMD_ERASE (FLASH_DEF) 0x20202020
  30. #define FLASH28_CMD_ERASE_VERIFY (FLASH_DEF) 0xa0a0a0a0
  31. #define FLASH28_CMD_PROG_SETUP (FLASH_DEF) 0x40404040
  32. #define FLASH28_CMD_PROG_VERIFY (FLASH_DEF) 0xc0c0c0c0
  33. #define FLASH28_CMD_RESET (FLASH_DEF) 0xffffffff
  34. #define FLASH28_CMD_LOCKSETUP (FLASH_DEF) 0x60606060
  35. #define FLASH28_CMD_LOCK (FLASH_DEF) 0x01010101
  36. #define FLASH28_CMD_UNLOCK (FLASH_DEF) 0xd0d0d0d0
  37. #define FLASH28F008_CMD_READ_STATUS (FLASH_DEF) 0x70707070
  38. #define FLASH28F008_CMD_CLEAR_STATUS (FLASH_DEF) 0x50505050
  39. #define FLASH28F008_CMD_ERASE (FLASH_DEF) 0xD0D0D0D0
  40. #ifdef FLASH_WIDTH_SPECIAL_2
  41. #define FLASH28F008_STAT_WSMS (FLASH_DEF) 0x00800080
  42. #else
  43. #define FLASH28F008_STAT_WSMS (FLASH_DEF) 0x80808080
  44. #endif /* FLASH_WIDTH_SPECIAL_2 */
  45. #define FLASH28F008_STAT_BWS (FLASH_DEF) 0x10101010
  46. #define FLASH28F008_STAT_EWS (FLASH_DEF) 0x20202020
  47. #define FLASH_28F256 0xa1 /* device code 28F256 */
  48. #define FLASH_28F512 0x25 /* device code 28F512 */
  49. #define FLASH_28F128J3A 0x18  /* device code 28F128 */
  50. #define FLASH_28F640J3A 0x17  /* device code 28F640 */
  51. #define FLASH_28F320J3A 0x16  /* device code 28F320 */
  52. #define FLASH_28F010 0xa7 /* device code 28F010 */
  53. #define FLASH_28F020 0x2a /* device code 28F020 */
  54. #define FLASH_28F008 0xa2 /* device code 28F008 */
  55. #define FLASH_28F016 0xaa /* device code 28F016 */
  56. #define FLASH_28F160 0xd0 /* device code 28F160 */
  57. #define FLASH_28F320 0xd4 /* device code 28F320 */
  58. #ifdef __cplusplus
  59. }
  60. #endif
  61. #endif /* __INCflash28h */