SDFileSystem

Dependencies:   FATFileSystem

Fork of SDFileSystem by Neil Thiessen

Files at this revision

API Documentation at this revision

Comitter:
nameless129
Date:
Sun Jul 24 09:16:00 2016 +0000
Parent:
24:a52e682a1ce4
Commit message:
first commit

Changed in this revision

SDFileSystem.cpp Show annotated file Show diff for this revision Revisions of this file
SDFileSystem.h Show annotated file Show diff for this revision Revisions of this file
diff -r a52e682a1ce4 -r 118525dc2659 SDFileSystem.cpp
--- a/SDFileSystem.cpp	Tue May 24 15:50:26 2016 +0000
+++ b/SDFileSystem.cpp	Sun Jul 24 09:16:00 2016 +0000
@@ -24,7 +24,7 @@
       m_Spi(mosi, miso, sclk),
       m_Cs(cs, 1),
       m_Cd(cd),
-      m_FREQ(hz)
+      m_FREQ(50000000)
 {
     //Initialize the member variables
     m_CardType = CARD_NONE;
diff -r a52e682a1ce4 -r 118525dc2659 SDFileSystem.h
--- a/SDFileSystem.h	Tue May 24 15:50:26 2016 +0000
+++ b/SDFileSystem.h	Sun Jul 24 09:16:00 2016 +0000
@@ -100,7 +100,7 @@
      * @param cdtype The type of card detect switch.
      * @param hz The SPI bus frequency (defaults to 1MHz).
      */
-    SDFileSystem(PinName mosi, PinName miso, PinName sclk, PinName cs, const char* name, PinName cd = NC, SwitchType cdtype = SWITCH_NONE, int hz = 1000000);
+    SDFileSystem(PinName mosi, PinName miso, PinName sclk, PinName cs, const char* name, PinName cd = NC, SwitchType cdtype = SWITCH_NONE, int hz = 20000000);
 
     /** Determine whether or not a card is present
      *