mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
boards/native: use default mount point
This commit is contained in:
parent
2d352306ea
commit
a652bea27e
@ -35,7 +35,7 @@ mtd_dev_t *mtd0 = &mtd0_dev.base;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef MODULE_VFS
|
#ifdef MODULE_VFS
|
||||||
#include "vfs.h"
|
#include "vfs_default.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* On `native` we define auto-mounts for every file system.
|
* On `native` we define auto-mounts for every file system.
|
||||||
@ -47,27 +47,19 @@ mtd_dev_t *mtd0 = &mtd0_dev.base;
|
|||||||
|
|
||||||
/* littlefs support */
|
/* littlefs support */
|
||||||
#if defined(MODULE_LITTLEFS)
|
#if defined(MODULE_LITTLEFS)
|
||||||
|
VFS_AUTO_MOUNT(littlefs, VFS_MTD(mtd0_dev), VFS_DEFAULT_NVM(0), 0);
|
||||||
#include "fs/littlefs_fs.h"
|
|
||||||
VFS_AUTO_MOUNT(littlefs, VFS_MTD(mtd0_dev), "/nvm", 0);
|
|
||||||
|
|
||||||
/* littlefs2 support */
|
/* littlefs2 support */
|
||||||
#elif defined(MODULE_LITTLEFS2)
|
#elif defined(MODULE_LITTLEFS2)
|
||||||
|
VFS_AUTO_MOUNT(littlefs2, VFS_MTD(mtd0_dev), VFS_DEFAULT_NVM(0), 0);
|
||||||
#include "fs/littlefs2_fs.h"
|
|
||||||
VFS_AUTO_MOUNT(littlefs2, VFS_MTD(mtd0_dev), "/nvm", 0);
|
|
||||||
|
|
||||||
/* spiffs support */
|
/* spiffs support */
|
||||||
#elif defined(MODULE_SPIFFS)
|
#elif defined(MODULE_SPIFFS)
|
||||||
|
VFS_AUTO_MOUNT(spiffs, VFS_MTD(mtd0_dev), VFS_DEFAULT_NVM(0), 0);
|
||||||
#include "fs/spiffs_fs.h"
|
|
||||||
VFS_AUTO_MOUNT(spiffs, VFS_MTD(mtd0_dev), "/nvm", 0);
|
|
||||||
|
|
||||||
/* FAT support */
|
/* FAT support */
|
||||||
#elif defined(MODULE_FATFS_VFS)
|
#elif defined(MODULE_FATFS_VFS)
|
||||||
|
VFS_AUTO_MOUNT(fatfs, VFS_MTD(mtd0_dev), VFS_DEFAULT_NVM(0), 0);
|
||||||
#include "fs/fatfs.h"
|
|
||||||
VFS_AUTO_MOUNT(fatfs, VFS_MTD(mtd0_dev), "/nvm", 0);
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
#endif /* MODULE_VFS */
|
#endif /* MODULE_VFS */
|
||||||
|
Loading…
Reference in New Issue
Block a user