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

📄 flash.h

📁 EP9315的wince下载程序。download.exe
💻 H
字号:
//****************************************************************************
//
// FLASH.h - The common flash declaration for ep93xx
//
// Copyright (c) 2006 Cirrus Logic, Inc.
//
//****************************************************************************

#ifndef FLASH_H
#define FLASH_H

#ifdef __cplusplus
extern "C" {
#endif

//*****************************************************************************
//
// Flash ManufactureId Information declareation 
//
//*****************************************************************************
typedef struct sFlashManufactureId {
    unsigned short      manufacture_id;
    char    		manufacture_name[20];
    
 } FlashManufactureId_t;


//*****************************************************************************
//
// Flash Erase Block Information declareation 
// Only for Boot block
//
//*****************************************************************************
typedef struct EraseBlockInfo {
    unsigned long               blocks;
    unsigned long               block_size;
} EraseBlockInfo_t;

//*****************************************************************************
//
// CFI flash info declareation
//
//*****************************************************************************
typedef struct CFIQuery {
    unsigned long               DeviceSize;            /* 4 byte */
    unsigned long               NumEraseBlocks;        /* 4 byte */
    struct EraseBlockInfo       sBlockInfo[4];
} CFIQuery_t;

//****************************************************************************
//
// Flash info declaration
//
//****************************************************************************
typedef struct FlashInfo {
    unsigned short              ManufactureId;
    unsigned short              DeviceId[4];

    unsigned short              ByteWidth;

    unsigned long               FlashBase;
    unsigned long               SysConBase;
    
    struct CFIQuery             *pQuery;
} FlashInfo_t;

//****************************************************************************
//
//    Flash struct declaration
//
//****************************************************************************
typedef struct FlashOps {
    int (*FlashQuery)(struct FlashInfo *pInfo);
    int (*FlashErase)(struct FlashInfo *pInfo, int iOffset, int len);
    int (*FlashProgram)(struct FlashInfo *pInfo, int iOffset, void *data, int len);  
} FlashOps_t;

#ifdef __cplusplus
}
#endif

#endif /*FLASH_H*/

⌨️ 快捷键说明

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