From 17236a12e946daec30031e6ae2bedac5381d7ebf Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Wed, 15 Apr 2020 00:20:28 +0200 Subject: [PATCH] pkg/littlefs: set VFS params --- pkg/littlefs/Makefile.include | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/littlefs/Makefile.include b/pkg/littlefs/Makefile.include index a5467e8f04..4793d99324 100644 --- a/pkg/littlefs/Makefile.include +++ b/pkg/littlefs/Makefile.include @@ -3,3 +3,8 @@ INCLUDES += -I$(PKGDIRBASE)/littlefs ifneq (,$(filter littlefs_fs,$(USEMODULE))) DIRS += $(RIOTBASE)/pkg/littlefs/fs endif + +# Set vfs file and dir buffer sizes +CFLAGS += -DVFS_FILE_BUFFER_SIZE=56 -DVFS_DIR_BUFFER_SIZE=44 +# Reduce LFS_NAME_MAX to 31 (as VFS_NAME_MAX default) +CFLAGS += -DLFS_NAME_MAX=31