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:
parent
53756e24cb
commit
0bbcc4d924
@ -4,4 +4,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
|
||||
|
||||
include $(RIOTBOARD)/common/nrf52xxxdk/Makefile.dep
|
||||
|
||||
@ -54,4 +54,8 @@ static mtd_spi_nor_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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user