ota_message.h 436 B

123456789101112131415161718
  1. #ifndef OTA_MESSAGE_H
  2. #define OTA_MESSAGE_H
  3. #include "stdint.h"
  4. #define OTA_EVENT_BLOCK 1
  5. typedef struct _OTA_MESSAGE_INFO{
  6. uint32_t otaflag; //用于记录是否要从w25q32中读取
  7. uint32_t XmodemByte; //用于记录一共写入了多少字节的数据
  8. }OTA_MESSAGE;
  9. extern int load_ota_message_config_params();
  10. extern void clear_ota_message_config_block(void);
  11. extern OTA_MESSAGE *get_config_params();
  12. #endif