Merge pull request #7034 from OTAkeys/pr/fix_spiffs_tests
pkg/spiffs: fix unittests
This commit is contained in:
commit
235ef93f00
@ -208,7 +208,7 @@ void spiffs_unlock(struct spiffs_t *fs);
|
|||||||
|
|
||||||
// Enable this if your target needs aligned data for index tables
|
// Enable this if your target needs aligned data for index tables
|
||||||
#ifndef SPIFFS_ALIGNED_OBJECT_INDEX_TABLES
|
#ifndef SPIFFS_ALIGNED_OBJECT_INDEX_TABLES
|
||||||
#define SPIFFS_ALIGNED_OBJECT_INDEX_TABLES 0
|
#define SPIFFS_ALIGNED_OBJECT_INDEX_TABLES 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Enable this if you want the HAL callbacks to be called with the spiffs struct
|
// Enable this if you want the HAL callbacks to be called with the spiffs struct
|
||||||
|
|||||||
@ -29,10 +29,10 @@
|
|||||||
#else
|
#else
|
||||||
/* Test mock object implementing a simple RAM-based mtd */
|
/* Test mock object implementing a simple RAM-based mtd */
|
||||||
#ifndef SECTOR_COUNT
|
#ifndef SECTOR_COUNT
|
||||||
#define SECTOR_COUNT 8
|
#define SECTOR_COUNT 4
|
||||||
#endif
|
#endif
|
||||||
#ifndef PAGE_PER_SECTOR
|
#ifndef PAGE_PER_SECTOR
|
||||||
#define PAGE_PER_SECTOR 4
|
#define PAGE_PER_SECTOR 8
|
||||||
#endif
|
#endif
|
||||||
#ifndef PAGE_SIZE
|
#ifndef PAGE_SIZE
|
||||||
#define PAGE_SIZE 128
|
#define PAGE_SIZE 128
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user