?? flash_drv_sharp.h
字號:
/*******************************************************************************
* Copyright Statement:
* --------------------
* This software is protected by Copyright and the information contained
* herein is confidential. The software may not be copied and the information
* contained herein may not be used or disclosed except with the written
* permission of MediaTek Inc. (C) 2004
*
*******************************************************************************/
/*******************************************************************************
*
* Filename:
* ---------
* flash_drv_SHARP.h
*
* Project:
* --------
* FlashTool Download Agent
*
* Description:
* ------------
* This Module defines the SHARP flash driver.
*
* Author:
* -------
* Amos Hsu
*
*==============================================================================
* HISTORY
* Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
*------------------------------------------------------------------------------
* $Revision: 1.1 $
* $Modtime: Jan 12 2006 14:22:44 $
* $Log: //mtkvs01/vmdata/flash_tool/archives/DA/INC/flash_drv_SHARP.h-arc $
*
* Rev 1.1 Jan 14 2006 00:20:40 mtk00539
* Bug fixes:
* 1. [DA] Fix SHARP LH28F16 flash download fail problem.
* Resolution for 159: [FlashTool v2.7.1015]
*
* Rev 1.0 Nov 22 2004 12:31:34 mtk00539
* Initial revision.
*
*------------------------------------------------------------------------------
* Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
*==============================================================================
*******************************************************************************/
#ifndef _FLASH_DRV_SHARP_H_
#define _FLASH_DRV_SHARP_H_
#include "flash_drv_INTEL.h"
// READ CMD
// PROGRAM CMD
// ERASE
// LOCK/UNLOCK
// Status Register Bit
#define SHARP_SR7_WSMS_BIT 0x0080
#define SHARP_SR5_ES_BIT 0x0020
#define SHARP_SR4_PS_BIT 0x0010
#define SHARP_SR3_VPPS_BIT 0x0008
#define SHARP_SR1_DPS_BIT 0x0002
#ifdef __cplusplus
extern "C" {
#endif
//------------------------------------------------------------------------------
// Callback Function Set
//------------------------------------------------------------------------------
extern const NOR_CMD_Callback_S SHARP_CMD_CB_WORD_PGM;
extern const NOR_CMD_Callback_S SHARP_CMD_CB_16WORD_BUF_PGM;
extern const NOR_CMD_Callback_S SHARP_CMD_CB_WORD_PGM_NO_UNLOCK;
//------------------------------------------------------------------------------
// Memory Sector Layout Set
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
// Check Device ID Callback Function
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
// Check If Device Is Idle Callback Function
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
// Erase Related Callback Function
//------------------------------------------------------------------------------
extern void SHARP_Erase_Block_CMD(const uint32 blockaddr);
extern STATUS_E SHARP_CheckDone(const uint32 blockaddr);
//------------------------------------------------------------------------------
// Program Related Callback Function
//------------------------------------------------------------------------------
extern void SHARP_PreProcess_16WORD_BUFPGM(const uint16 dev);
#ifdef __cplusplus
}
#endif
#endif
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -