From 7d6e7bb402f5e61f0416437abf61ec1fd74b3bb1 Mon Sep 17 00:00:00 2001 From: Vincent Dupont Date: Wed, 10 May 2017 17:42:43 +0200 Subject: [PATCH] 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) --- pkg/spiffs/include/spiffs_config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/spiffs/include/spiffs_config.h b/pkg/spiffs/include/spiffs_config.h index 534d0fb48..9909e85d4 100644 --- a/pkg/spiffs/include/spiffs_config.h +++ b/pkg/spiffs/include/spiffs_config.h @@ -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