nodemcu_spiffs.h 611 B

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