123456789101112131415161718192021222324252627 |
- #ifndef OTAEVENT_H
- #define OTAEVENT_H
- #include <stdint.h>
- typedef struct OTA_T
- {
- uint8_t data[133];
- uint16_t data_cnt;
- uint8_t done;
- uint8_t ota_flag;
- } OTA_T;
- typedef struct OTA_FLAG
- {
- uint8_t flag;
- uint32_t xmodemNB;
- }OTA_flag;
- typedef struct _OTA_MESSAGE_INFO{
- uint32_t Completion_flag;
- uint32_t XmodemByte;
- }OTA_MESSAGE;
- extern OTA_T ota_data;
- int8_t check_ota_event();
- #endif
|