mirror of
https://github.com/OpenEPaperLink/OpenEPaperLink.git
synced 2026-03-21 06:06:23 +01:00
* New hardware profile: PoE AP - added harware profiles for C6 firmware in menuconfig - added free PSRAM stat in webinterface * fix(fsfree): fixed var type of freesize of FS
44 lines
607 B
C++
44 lines
607 B
C++
#ifndef _DYN_STORAGE_H_
|
|
#define _DYN_STORAGE_H_
|
|
|
|
#include "FS.h"
|
|
|
|
#ifdef HAS_SDCARD
|
|
#ifndef SD_CARD_SS
|
|
#error SD_CARD_SS UNDEFINED
|
|
#endif
|
|
|
|
#ifndef SD_CARD_CLK
|
|
#define SD_CARD_CLK 18
|
|
#endif
|
|
|
|
#ifndef SD_CARD_MISO
|
|
#define SD_CARD_MISO 19
|
|
#endif
|
|
|
|
#ifndef SD_CARD_MOSI
|
|
#define SD_CARD_MOSI 23
|
|
#endif
|
|
#endif
|
|
|
|
class DynStorage {
|
|
public:
|
|
DynStorage();
|
|
void begin();
|
|
void end();
|
|
void listFiles();
|
|
uint64_t freeSpace();
|
|
|
|
private:
|
|
bool isInited;
|
|
};
|
|
|
|
extern SemaphoreHandle_t fsMutex;
|
|
extern DynStorage Storage;
|
|
extern fs::FS *contentFS;
|
|
extern void copyFile(File in, File out);
|
|
|
|
#endif
|
|
|
|
|