SPIFFS: Selectable configuration of SPIFFS

This commit is contained in:
sheinz 2016-08-08 18:08:42 +03:00
parent 964a2f850a
commit 5051c5c528
10 changed files with 199 additions and 101 deletions

View file

@ -12,12 +12,25 @@
extern spiffs fs;
#if SPIFFS_SINGLETON == 1
/**
* Prepare for SPIFFS mount.
*
* The function allocates all the necessary buffers.
*/
void esp_spiffs_init();
#else
/**
* Prepare for SPIFFS mount.
*
* The function allocates all the necessary buffers.
*
* @param addr Base address for spiffs in flash memory.
* @param size File sistem size.
*/
void esp_spiffs_init(uint32_t addr, uint32_t size);
#endif
/**
* Free all memory buffers that were used by SPIFFS.