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:
parent
e57fd0888e
commit
a866a745b5
@ -9,4 +9,10 @@ ifneq (,$(filter mtd,$(USEMODULE)))
|
|||||||
USEMODULE += mtd_spi_nor
|
USEMODULE += mtd_spi_nor
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# default to using littlefs2 on the external flash
|
||||||
|
ifneq (,$(filter vfs_default,$(USEMODULE)))
|
||||||
|
USEPKG += littlefs2
|
||||||
|
USEMODULE += mtd
|
||||||
|
endif
|
||||||
|
|
||||||
USEMODULE += boards_common_iotlab
|
USEMODULE += boards_common_iotlab
|
||||||
|
@ -52,4 +52,9 @@ static mtd_spi_nor_t mtd_nor_dev = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
mtd_dev_t *mtd0 = (mtd_dev_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 */
|
#endif /* MODULE_MTD */
|
||||||
|
Loading…
Reference in New Issue
Block a user