ota_message.h 472 B

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