⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sysflash.h

📁 WINDRIVER SBC7410 BSP
💻 H
字号:
/* sysFlash.h - wrSbc7410 system flash header file *//* Copyright 1984-2002 Wind River Systems, Inc. *//*modification history--------------------01a,07may02,gtf modified for wrSbc7410 bsp.*//*This file contains various definitions for the Intel Strataflashdriver for the wrSbc7410 processor board.*/#ifndef _sysFlash_H_#define _sysFlash_H_#ifdef __cplusplusextern "C" {#endif/* Flash types */#define INTEL28F320_SECTOR_SZ   (UINT32)0x20000*2 /* 128KB x 2 in x16 mode */#define INTEL28F320_NUM_SECTORS (32-4)#define INTEL28F320_SIZE		(UINT32)(INTEL28F320_SECTOR_SZ * INTEL28F320_NUM_SECTORS)#define INTEL28F640_SECTOR_SZ   (UINT32)0x20000*2 /* 128KB x 2 in x16 mode */#define INTEL28F640_NUM_SECTORS (64-4)#define INTEL28F640_SIZE		(UINT32)(INTEL28F640_SECTOR_SZ * INTEL28F640_NUM_SECTORS)#define INTEL28F128_SECTOR_SZ   (UINT32)0x20000*2 /* 128KB x 2 in x16 mode */#define INTEL28F128_NUM_SECTORS (128-4)#define INTEL28F128_SIZE		(UINT32)((UINT32)INTEL28F128_SECTOR_SZ * (UINT32)INTEL28F128_NUM_SECTORS)/* NOTE: each chip is x16 and has 128 128KB se397ctors.   There are 2 chips hooked up in parallel making a 128*2 = 256KB logical sector.   There are 64 of these sectors for 16MB of flash or 4 sectors per 1MB of flash.   Sectors 60-63 are the last 1MB of flash where the boot code is loaded and   are reserved. *//* 128KB * 2 chips = 256KB per logical sector */#define INTEL_MFGR_ID			0x00890089#define INTEL28F320_DEVICE_ID   0x00160016#define INTEL28F640_DEVICE_ID 	0x00170017#define INTEL28F128_DEVICE_ID   0x00180018#define INTEL28F640_BASE_ADRS 	(UINT32)FLASH_BASE_ADRS#define TFFS_DEVICE_SECTOR_SZ	INTEL28F640_SECTOR_SZ #ifndef _ASMLANGUAGEtypedef union _FlashWord    {	unsigned char  c[4] ;	unsigned short s[2] ;	unsigned long  l ;	} FlashWord ;#endifIMPORT STATUS  sysFlashGet (char *string, int strLen, int offset) ;IMPORT STATUS  sysFlashSet (char *string, int strLen, int offset) ;IMPORT int checkStatusIntel(UINT32 status1) ;IMPORT STATUS sysFlashReadIdIntel(volatile FlashWord *adrs) ;IMPORT STATUS sysBlockLockStatusIntel(FlashWord * adrs) ;IMPORT STATUS sysFlashPollDataIntel(FlashWord * adrs) ;IMPORT STATUS sysFlashSectorEraseIntel(char *sectorAdrs) ;IMPORT STATUS sysFlashChipEraseIntel(void) ;IMPORT STATUS sysFlashSectorWriteBufferIntel(FlashWord *adrs, char * buf, int len) ;IMPORT STATUS sysFlashSectorLockIntel(char *adrs) ;IMPORT STATUS sysFlashSectorUnlockIntel(void) ;IMPORT STATUS sysFlashSectorWriteIntel(char * adrs, char * buf, int len) ;IMPORT STATUS sysFlashEraseStrataflash(UINT8 * sectorAdrs) ;IMPORT STATUS sysFlashWriteStrataflash( UINT8 * sectorAdrs, UINT8 * buffer, int length) ;IMPORT STATUS sysFlashWriteBufferStrataflash( UINT8 * sectorAdrs, UINT8 * buffer, int length) ;#ifdef __cplusplus}#endif#endif /* _sysFlash_H_ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -