#ifndef __COPY_FILE__H #define __COPY_FILE__H #include "includes.h" #define GOOD_UPDATE_STORAGE 0x9fedcba9 #define UPDATE_ALREADY 0x752fd587 #define APP_FILE_DATA_ADDR FILE_DATA_ADDR_END+1 //下载的APP存放首地址 0x200000 ~ 0x3FFFFF 下两M数据区 extern struct COPYFILE_DEF copyFilePara; struct COPYFILE_DEF { unsigned char runFlag; //1 indicate have PCTA operation done, it will go on with the PCTA operation it does //2 indicate no PCTA opeation , and so iap have to check the mark of block 2 uint8_t *userBuf; }; void CopyFileInit(void); void CopyFileHandle(void); int GetFileIndexIAP(SUT_FILE_LIST *sutfileList ,const char *filename,unsigned char type); #endif