1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 06:12:43 +01:00

boards/same54-xpro: default to using littlefs2 on external flash

This commit is contained in:
Benjamin Valentin 2022-02-11 16:46:56 +01:00
parent 92d9d5676a
commit 33e1d38dae
2 changed files with 11 additions and 0 deletions

View File

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

View File

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