2021-12-22 14:49:25 +01:00
|
|
|
#pragma once
|
|
|
|
|
#include "Global.h"
|
|
|
|
|
|
2021-12-23 17:48:01 +01:00
|
|
|
#ifdef ESP32
|
|
|
|
|
#include <SPIFFS.h>
|
|
|
|
|
extern FS* filesystem;
|
|
|
|
|
#define FileFS SPIFFS
|
|
|
|
|
#define FS_NAME "SPIFFS"
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifdef ESP8266
|
|
|
|
|
#if USE_LITTLEFS
|
|
|
|
|
#include "LittleFS.h"
|
2021-12-22 14:49:25 +01:00
|
|
|
extern FS LittleFS;
|
|
|
|
|
using littlefs_impl::LittleFSConfig;
|
|
|
|
|
extern FS* filesystem;
|
|
|
|
|
#define FileFS LittleFS
|
|
|
|
|
#define FS_NAME "LittleFS"
|
2021-12-23 17:48:01 +01:00
|
|
|
#else
|
|
|
|
|
extern FS* filesystem;
|
|
|
|
|
#define FileFS SPIFFS
|
|
|
|
|
#define FS_NAME "SPIFFS"
|
|
|
|
|
#endif
|
|
|
|
|
#endif
|
2021-12-22 14:49:25 +01:00
|
|
|
|
|
|
|
|
extern bool fileSystemInit();
|
2021-12-22 23:47:35 +01:00
|
|
|
extern void globalVarsSync();
|
2021-12-23 00:33:45 +01:00
|
|
|
|
2022-02-12 03:09:57 +01:00
|
|
|
extern void syncSettingsFlashJson();
|
2022-02-02 23:39:41 +01:00
|
|
|
extern void saveParamsFlashJson();
|
|
|
|
|
|
|
|
|
|
extern const String getChipId();
|
|
|
|
|
extern void setChipId();
|
|
|
|
|
extern const String getUniqueId(const char* name);
|
|
|
|
|
extern uint32_t ESP_getChipId(void);
|
|
|
|
|
extern uint32_t ESP_getFlashChipId(void);
|
|
|
|
|
extern const String getMacAddress();
|