Kconfig 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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. menu "Debug Configuration"
  80. config SPIFFS_DBG
  81. bool "Enable general SPIFFS debug"
  82. default "n"
  83. help
  84. Enabling this option will print
  85. general debug mesages to the console
  86. config SPIFFS_API_DBG
  87. bool "Enable SPIFFS API debug"
  88. default "n"
  89. help
  90. Enabling this option will print
  91. API debug mesages to the console
  92. config SPIFFS_GC_DBG
  93. bool "Enable SPIFFS Garbage Cleaner debug"
  94. default "n"
  95. help
  96. Enabling this option will print
  97. GC debug mesages to the console
  98. config SPIFFS_CACHE_DBG
  99. bool "Enable SPIFFS Cache debug"
  100. default "n"
  101. depends on SPIFFS_CACHE
  102. help
  103. Enabling this option will print
  104. Cache debug mesages to the console
  105. config SPIFFS_CHECK_DBG
  106. bool "Enable SPIFFS Filesystem Check debug"
  107. default "n"
  108. help
  109. Enabling this option will print
  110. Filesystem Check debug mesages
  111. to the console
  112. config SPIFFS_TEST_VISUALISATION
  113. bool "Enable SPIFFS Filesystem Visualization"
  114. default "n"
  115. help
  116. Enable this option to enable SPIFFS_vis function
  117. in the api.
  118. endmenu
  119. endmenu