firmware_upgrade.h 722 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef __FIRMWARE_UPGRADE_H__
  2. #define __FIRMWARE_UPGRADE_H__
  3. //#include "hc32_ll_aos.h"
  4. //#include "hc32_ll_fcg.h"
  5. //#include "hc32_ll_gpio.h"
  6. //#include "hc32_ll_adc.h"
  7. //#include "hc32_ll_dma.h"
  8. //#include "hc32_ll_aos.h"
  9. //#include "hc32_ll_interrupts.h"
  10. #include "stdint.h"
  11. #define APPLICATION_A_ADDR 0x8000
  12. #define APPLICATION_SIZE 0x1a000
  13. #define APPLICATION_B_ADDR 0x22000
  14. #define BOOTLOADER_INFO_ADDR 0x3c000
  15. //typedef struct
  16. //{
  17. // uint16_t default_init;/*ˇرԶӧʨ׃‹ӎ˽*/
  18. // uint16_t is_ota_flag; /*OTAʽܶҪ־*/
  19. // uint16_t is_can_write_flag; /*CANˢдҪ־*/
  20. // uint32_t destination_address;/*ĿҪַ֘*/
  21. //}sys_paratemer_info_t;
  22. void firmware_upgrade_task(void *pvParameters);
  23. #endif