1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-15 09:33:50 +01:00

boards/nrf52840dk: configure littlefs2 on external flash

This commit is contained in:
Benjamin Valentin 2022-02-14 14:37:33 +01:00
parent 53756e24cb
commit 0bbcc4d924
2 changed files with 10 additions and 0 deletions

View File

@ -4,4 +4,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
include $(RIOTBOARD)/common/nrf52xxxdk/Makefile.dep include $(RIOTBOARD)/common/nrf52xxxdk/Makefile.dep

View File

@ -54,4 +54,8 @@ static mtd_spi_nor_t nrf52840dk_nor_dev = {
mtd_dev_t *mtd0 = (mtd_dev_t *)&nrf52840dk_nor_dev; mtd_dev_t *mtd0 = (mtd_dev_t *)&nrf52840dk_nor_dev;
#ifdef MODULE_VFS_DEFAULT
#include "vfs_default.h"
VFS_AUTO_MOUNT(littlefs2, VFS_MTD(nrf52840dk_nor_dev), VFS_DEFAULT_NVM(0), 0);
#endif
#endif #endif