mirror of
https://github.com/pellepl/spiffs.git
synced 2026-06-06 05:25:27 +00:00
Merge pull request #258 from MMI/master
Add ability to override the sizes of spiffs internal data types
This commit is contained in:
@@ -358,7 +358,12 @@
|
||||
// given to spiffs file system in total (spiffs_file_system_size),
|
||||
// the logical block size (log_block_size), and the logical page size
|
||||
// (log_page_size)
|
||||
//
|
||||
// Set SPIFFS_TYPES_OVERRIDE if you wish to have your own
|
||||
// definitions for these types (for example, if you want them
|
||||
// to be u32_t)
|
||||
|
||||
#ifndef SPIFFS_TYPES_OVERRIDE
|
||||
// Block index type. Make sure the size of this type can hold
|
||||
// the highest number of all blocks - i.e. spiffs_file_system_size / log_block_size
|
||||
typedef u16_t spiffs_block_ix;
|
||||
@@ -373,5 +378,6 @@ typedef u16_t spiffs_obj_id;
|
||||
// hold the largest possible span index on the system -
|
||||
// i.e. (spiffs_file_system_size / log_page_size) - 1
|
||||
typedef u16_t spiffs_span_ix;
|
||||
#endif
|
||||
|
||||
#endif /* SPIFFS_CONFIG_H_ */
|
||||
|
||||
Reference in New Issue
Block a user