Skip to content

Commit

Permalink
boards/seeedstudio-gd32: add mtd_sdcard_default
Browse files Browse the repository at this point in the history
  • Loading branch information
gschorcht committed Feb 22, 2023
1 parent cf540a2 commit 30f448d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions boards/seeedstudio-gd32/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 10 additions & 0 deletions boards/seeedstudio-gd32/Makefile.dep
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions boards/seeedstudio-gd32/Makefile.features
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 30f448d

Please sign in to comment.