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

📄 flash_nor_nsrw.h

📁 Flash的驱动程序。包括市面上常见的Nor Flash和Nand Flash.基本上所有的Flash只需要简单修改就可以移植到其他应用。
💻 H
字号:
#ifndef __FLASH_NSRW_H__#define __FLASH_NSRW_H__/*====*====*====*====*====*====*====*====*====*====*====*====*====*====*====*          F L A S H      N S R W       H E A D E RGENERAL DESCRIPTION  This module declares interface for implementing the NSRW parts module.INITIALIZATION AND SEQUENCING REQUIREMENTS      Copyright (c) 2006 by QUALCOMM, Inc.  All Rights Reserved.*====*====*====*====*====*====*====*====*====*====*====*====*====*====*====*//*===========================================================================                        EDIT HISTORY FOR MODULE  This section contains comments describing changes made to the module.  Notice that changes are listed in reverse chronological order.  $Header: //depot/asic/msmshared/drivers/flash/MSM_FLASH.01.04/flash_nor_nsrw.h#1 $when       who     what, where, why--------   ---     ----------------------------------------------------------01/20/06   yg     Created new file.===========================================================================*//*===========================================================================                DEFINITIONS AND DECLARATIONS FOR MODULE  This section contains definitions for constants, macros, types, variables  and other items needed by this module.===========================================================================*/#include "flash_nor_device.h"#define WRITE_PROGRESS_BIT    0#define WRITE_REQUEST_BIT     1#define ERASE_PROGRESS_BIT    6#define ERASE_REQUEST_BIT     7#define ERROR_RESUME_BIT     13#define WRITE_ERROR_BIT      14#define ERASE_ERROR_BIT      15#define DEBUG_ENABLE#ifdef DEBUG_ENABLE    extern uint32 port_val;    #define SET_DEBUG(bit)     port_val = port_val | (1 << bit); *((uint32*)0x20100000) = port_val;    #define CLEAR_DEBUG(bit)   port_val = port_val & (~(1 << bit)); *((uint32*)0x20100000) = port_val;#else    #define SET_DEBUG(bit)     ;    #define CLEAR_DEBUG(bit)   ;#endif // DEBUG_ENABLEtypedef enum{  OPERATION_IN_PROGRESS,  OPERATION_COMPLETED,  OPERATION_ERROR} nsrw_flash_status_type;#endif // __FLASH_NSRW_H__

⌨️ 快捷键说明

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