Skip to content

Commit d1481be

Browse files
committed
fixup! boards/esp32s3-usb-otg: enable SDMMC peripheral
1 parent 9960a62 commit d1481be

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

boards/esp32s3-usb-otg/Makefile.dep

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@ ifneq (,$(filter vfs_default,$(USEMODULE)))
88
endif
99

1010
ifneq (,$(filter mtd,$(USEMODULE)))
11-
ifeq (,$(filter sdcard_spi,$(USEMODULE)))
12-
# use mtd_sdmmc_default if sdcard_spi isn't explicitly enabled
11+
ifneq (,$(filter sdcard_spi,$(USEMODULE)))
12+
# use SD Card in SPI mode if sdcard_spi is explicitly enabled
13+
USEMODULE += mtd_sdcard_default
14+
else
15+
# use SDMMC host for the SD Card otherwise
1316
USEMODULE += mtd_sdmmc_default
1417
endif
1518
endif

0 commit comments

Comments
 (0)