SingingCat 0
application
esp8266_flash_from_any_source.h
1#ifndef ESP_FLASH_SERIAL_PORT_H_
2#define ESP_FLASH__SERIAL_PORT_H_ 1
3
4#include "main-header.h"
5
6#define ESP_FLASH_SERIAL_COM_READY 1
7#define ESP_FLASH_SERIAL_COM_PREPARE 2
8#define ESP_FLASH_SERIAL_COM_WRITE 3
9#define ESP_FLASH_SERIAL_COM_FINISH 4
10#define ESP_FLASH_SERIAL_COM_EXIT 5
11#define ESP_FLASH_SERIAL_COM_FAILURE 6
12
13typedef struct flashsercom {
14 int com;
15 long val1;
16 long val2;
18
19
20typedef byte * (*flash_get_adr_of_command)();
21typedef int (*flash_wait_for_command)(struct flashsercom *com);
22
23int esp8266_flash_from_any_source(flash_wait_for_command, flash_get_adr_of_command);
24int espflash_unescapebuf(byte *buf);
25
26#endif