flash.h

来自「freescale badge board 开发板测试 源程序」· C头文件 代码 · 共 48 行

H
48
字号
/********************************************************************************
*                                                                     
*       Copyright (C) 2007 Freescale Semiconductor, Inc.              
*       All Rights Reserved								              
*														              
* Filename:     flash.h                
*														              
* Revision:      										              
*														              
* Functions:    flash driver header file
*         
* Description:  
*
* Notes:        
*
*********************************************************************************/

/*********************************** Includes ***********************************/

/*********************************** Macros ************************************/

/*********************************** Defines ***********************************/
/* error code */
#define Flash_OK          0x00
#define Flash_FACCERR     0x01
#define Flash_FPVIOL      0x02
#define Flash_NOT_ERASED   0x04
#define Flash_CONTENTERR   0x08
#define Flash_NOT_INIT     0xFF

/* flash commands */
#define FlashCmd_EraseVerify    0x05
#define FlashCmd_Program        0x20
#define FlashCmd_BurstProgram   0x25
#define FlashCmd_SectorErase    0x40
#define FlashCmd_MassErase      0x41


/********************************** Constant ***********************************/

/*********************************** Variables *********************************/

/*********************************** Prototype *********************************/
extern void Flash_Init(unsigned char FlashClockDiv);
extern unsigned char Flash_SectorErase(unsigned long *FlashPtr); 
extern unsigned char Flash_ByteProgram(unsigned long *FlashStartAdd,unsigned long *DataSrcPtr,unsigned long NumberOfBytes); 
void SpSub(void);
void SpSubEnd(void);

⌨️ 快捷键说明

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