123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- // typedef union
- // {
- // uint16_t u8_buf[8];
- // uint16_t u16_buf[4];
- // } u16_u8;
- // typedef union
- // {
- // uint16_t u8_save[200];
- // uint16_t u16_save[100];
- // } u16save_u8save;
- // typedef struct
- // {
- // uint16_t total_packages;
- // uint16_t current_packages;
- // uint16_t count_packages;
- // uint16_t recv_len;
- // uint16_t crc16;
- // uint16_t firmware_crc16;
- // uint16_t firmware_ver;
- // uint16_t total_bytes;
- // uint16_t count_bytes;
- // u16_u8 flash_data;
- // u16_u8 recheck_data;
- // u16save_u8save save_data;
- // } iap_type;
- // typedef union
- // {
- // struct
- // {
- // uint16_t sign; // 首地址 buf[0]
- // uint16_t crc16; // 中地址 buf[1]
- // uint32_t moving_size; // 高地址 buf[2] buf[3]
- // } param;
- // uint16_t infor_buf[UPGRADE_FLASH_DATA_SIZE];
- // } upgrade_param; // 升级参数使用
- // // FLASH 扇区的起始地址
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- // typedef enum
- // {
- // DISCONNECT = 0,
- // HANDSHAKE,
- // PROGRAMING,
- // PROGRAMFinish,
- // } workmode;
- // typedef union
- // {
- // u8 value[4];
- // u32 cmd;
- // } IAP_Union;
- // void iap_process(CanData_TypeDef *rx_msg);
- // u8 flash_up_is_ok(void);
- // void iap_from_flash(void);
- //
|