upg.h 444 B

12345678910111213141516171819202122232425262728
  1. #ifndef __UPG_Hx__
  2. #define __UPG_Hx__
  3. #include "upgrade.h"
  4. #include "common.h"
  5. #include "xlist.h"
  6. enum {
  7. UPG_OK=0,
  8. UPG_BUSYING,
  9. UPG_HDR_FAIL,
  10. UPG_MD5_FAIL,
  11. };
  12. int upg_init(void);
  13. int upg_host_send(int evt);
  14. int upg_board_list_set(char *s);
  15. handle_t upg_board_all_get(void);
  16. int upg_board_all_update(void);
  17. int upg_board_start(char *path);
  18. int upg_host_file_check(char *path);
  19. int upg_board_file_check(char *path);
  20. #endif