flash_drv.h
上传用户:fy98168
上传日期:2015-06-26
资源大小:13771k
文件大小:1k
- #ifndef _FALSH_DRV_H_
- #define _FALSH_DRV_H_
- #include "gendef.h"
- #include "Pub_ST.h"
- #define NUM_BLOCKS 496
- #define FILE_START_BLOCKS 200
- #define FILE_END_BLOCKS 496
- #define FILE_START_ADDRESS 0x4000000
- #define BLOCK_SIZE 0x00010000 /* 64Kb */
- void flash_GetBuffer( OUT ULONG* pdwStartAddr,OUT ULONG* pdwSize);
- void flash_WriteBuffer(IN BYTE* pdwStartAddr,const OUT BYTE* pbyData,ULONG dwLen);
- void flash_ReadBuffer(IN BYTE* pdwStartAddr,OUT BYTE* pbyData,ULONG pdwLen);
- #endif