2016-06-05 23:10:58 +02:00
|
|
|
#ifndef _NODEMCU_SPIFFS_H
|
|
|
|
#define _NODEMCU_SPIFFS_H
|
|
|
|
|
|
|
|
#ifndef NODEMCU_SPIFFS_NO_INCLUDE
|
2019-07-21 23:58:21 +02:00
|
|
|
#include <stdint.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdio.h>
|
2016-06-05 23:10:58 +02:00
|
|
|
#include "user_interface.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// Turn off stats
|
|
|
|
#define SPIFFS_CACHE_STATS 0
|
|
|
|
#define SPIFFS_GC_STATS 0
|
|
|
|
|
|
|
|
// Needs to align stuff
|
|
|
|
#define SPIFFS_ALIGNED_OBJECT_INDEX_TABLES 1
|
|
|
|
|
|
|
|
// Enable magic so we can find the file system (but not yet)
|
|
|
|
#define SPIFFS_USE_MAGIC 1
|
|
|
|
#define SPIFFS_USE_MAGIC_LENGTH 1
|
|
|
|
|
|
|
|
// Reduce the chance of returning disk full
|
|
|
|
#define SPIFFS_GC_MAX_RUNS 256
|
|
|
|
|
2020-06-16 09:19:55 +02:00
|
|
|
#define SPIFFS_SECURE_ERASE 0
|
2020-10-18 20:46:47 +02:00
|
|
|
|
|
|
|
extern void myspiffs_set_automount();
|
2016-06-05 23:10:58 +02:00
|
|
|
#endif
|