Clock speed as been increased to 1MHz. This frequency was chosen by default as it did not appear possible to set it any higher than that.

Dependencies:   FATFileSystem

Dependents:   Motion_Logging_Project

Fork of SDFileSystem by SparkFun Electronics

Revision:
4:d21b3ceaf95c
Parent:
3:7b35d1709458
diff -r 7b35d1709458 -r d21b3ceaf95c SDFileSystem.cpp
--- a/SDFileSystem.cpp	Mon Mar 17 14:34:01 2014 +0000
+++ b/SDFileSystem.cpp	Mon Jul 27 17:16:35 2015 +0000
@@ -141,7 +141,7 @@
 
 int SDFileSystem::initialise_card() {
     // Set to 100kHz for initialisation, and clock card with cs = 1
-    _spi.frequency(100000);
+    _spi.frequency(40000000);
     _cs = 1;
     for (int i = 0; i < 16; i++) {
         _spi.write(0xFF);