A re-written SDFileSystem library with improved compatibility, CRC support, and card removal/replacement support.

Dependencies:   FATFileSystem

Dependents:   xadow_m0_SD_Hello roam_v1 roam_v2 Polytech_tours ... more

Files at this revision

API Documentation at this revision

Comitter:
neilt6
Date:
Mon Oct 27 17:02:05 2014 +0000
Parent:
14:02835aff8504
Child:
16:c2c1f0b16380
Commit message:
Added code to enable the internal pull-up resistor on MISO

Changed in this revision

SDFileSystem.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/SDFileSystem.cpp	Thu Aug 28 16:02:09 2014 +0000
+++ b/SDFileSystem.cpp	Mon Oct 27 17:02:05 2014 +0000
@@ -15,6 +15,7 @@
  */
 
 #include "SDFileSystem.h"
+#include "pinmap.h"
 #include "diskio.h"
 #include "CRC7.h"
 #include "CRC16.h"
@@ -28,6 +29,9 @@
     m_WriteValidation = true;
     m_Status = STA_NOINIT;
 
+    //Enable the internal pull-up resistor on MISO
+    pin_mode(miso, PullUp);
+
     //Configure the SPI bus
     m_Spi.format(8, 0);