CopyFile.h 726 B

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