[riot-notifications] [RIOT-OS/RIOT] examples/filesystem: add support for fatfs on SD card (#13993)

benpicco notifications at github.com
Tue May 26 16:12:55 CEST 2020

@benpicco commented on this pull request.

> +#if !defined(MTD_0) && MODULE_MTD_SDCARD
+#include "mtd_sdcard.h"
+#include "sdcard_spi.h"
+#include "sdcard_spi_params.h"
+#define SDCARD_SPI_NUM ARRAY_SIZE(sdcard_spi_params)
+extern sdcard_spi_t sdcard_spi_devs[SDCARD_SPI_NUM];
+mtd_sdcard_t mtd_sdcard_devs[SDCARD_SPI_NUM];
+/* always default to first sdcard*/
+static mtd_dev_t *mtd0 = (mtd_dev_t*)&mtd_sdcard_devs[0];
+#define MTD_0 mtd0

I also brought it more in line with other MTD examples. 

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200526/55287372/attachment.htm>

More information about the notifications mailing list