2020-12-18 04:39:44 +03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "Consts.h"
|
|
|
|
|
|
|
|
|
|
#define FILE_READ "r"
|
|
|
|
|
#define FILE_WRITE "w"
|
|
|
|
|
#define FILE_APPEND "a"
|
|
|
|
|
|
2020-12-20 01:24:08 +03:00
|
|
|
#include <FS.h>
|
|
|
|
|
|
2020-12-18 04:39:44 +03:00
|
|
|
#if USE_LITTLEFS
|
|
|
|
|
#include <LittleFS.h>
|
|
|
|
|
extern FS LittleFS;
|
|
|
|
|
using littlefs_impl::LittleFSConfig;
|
2020-12-18 23:52:35 +01:00
|
|
|
extern FS* filesystem;
|
2020-12-18 04:39:44 +03:00
|
|
|
#define FileFS LittleFS
|
|
|
|
|
#define FS_NAME "LittleFS"
|
|
|
|
|
#else
|
2020-12-18 23:52:35 +01:00
|
|
|
extern FS* filesystem;
|
2020-12-18 04:39:44 +03:00
|
|
|
#define FileFS SPIFFS
|
|
|
|
|
#define FS_NAME "SPIFFS"
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
2020-12-18 23:52:35 +01:00
|
|
|
extern void getFSInfo();
|
|
|
|
|
extern bool getInfo(FSInfo& info);
|