Kconfig 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. menu "SPIFFS Configuration"
  2. config SPIFFS_MAX_PARTITIONS
  3. int "Maximum Number of Partitions"
  4. default 3
  5. range 1 10
  6. help
  7. Define maximum number of partitions
  8. that can be mounted.
  9. menu "SPIFFS Cache Configuration"
  10. config SPIFFS_CACHE
  11. bool "Enable SPIFFS Cache"
  12. default "y"
  13. help
  14. Enables/disable memory read
  15. caching of nucleus file system
  16. operations.
  17. config SPIFFS_CACHE_WR
  18. bool "Enable SPIFFS Write Caching"
  19. default "y"
  20. depends on SPIFFS_CACHE
  21. help
  22. Enables memory write caching for
  23. file descriptors in hydrogen.
  24. config SPIFFS_CACHE_STATS
  25. bool "Enable SPIFFS Cache Statistics"
  26. default "n"
  27. depends on SPIFFS_CACHE
  28. help
  29. Enable/disable statistics on caching.
  30. Debug/test purpose only.
  31. endmenu
  32. config SPIFFS_PAGE_CHECK
  33. bool "Enable SPIFFS Page Check"
  34. default "y"
  35. help
  36. Always check header of each
  37. accessed page to ensure consistent state.
  38. If enabled it will increase number
  39. of reads, will increase flash.
  40. config SPIFFS_GC_MAX_RUNS
  41. int "Set Maximum GC Runs"
  42. default 10
  43. range 1 255
  44. help
  45. Define maximum number of gc runs to
  46. perform to reach desired free pages.
  47. config SPIFFS_GC_STATS
  48. bool "Enable SPIFFS GC Statistics"
  49. default "n"
  50. help
  51. Enable/disable statistics on gc.
  52. Debug/test purpose only.
  53. config SPIFFS_OBJ_NAME_LEN
  54. int "Set SPIFFS Maximum Name Length"
  55. default 32
  56. range 1 256
  57. help
  58. Object name maximum length. Note that this length
  59. include the zero-termination character,
  60. meaning maximum string of characters can at most be
  61. SPIFFS_OBJ_NAME_LEN - 1.
  62. config SPIFFS_USE_MAGIC
  63. bool "Enable SPIFFS Filesystem Magic"
  64. default "y"
  65. help
  66. Enable this to have an identifiable spiffs filesystem.
  67. This will look for a magic in all sectors
  68. to determine if this is a valid spiffs system
  69. or not on mount point.
  70. config SPIFFS_USE_MAGIC_LENGTH
  71. bool "Enable SPIFFS Filesystem Length Magic"
  72. default "y"
  73. depends on SPIFFS_USE_MAGIC
  74. help
  75. If this option is enabled, the magic will also be dependent
  76. on the length of the filesystem. For example, a filesystem
  77. configured and formatted for 4 megabytes will not be accepted
  78. for mounting with a configuration defining the filesystem as 2 megabytes.
  79. config SPIFFS_META_LENGTH
  80. int "Size of per-file metadata field"
  81. default 4
  82. help
  83. This option sets the number of extra bytes stored in the file header.
  84. These bytes can be used in an application-specific manner.
  85. Set this to at least 4 bytes to enable support for saving file
  86. modification time.
  87. config SPIFFS_USE_MTIME
  88. bool "Save file modification time"
  89. default "y"
  90. depends on SPIFFS_META_LENGTH >= 4
  91. help
  92. If enabled, then the first 4 bytes of per-file metadata will be used
  93. to store file modification time (mtime), accessible through
  94. stat/fstat functions.
  95. Modification time is updated when the file is opened.
  96. menu "Debug Configuration"
  97. config SPIFFS_DBG
  98. bool "Enable general SPIFFS debug"
  99. default "n"
  100. help
  101. Enabling this option will print
  102. general debug mesages to the console
  103. config SPIFFS_API_DBG
  104. bool "Enable SPIFFS API debug"
  105. default "n"
  106. help
  107. Enabling this option will print
  108. API debug mesages to the console
  109. config SPIFFS_GC_DBG
  110. bool "Enable SPIFFS Garbage Cleaner debug"
  111. default "n"
  112. help
  113. Enabling this option will print
  114. GC debug mesages to the console
  115. config SPIFFS_CACHE_DBG
  116. bool "Enable SPIFFS Cache debug"
  117. default "n"
  118. depends on SPIFFS_CACHE
  119. help
  120. Enabling this option will print
  121. Cache debug mesages to the console
  122. config SPIFFS_CHECK_DBG
  123. bool "Enable SPIFFS Filesystem Check debug"
  124. default "n"
  125. help
  126. Enabling this option will print
  127. Filesystem Check debug mesages
  128. to the console
  129. config SPIFFS_TEST_VISUALISATION
  130. bool "Enable SPIFFS Filesystem Visualization"
  131. default "n"
  132. help
  133. Enable this option to enable SPIFFS_vis function
  134. in the api.
  135. endmenu
  136. endmenu