2020-01-29 17:30:50 +00:00
|
|
|
/*
|
|
|
|
* spiffs VFS public function
|
|
|
|
*
|
|
|
|
* Author: LoBo (loboris@gmail.com / https://github.com/loboris)
|
|
|
|
*
|
|
|
|
* Part of this code is copied from or inspired by LUA-RTOS_ESP32 project:
|
|
|
|
*
|
|
|
|
* https://github.com/whitecatboard/Lua-RTOS-ESP32
|
|
|
|
* IBEROXARXA SERVICIOS INTEGRALES, S.L. & CSS IBÉRICA, S.L.
|
|
|
|
* Jaume Olivé (jolive@iberoxarxa.com / jolive@whitecatboard.org)
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#define SPIFFS_BASE_PATH "/spiffs"
|
|
|
|
|
2020-01-29 20:51:49 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2020-01-29 17:30:50 +00:00
|
|
|
|
2020-01-29 20:51:49 +00:00
|
|
|
extern int spiffs_is_registered;
|
|
|
|
extern int spiffs_is_mounted;
|
2020-01-29 17:30:50 +00:00
|
|
|
|
|
|
|
void vfs_spiffs_register();
|
|
|
|
int spiffs_mount();
|
|
|
|
int spiffs_unmount(int unreg);
|
|
|
|
void spiffs_fs_stat(uint32_t *total, uint32_t *used);
|
2020-01-29 20:51:49 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|