📄 flash.h
字号:
/********************************************************************************
*
* 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -