mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-16 01:53:51 +01:00
boards/seeedstudio-gd32: add mtd_sdcard_default
This commit is contained in:
parent
cf540a2648
commit
30f448d2e9
@ -24,6 +24,8 @@ config BOARD_SEEEDSTUDIO_GD32
|
|||||||
select HAS_TINYUSB_DEVICE
|
select HAS_TINYUSB_DEVICE
|
||||||
select HAVE_SAUL_GPIO
|
select HAVE_SAUL_GPIO
|
||||||
|
|
||||||
|
select HAVE_MTD_SDCARD_DEFAULT
|
||||||
|
select MODULE_FATFS_VFS if MODULE_VFS_DEFAULT
|
||||||
select PACKAGE_TINYUSB if TEST_KCONFIG
|
select PACKAGE_TINYUSB if TEST_KCONFIG
|
||||||
|
|
||||||
choice STDIO_IMPLEMENTATION
|
choice STDIO_IMPLEMENTATION
|
||||||
|
|||||||
@ -2,5 +2,15 @@ ifneq (,$(filter saul_default,$(USEMODULE)))
|
|||||||
USEMODULE += saul_gpio
|
USEMODULE += saul_gpio
|
||||||
endif
|
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/makefiles/stdio_tinyusb_cdc_acm.dep.mk
|
||||||
include $(RIOTBOARD)/common/gd32v/Makefile.dep
|
include $(RIOTBOARD)/common/gd32v/Makefile.dep
|
||||||
|
|||||||
@ -10,6 +10,7 @@ FEATURES_PROVIDED += periph_uart
|
|||||||
|
|
||||||
# Other features provided by the board (in alphabetical order)
|
# Other features provided by the board (in alphabetical order)
|
||||||
FEATURES_PROVIDED += highlevel_stdio
|
FEATURES_PROVIDED += highlevel_stdio
|
||||||
|
FEATURES_PROVIDED += sdcard_spi
|
||||||
FEATURES_PROVIDED += tinyusb_device
|
FEATURES_PROVIDED += tinyusb_device
|
||||||
|
|
||||||
include $(RIOTBOARD)/common/gd32v/Makefile.features
|
include $(RIOTBOARD)/common/gd32v/Makefile.features
|
||||||
Loading…
x
Reference in New Issue
Block a user