mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-16 18:13:49 +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)))
|
ifneq (,$(filter mtd,$(USEMODULE)))
|
||||||
USEMODULE += mtd_mci
|
USEMODULE += mtd_mci
|
||||||
endif
|
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;
|
mtd_dev_t *mtd0 = &_mtd_mci;
|
||||||
#endif
|
#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)
|
void led_init(void)
|
||||||
{
|
{
|
||||||
/* LEDs */
|
/* LEDs */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user