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:
parent
92d9d5676a
commit
33e1d38dae
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user