nodemcu_spiffs.h 606 B

1234567891011121314151617181920212223242526
  1. #ifndef _NODEMCU_SPIFFS_H
  2. #define _NODEMCU_SPIFFS_H
  3. #ifndef NODEMCU_SPIFFS_NO_INCLUDE
  4. #include "c_stdint.h"
  5. #include "c_stddef.h"
  6. #include "c_stdio.h"
  7. #include "user_interface.h"
  8. typedef uint32_t intptr_t;
  9. #endif
  10. // Turn off stats
  11. #define SPIFFS_CACHE_STATS 0
  12. #define SPIFFS_GC_STATS 0
  13. // Needs to align stuff
  14. #define SPIFFS_ALIGNED_OBJECT_INDEX_TABLES 1
  15. // Enable magic so we can find the file system (but not yet)
  16. #define SPIFFS_USE_MAGIC 1
  17. #define SPIFFS_USE_MAGIC_LENGTH 1
  18. // Reduce the chance of returning disk full
  19. #define SPIFFS_GC_MAX_RUNS 256
  20. #endif