1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

boards/msba2: configure FAT on SD card

This commit is contained in:
Benjamin Valentin 2022-02-14 14:31:31 +01:00
parent d43ad768f1
commit 086fe35951
2 changed files with 11 additions and 2 deletions

View File

@ -12,3 +12,9 @@ endif
ifneq (,$(filter mtd,$(USEMODULE)))
USEMODULE += mtd_mci
endif
# default to using FAT on the SD card
ifneq (,$(filter vfs_default,$(USEMODULE)))
USEMODULE += fatfs_vfs
USEMODULE += mtd
endif

View File

@ -27,11 +27,14 @@
#include "board.h"
#include "cpu.h"
#include "mtd.h"
#include "periph/init.h"
#include "stdio_base.h"
#ifdef MODULE_MTD_MCI
extern const mtd_desc_t mtd_mci_driver;
static mtd_dev_t _mtd_mci = { .driver = &mtd_mci_driver };
mtd_dev_t *mtd0 = &_mtd_mci;
#endif
#ifdef MODULE_VFS_DEFAULT
#include "vfs_default.h"
VFS_AUTO_MOUNT(fatfs, { .dev = &_mtd_mci }, VFS_DEFAULT_SD(0), 0);
#endif