mirror of https://github.com/jeelabs/esp-link.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
561 B
23 lines
561 B
10 years ago
|
#ifndef ESPFS_H
|
||
|
#define ESPFS_H
|
||
|
|
||
10 years ago
|
// This define is done in Makefile. If you do not use default Makefile, uncomment
|
||
|
// to be able to use Heatshrink-compressed espfs images.
|
||
|
//#define ESPFS_HEATSHRINK
|
||
10 years ago
|
|
||
10 years ago
|
typedef enum {
|
||
|
ESPFS_INIT_RESULT_OK,
|
||
|
ESPFS_INIT_RESULT_NO_IMAGE,
|
||
|
ESPFS_INIT_RESULT_BAD_ALIGN,
|
||
|
} EspFsInitResult;
|
||
10 years ago
|
|
||
10 years ago
|
typedef struct EspFsFile EspFsFile;
|
||
|
|
||
10 years ago
|
EspFsInitResult espFsInit(void *flashAddress);
|
||
10 years ago
|
EspFsFile *espFsOpen(char *fileName);
|
||
10 years ago
|
int espFsFlags(EspFsFile *fh);
|
||
10 years ago
|
int espFsRead(EspFsFile *fh, char *buff, int len);
|
||
|
void espFsClose(EspFsFile *fh);
|
||
|
|
||
|
|
||
|
#endif
|