[riot-notifications] [RIOT-OS/RIOT] pkg/fs: set VFS params by fs, not by the application (#13866)

Vincent Dupont notifications at github.com
Mon May 18 18:25:59 CEST 2020


@vincent-d commented on this pull request.



> @@ -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

IIRC, there is a mechanism in littlefs to include a config file. I guess it could be used to include `vfs.h`.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/13866#discussion_r426749456
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200518/404aa834/attachment.htm>


More information about the notifications mailing list