ESP8266 part of the f105-motor-demo project (see f105-motor-demo_stm32)
f105-motor-demo_esp/libesphttpd/include/cgiflash.h

23 lines
418 B

9 years ago
#ifndef CGIFLASH_H
#define CGIFLASH_H
#include "httpd.h"
#define CGIFLASH_TYPE_FW 0
#define CGIFLASH_TYPE_ESPFS 1
typedef struct {
int type;
int fw1Pos;
int fw2Pos;
int fwSize;
char *tagName;
} CgiUploadFlashDef;
int cgiReadFlash(HttpdConnData *connData);
int cgiGetFirmwareNext(HttpdConnData *connData);
int cgiUploadFirmware(HttpdConnData *connData);
int cgiRebootFirmware(HttpdConnData *connData);
#endif