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

VxWorks

开发平台:

C/C++

  1. /* iFlash.h - Intel Flash Memory header */
  2. /* Copyright 1984-1992 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 01a,30oct92,ccc  created.
  7. */
  8. /*
  9. DESCRIPTION
  10. This file contains header information for the Intel 256 Flash Memory device.
  11. */
  12. #ifndef __INCiFlashh
  13. #define __INCiFlashh
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. /* device constants */
  18. #define FLASH_CMD_READ_MEM 0x0000
  19. #define FLASH_CMD_READ_ID 0x9090
  20. #define FLASH_CMD_ERASE_SETUP 0x2020
  21. #define FLASH_CMD_ERASE 0x2020
  22. #define FLASH_CMD_ERASE_VERIFY 0xa0a0
  23. #define FLASH_CMD_PROG_SETUP 0x4040
  24. #define FLASH_CMD_PROG_VERIFY 0xc0c0
  25. #define FLASH_CMD_RESET 0xffff
  26. /* function declarations */
  27. #ifndef _ASMLANGUAGE
  28. #if defined(__STDC__) || defined(__cplusplus)
  29. IMPORT STATUS sysNvRamGet (char *string, int strLen, int offset);
  30. IMPORT STATUS sysNvRamSet (char *string, int strLen, int offset);
  31. #else /* __STDC__ */
  32. IMPORT STATUS sysNvRamGet ();
  33. IMPORT STATUS sysNvRamSet ();
  34. #endif /* __STDC__ */
  35. #endif /* _ASMLANGUAGE */
  36. #ifdef __cplusplus
  37. }
  38. #endif
  39. #endif /* __INCiFlashh */