summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorgkostka <kostka.grzegorz@gmail.com>2016-04-01 15:05:29 +0200
committergkostka <kostka.grzegorz@gmail.com>2016-04-01 15:20:40 +0200
commit0589b9280b623ef2dc2ec2c5c879b4d23cabddb9 (patch)
treea4f8a3b08e0e976cee5da9a849c4c2d950b5b8df /include
parent53b4f91981f5898473830d53c24c27e17f83a8a1 (diff)
ext4_config: add CONFIG_UNALIGNED_ACCESS configuration switch
On some targets unaligned 32/16 bit access will raise exeption.
Diffstat (limited to 'include')
-rw-r--r--include/ext4_config.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/ext4_config.h b/include/ext4_config.h
index 0fc06cd..82dff16 100644
--- a/include/ext4_config.h
+++ b/include/ext4_config.h
@@ -144,6 +144,11 @@ extern "C" {
#define CONFIG_MAX_TRUNCATE_SIZE (16ul * 1024ul * 1024ul)
#endif
+
+/**@brief Unaligned access switch on/off*/
+#ifndef CONFIG_UNALIGNED_ACCESS
+#define CONFIG_UNALIGNED_ACCESS 1
+#endif
#ifdef __cplusplus
}
#endif