From c4de3435773a1c8ca5e55e93eab8a97c2cfee9f9 Mon Sep 17 00:00:00 2001 From: Gunar Schorcht Date: Thu, 29 Jun 2023 12:50:39 +0200 Subject: [PATCH] board/esp32-mh-et-live-minikit: improve the use of SPI SD Card module --- boards/esp32-mh-et-live-minikit/Makefile.dep | 12 ++++++++++++ boards/esp32-mh-et-live-minikit/doc.txt | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/boards/esp32-mh-et-live-minikit/Makefile.dep b/boards/esp32-mh-et-live-minikit/Makefile.dep index 29d6c99ba8..9b22e1fdcb 100644 --- a/boards/esp32-mh-et-live-minikit/Makefile.dep +++ b/boards/esp32-mh-et-live-minikit/Makefile.dep @@ -1 +1,13 @@ +# if the sdcard_spi module is enabled, the SD Card Shield is used +ifneq (,$(filter sdcard_spi,$(USEMODULE))) + # default to using fatfs on SD card + ifneq (,$(filter vfs_default,$(USEMODULE))) + USEMODULE += fatfs_vfs + USEMODULE += mtd + endif + ifneq (,$(filter mtd,$(USEMODULE))) + USEMODULE += mtd_sdcard_default + endif +endif + include $(RIOTBOARD)/common/esp32/Makefile.dep diff --git a/boards/esp32-mh-et-live-minikit/doc.txt b/boards/esp32-mh-et-live-minikit/doc.txt index 8deca0fc66..7a9deb65f8 100644 --- a/boards/esp32-mh-et-live-minikit/doc.txt +++ b/boards/esp32-mh-et-live-minikit/doc.txt @@ -31,7 +31,7 @@ interesting development kit as it uses in the stackable Wemos D1 Mini format. Thus, all [shields for Wemos D1 mini](https://docs.wemos.cc/en/latest/d1_mini_shield/index.html) for ESP8266 can also be used with ESP32. Examples for such shields are: -- Micro SD-Card Shield +- Micro SD-Card Shield (enable module `sdcard_spi` to use it) - MRF24J40 IEEE 802.15.4 radio Shield - Button Shield - RGB LED Shield