pellepl / spiffs

Wear-leveled SPI flash file system for embedded devices
MIT License
1.52k stars 402 forks source link

Add ability to override the sizes of spiffs internal data types #258

Closed MMI closed 4 years ago

MMI commented 4 years ago

For reasons unknown to me, somebody changed the size of some internal spiffs types from 16 to 32 bits (spiffs_block_ix, spiffs_page_ix, spiffs_obj_id, spiffs_span_ix) on our device.

As I was updating our spiffs source to the current head, I followed the model suggested by params_test.h and I pulled out all of our changes to the default spiffs_config.h into a separate file to minimize future merging headaches. Of course, I had to wrap these type changes with an #ifndef SPIFFS_TYPES_OVERRIDE block to make the scheme work.

pellepl commented 4 years ago

Cheers!