iFlash.h
资源名称:ixp425BSP.rar [点击查看]
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:1k
源码类别:
VxWorks
开发平台:
C/C++
- /* iFlash.h - Intel Flash Memory header */
- /* Copyright 1984-1992 Wind River Systems, Inc. */
- /*
- modification history
- --------------------
- 01a,30oct92,ccc created.
- */
- /*
- DESCRIPTION
- This file contains header information for the Intel 256 Flash Memory device.
- */
- #ifndef __INCiFlashh
- #define __INCiFlashh
- #ifdef __cplusplus
- extern "C" {
- #endif
- /* device constants */
- #define FLASH_CMD_READ_MEM 0x0000
- #define FLASH_CMD_READ_ID 0x9090
- #define FLASH_CMD_ERASE_SETUP 0x2020
- #define FLASH_CMD_ERASE 0x2020
- #define FLASH_CMD_ERASE_VERIFY 0xa0a0
- #define FLASH_CMD_PROG_SETUP 0x4040
- #define FLASH_CMD_PROG_VERIFY 0xc0c0
- #define FLASH_CMD_RESET 0xffff
- /* function declarations */
- #ifndef _ASMLANGUAGE
- #if defined(__STDC__) || defined(__cplusplus)
- IMPORT STATUS sysNvRamGet (char *string, int strLen, int offset);
- IMPORT STATUS sysNvRamSet (char *string, int strLen, int offset);
- #else /* __STDC__ */
- IMPORT STATUS sysNvRamGet ();
- IMPORT STATUS sysNvRamSet ();
- #endif /* __STDC__ */
- #endif /* _ASMLANGUAGE */
- #ifdef __cplusplus
- }
- #endif
- #endif /* __INCiFlashh */