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:
parent
086fe35951
commit
e57fd0888e
@ -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
|
||||
|
||||
@ -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 */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user