| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- /************************************************************************
- * ---- 居加居 ----
- * 文件名: Flash.h
- * 编写人员: Kinve JQ
- * 说明:
- * 版本: V0.1
- * 编写日期: 2018-09-30
- * 程序维护:
- * 维护记录:
- * 2018-09-30.Kinve:1.创建文件
- * 免责声明:
- * (c) Author Kinve JQ. All rights reserved.
- **************************************************************************/
- #ifndef __FLASH_H__
- #define __FLASH_H__
- #include "Common.h"
- /* 包含的头文件----------------------------------------------------------*/
- /* 宏定义 ---------------------------------------------------------------*/
- #define CID_READ 0x0B
- #define DID_READ 0x0C
- #define PAGE_ERASE_AP 0x22
- #define BYTE_READ_AP 0x00
- #define BYTE_PROGRAM_AP 0x21
- #define PAGE_SIZE 128u
- #define ERASE_FAIL 0x70
- #define PROGRAM_FAIL 0x71
- #define IAPFF_FAIL 0x72
- #define IAP_PASS 0x00
- /* 类型定义 -------------------------------------------------------------*/
- /* 常量定义 -------------------------------------------------------------*/
- /* 数据定义 -------------------------------------------------------------*/
- /* 函数定义--------------------------------------------------------------*/
- UINT8 Read_APROM_BYTE ( UINT16 code *u16_addr );
- void Write_DATAFLASH_BYTE ( UINT16 u16_addr, UINT8 u8_data );
- #endif //__FLASH_H
- /*************** (C) COPYRIGHT Kinve JQ *******END OF FILE **************/
|