1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-15 17:43:51 +01:00

boards/mcb2388: configure FAT on SD card

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

View File

@ -7,3 +7,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

@ -31,6 +31,11 @@ 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
void led_init(void)
{
/* LEDs */