@@ -5,78 +5,84 @@ config SPIFFS_MAX_PARTITIONS
55 default 3
66 range 1 10
77 help
8- Define maximum number of partitions
9- that can be mounted.
8+ Define maximum number of partitions that can be mounted.
109
1110menu "SPIFFS Cache Configuration"
1211config SPIFFS_CACHE
1312 bool "Enable SPIFFS Cache"
1413 default "y"
1514 help
16- Enables/disable memory read
17- caching of nucleus file system
15+ Enables/disable memory read caching of nucleus file system
1816 operations.
1917
2018config SPIFFS_CACHE_WR
2119 bool "Enable SPIFFS Write Caching"
2220 default "y"
2321 depends on SPIFFS_CACHE
2422 help
25- Enables memory write caching for
26- file descriptors in hydrogen.
23+ Enables memory write caching for file descriptors in hydrogen.
2724
2825config SPIFFS_CACHE_STATS
2926 bool "Enable SPIFFS Cache Statistics"
3027 default "n"
3128 depends on SPIFFS_CACHE
3229 help
33- Enable/disable statistics on caching.
34- Debug/test purpose only.
30+ Enable/disable statistics on caching. Debug/test purpose only.
3531
3632endmenu
3733
3834config SPIFFS_PAGE_CHECK
3935 bool "Enable SPIFFS Page Check"
4036 default "y"
4137 help
42- Always check header of each
43- accessed page to ensure consistent state.
44- If enabled it will increase number
45- of reads, will increase flash.
38+ Always check header of each accessed page to ensure consistent state.
39+ If enabled it will increase number of reads from flash, especially
40+ if cache is disabled.
4641
4742config SPIFFS_GC_MAX_RUNS
4843 int "Set Maximum GC Runs"
4944 default 10
5045 range 1 255
5146 help
52- Define maximum number of gc runs to
53- perform to reach desired free pages.
47+ Define maximum number of GC runs to perform to reach desired free pages.
5448
5549config SPIFFS_GC_STATS
5650 bool "Enable SPIFFS GC Statistics"
5751 default "n"
5852 help
59- Enable/disable statistics on gc.
60- Debug/test purpose only.
53+ Enable/disable statistics on gc. Debug/test purpose only.
54+
55+ config SPIFFS_PAGE_SIZE
56+ int "SPIFFS logical page size"
57+ default 256
58+ range 256 1024
59+ help
60+ Logical page size of SPIFFS partition, in bytes. Must be multiple
61+ of flash page size (which is usually 256 bytes).
62+ Larger page sizes reduce overhead when storing large files, and
63+ improve filesystem performance when reading large files.
64+ Smaller page sizes reduce overhead when storing small (< page size)
65+ files.
6166
6267config SPIFFS_OBJ_NAME_LEN
6368 int "Set SPIFFS Maximum Name Length"
6469 default 32
6570 range 1 256
6671 help
67- Object name maximum length. Note that this length
68- include the zero-termination character,
69- meaning maximum string of characters can at most be
70- SPIFFS_OBJ_NAME_LEN - 1.
72+ Object name maximum length. Note that this length include the
73+ zero-termination character, meaning maximum string of characters
74+ can at most be SPIFFS_OBJ_NAME_LEN - 1.
75+
76+ SPIFFS_OBJ_NAME_LEN + SPIFFS_META_LENGTH should not exceed
77+ SPIFFS_PAGE_SIZE - 64.
7178
7279config SPIFFS_USE_MAGIC
7380 bool "Enable SPIFFS Filesystem Magic"
7481 default "y"
7582 help
7683 Enable this to have an identifiable spiffs filesystem.
77- This will look for a magic in all sectors
78- to determine if this is a valid spiffs system
79- or not on mount point.
84+ This will look for a magic in all sectors to determine if this
85+ is a valid spiffs system or not at mount time.
8086
8187config SPIFFS_USE_MAGIC_LENGTH
8288 bool "Enable SPIFFS Filesystem Length Magic"
@@ -96,6 +102,9 @@ config SPIFFS_META_LENGTH
96102 These bytes can be used in an application-specific manner.
97103 Set this to at least 4 bytes to enable support for saving file
98104 modification time.
105+
106+ SPIFFS_OBJ_NAME_LEN + SPIFFS_META_LENGTH should not exceed
107+ SPIFFS_PAGE_SIZE - 64.
99108
100109config SPIFFS_USE_MTIME
101110 bool "Save file modification time"
@@ -113,45 +122,39 @@ config SPIFFS_DBG
113122 bool "Enable general SPIFFS debug"
114123 default "n"
115124 help
116- Enabling this option will print
117- general debug mesages to the console
125+ Enabling this option will print general debug mesages to the console.
118126
119127config SPIFFS_API_DBG
120128 bool "Enable SPIFFS API debug"
121129 default "n"
122130 help
123- Enabling this option will print
124- API debug mesages to the console
131+ Enabling this option will print API debug mesages to the console.
125132
126133config SPIFFS_GC_DBG
127134 bool "Enable SPIFFS Garbage Cleaner debug"
128135 default "n"
129136 help
130- Enabling this option will print
131- GC debug mesages to the console
137+ Enabling this option will print GC debug mesages to the console.
132138
133139config SPIFFS_CACHE_DBG
134140 bool "Enable SPIFFS Cache debug"
135141 default "n"
136142 depends on SPIFFS_CACHE
137143 help
138- Enabling this option will print
139- Cache debug mesages to the console
144+ Enabling this option will print cache debug mesages to the console.
140145
141146config SPIFFS_CHECK_DBG
142147 bool "Enable SPIFFS Filesystem Check debug"
143148 default "n"
144149 help
145- Enabling this option will print
146- Filesystem Check debug mesages
147- to the console
150+ Enabling this option will print Filesystem Check debug mesages
151+ to the console.
148152
149153config SPIFFS_TEST_VISUALISATION
150154 bool "Enable SPIFFS Filesystem Visualization"
151155 default "n"
152156 help
153- Enable this option to enable SPIFFS_vis function
154- in the api.
157+ Enable this option to enable SPIFFS_vis function in the API.
155158
156159endmenu
157160
0 commit comments