Skip to content

Commit 5bd7fb5

Browse files
committed
fixup! fixup! tests/pkg/fatfs_vfs: use default MTD if enabled by the board
1 parent 30c497f commit 5bd7fb5

File tree

2 files changed

+5
-20
lines changed

2 files changed

+5
-20
lines changed

tests/pkg/fatfs_vfs/Makefile

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
11
include ../Makefile.pkg_common
22

3-
# boards with SD Card connected to a SD/MMC host controller
4-
BOARD_WITH_MTD_SDMMC := \
5-
esp32-olimex-evb \
6-
esp32-wrover-kit \
7-
stm32f746g-disco \
8-
same54-xpro \
9-
stm32l496g-disco \
10-
#
11-
123
USEMODULE += fatfs_vfs
134
FEATURES_OPTIONAL += periph_rtc
145
FEATURES_REQUIRED += periph_spi
@@ -30,12 +21,6 @@ ifneq (,$(filter native native32 native64,$(BOARD)))
3021
CFLAGS += -DMTD_NATIVE_FILENAME=$(MTD_NATIVE_FILENAME)
3122
CFLAGS += -DFATFS_IMAGE_FILE_SIZE_MIB=$(FATFS_IMAGE_FILE_SIZE_MIB)
3223
CFLAGS += -DMTD_SECTOR_NUM=$(MTD_SECTOR_NUM)
33-
else ifneq (,$(filter $(BOARD_WITH_MTD_SDMMC),$(BOARD)))
34-
# use mtd_sdmmc for boards with SD Card connected to SD/MMC host controller
35-
USEMODULE += mtd_sdmmc
36-
else
37-
# use mtd_card for SD Cards in SPI mode otherwise
38-
USEMODULE += mtd_sdcard
3924
endif
4025

4126
include $(RIOTBASE)/Makefile.include

tests/pkg/fatfs_vfs/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ or your FS will probably get damaged.
2525

2626
# Real Hardware
2727

28-
On real hardware, either the SD Card connected to a SD/MMC controller is used
29-
or an SD Card in SPI mode using the driver module `sdcard_spi`. Whether a board
30-
has an SD card connected to an SD/MMC controller is defined in the list by the
31-
Makefile variable `BOARD_WITH_MTD_SDMMC`. Generally any device that supports
32-
the mtd-interface can be used with FatFS.
28+
On real hardware, an SD card is used by default either via an SD/MMC controller
29+
in SD mode or via an SPI interface in SPI mode using the driver module
30+
`sdcard_spi`. Whether the SD card is used with an SD/MMC controller in
31+
SD mode is determined by the board by enabling the `mtd_sdmmc_default` module.
32+
Generally any device that supports the mtd-interface can be used with FatFS.
3333

3434
To use the automated test in pkg_fatfs_vfs you need to copy the generated image
3535
to your storage device (e.g. your SD-card). To copy the image onto the card you

0 commit comments

Comments
 (0)