diff --git a/boards/same54-xpro/Makefile.dep b/boards/same54-xpro/Makefile.dep index e3cf98b794..e2b4474207 100644 --- a/boards/same54-xpro/Makefile.dep +++ b/boards/same54-xpro/Makefile.dep @@ -16,3 +16,9 @@ endif ifneq (,$(filter netdev_default,$(USEMODULE))) USEMODULE += sam0_eth endif + +# default to using littlefs2 on the external flash +ifneq (,$(filter vfs_default,$(USEMODULE))) + USEPKG += littlefs2 + USEMODULE += mtd +endif diff --git a/boards/same54-xpro/board.c b/boards/same54-xpro/board.c index 777a3428db..680fdbc02c 100644 --- a/boards/same54-xpro/board.c +++ b/boards/same54-xpro/board.c @@ -61,6 +61,11 @@ static mtd_at24cxxx_t at24mac_dev = { .params = at24cxxx_params, }; mtd_dev_t *mtd1 = (mtd_dev_t *)&at24mac_dev; + +#ifdef MODULE_VFS_DEFAULT +#include "fs/littlefs2_fs.h" +VFS_AUTO_MOUNT(littlefs2, VFS_MTD(same54_nor_dev), "/nvm", 0); +#endif #endif /* MODULE_MTD */ void board_init(void)