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

boards/seeedstudio-gd32: add mtd_sdcard_default

This commit is contained in:
Gunar Schorcht 2023-02-21 16:12:30 +01:00
parent cf540a2648
commit 30f448d2e9
3 changed files with 13 additions and 0 deletions

View File

@ -24,6 +24,8 @@ config BOARD_SEEEDSTUDIO_GD32
select HAS_TINYUSB_DEVICE
select HAVE_SAUL_GPIO
select HAVE_MTD_SDCARD_DEFAULT
select MODULE_FATFS_VFS if MODULE_VFS_DEFAULT
select PACKAGE_TINYUSB if TEST_KCONFIG
choice STDIO_IMPLEMENTATION

View File

@ -2,5 +2,15 @@ ifneq (,$(filter saul_default,$(USEMODULE)))
USEMODULE += saul_gpio
endif
ifneq (,$(filter mtd,$(USEMODULE)))
USEMODULE += mtd_sdcard_default
endif
# default to using fatfs on SD card
ifneq (,$(filter vfs_default,$(USEMODULE)))
USEMODULE += fatfs_vfs
USEMODULE += mtd
endif
include $(RIOTBOARD)/common/makefiles/stdio_tinyusb_cdc_acm.dep.mk
include $(RIOTBOARD)/common/gd32v/Makefile.dep

View File

@ -10,6 +10,7 @@ FEATURES_PROVIDED += periph_uart
# Other features provided by the board (in alphabetical order)
FEATURES_PROVIDED += highlevel_stdio
FEATURES_PROVIDED += sdcard_spi
FEATURES_PROVIDED += tinyusb_device
include $(RIOTBOARD)/common/gd32v/Makefile.features