Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Crocker <dcrocker@eschertech.com>2020-07-17 17:46:09 +0300
committerDavid Crocker <dcrocker@eschertech.com>2020-07-17 17:46:09 +0300
commit19bfef5b6a42fbad7669523fda47e6d0c12c141a (patch)
treead52e573b6105801149d27cc35f4ebee32556b42 /src/Storage
parent8363d09520ae4727c3112a0bb2a4710cddbf92c7 (diff)
Various fixes
Corrections to ST7567 LCD driver (but still not working on Duet 3 Mini) Fixed CS rising before clock had finished on shared SPI on Duet 3 Mini
Diffstat (limited to 'src/Storage')
-rw-r--r--src/Storage/MassStorage.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Storage/MassStorage.cpp b/src/Storage/MassStorage.cpp
index 1138878a..d9d40d84 100644
--- a/src/Storage/MassStorage.cpp
+++ b/src/Storage/MassStorage.cpp
@@ -6,13 +6,13 @@
#include <Libraries/sd_mmc/sd_mmc.h>
-#if !defined(__LPC17xx__) && !SAME5x
-# include <sam/drivers/hsmci/hsmci.h>
-#endif
-
// Check that the LFN configuration in FatFS is sufficient
static_assert(FF_MAX_LFN >= MaxFilenameLength, "FF_MAX_LFN too small");
+// Check that the correct number of SD cards is configured in the library
+#include <Libraries/sd_mmc/conf_sd_mmc.h>
+static_assert(SD_MMC_MEM_CNT == NumSdCards);
+
// A note on using mutexes:
// Each SD card volume has its own mutex. There is also one for the file table, and one for the find first/find next buffer.
// The FatFS subsystem locks and releases the appropriate volume mutex when it is called.