1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

boards/iotlab-m3: configure littlefs2 on external flash

This commit is contained in:
Benjamin Valentin 2022-02-14 14:33:51 +01:00
parent e57fd0888e
commit a866a745b5
2 changed files with 11 additions and 0 deletions

View File

@ -9,4 +9,10 @@ ifneq (,$(filter mtd,$(USEMODULE)))
USEMODULE += mtd_spi_nor
endif
# default to using littlefs2 on the external flash
ifneq (,$(filter vfs_default,$(USEMODULE)))
USEPKG += littlefs2
USEMODULE += mtd
endif
USEMODULE += boards_common_iotlab

View File

@ -52,4 +52,9 @@ static mtd_spi_nor_t mtd_nor_dev = {
};
mtd_dev_t *mtd0 = (mtd_dev_t *)&mtd_nor_dev;
#ifdef MODULE_VFS_DEFAULT
#include "vfs_default.h"
VFS_AUTO_MOUNT(littlefs2, VFS_MTD(mtd_nor_dev), VFS_DEFAULT_NVM(0), 0);
#endif
#endif /* MODULE_MTD */