diff --git a/boards/msba2/Makefile.dep b/boards/msba2/Makefile.dep index 66367441c8..bfc4187d19 100644 --- a/boards/msba2/Makefile.dep +++ b/boards/msba2/Makefile.dep @@ -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 diff --git a/boards/msba2/board_init.c b/boards/msba2/board_init.c index 0b59e720d4..f7bc1e3f6e 100644 --- a/boards/msba2/board_init.c +++ b/boards/msba2/board_init.c @@ -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