SPIFFS: Selectable configuration of SPIFFS
This commit is contained in:
parent
964a2f850a
commit
5051c5c528
10 changed files with 199 additions and 101 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue