#include <string.h>
+
+#ifdef SD_INCLUDE_SPI_SOURCE
+ #include <drv/sd_spi.c>
+#endif
+
void sd_writeTest(Sd *sd)
{
uint8_t buf[SD_DEFAULT_BLOCKLEN];
#endif
+// For old compatibility.
+#ifndef CONFIG_SD_MODE
+ #define CONFIG_SD_MODE SD_SPI_MODE
+ #define SD_INCLUDE_SPI_SOURCE
+#endif
#if CONFIG_SD_OLD_INIT
+
#if !(ARCH & ARCH_NIGHTTEST)
#warning "Deprecated: this API will be removed in the next major release,"
#warning "please disable CONFIG_SD_OLD_INIT and pass explicitly the SD context to sd_init()."