28 #define SPI_FLASH_SEC_SIZE 4096 29 #define LIMIT_ERASE_SIZE 0x10000 31 #define USER_BIN1 0x00 32 #define USER_BIN2 0x01 34 #define UPGRADE_FLAG_IDLE 0x00 35 #define UPGRADE_FLAG_START 0x01 36 #define UPGRADE_FLAG_FINISH 0x02 38 #define UPGRADE_FW_BIN1 0x00 39 #define UPGRADE_FW_BIN2 0x01 61 #define UPGRADE_FLAG_IDLE 0x00 62 #define UPGRADE_FLAG_START 0x01 63 #define UPGRADE_FLAG_FINISH 0x02 69 #ifdef UPGRADE_SSL_ENABLE
uint8 upgrade_version[16]
void system_upgrade_deinit()
struct espconn * pespconn
void(* upgrade_states_check_callback)(void *arg)
upgrade_states_check_callback check_cb
bool system_upgrade(uint8 *data, uint16 len)
void system_upgrade_init()
bool system_upgrade_start(struct upgrade_server_info *server)