1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

pkg/spiffs: set SPIFFS_ALIGNED_OBJECT_INDEX_TABLES by default

This enforce right memory alignment of page object header struct.
If this flag is not set, hard fault can be generated (at least on Cortex-M0)
This commit is contained in:
Vincent Dupont 2017-05-10 17:42:43 +02:00
parent d51b07f954
commit 7d6e7bb402

View File

@ -208,7 +208,7 @@ void spiffs_unlock(struct spiffs_t *fs);
// Enable this if your target needs aligned data for index tables
#ifndef SPIFFS_ALIGNED_OBJECT_INDEX_TABLES
#define SPIFFS_ALIGNED_OBJECT_INDEX_TABLES 0
#define SPIFFS_ALIGNED_OBJECT_INDEX_TABLES 1
#endif
// Enable this if you want the HAL callbacks to be called with the spiffs struct