From d0d44c4908efff7a443ed9b1174d9173fb784a72 Mon Sep 17 00:00:00 2001 From: Georg Nikodym Date: Sun, 26 Jan 2020 13:17:50 -0500 Subject: [PATCH] Add ability to override the types of spiffs internal data --- src/default/spiffs_config.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/default/spiffs_config.h b/src/default/spiffs_config.h index e84cdef..0ed7e0c 100644 --- a/src/default/spiffs_config.h +++ b/src/default/spiffs_config.h @@ -359,6 +359,7 @@ // the logical block size (log_block_size), and the logical page size // (log_page_size) +#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 +374,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_ */