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 21, 2023
1 parent 27752e5 commit 33fb7bc
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions boards/seeedstudio-gd32/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,7 @@ config BOARD_SEEEDSTUDIO_GD32
select HAS_PERIPH_UART
select HAVE_SAUL_GPIO

select HAVE_MTD_SDCARD_DEFAULT
select MODULE_FATFS_VFS if MODULE_VFS_DEFAULT

source "$(RIOTBOARD)/common/gd32v/Kconfig"
10 changes: 10 additions & 0 deletions boards/seeedstudio-gd32/Makefile.dep
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,14 @@ 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/gd32v/Makefile.dep
3 changes: 3 additions & 0 deletions boards/seeedstudio-gd32/Makefile.features
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,7 @@ FEATURES_PROVIDED += periph_spi
FEATURES_PROVIDED += periph_timer
FEATURES_PROVIDED += periph_uart

# Other features provided by the board (in alphabetical order)
FEATURES_PROVIDED += sdcard_spi

include $(RIOTBOARD)/common/gd32v/Makefile.features

0 comments on commit 33fb7bc

Please sign in to comment.