experimenting with the clock frequency

Dependencies:   FATFileSystem

Fork of SDFileSystem by mbed official

Revision:
3:7537b8c723fd
Parent:
2:c8f66dc765d4
--- a/SDFileSystem.cpp	Thu Nov 29 10:56:21 2012 +0000
+++ b/SDFileSystem.cpp	Sat Feb 02 14:28:21 2013 +0000
@@ -144,7 +144,7 @@
 
 int SDFileSystem::initialise_card() {
     // Set to 100kHz for initialisation, and clock card with cs = 1
-    _spi.frequency(100000);
+    _spi.frequency(500000);
     _cs = 1;
     for (int i = 0; i < 16; i++) {
         _spi.write(0xFF);
@@ -210,7 +210,7 @@
         return 1;
     }
     
-    _spi.frequency(1000000); // Set to 1MHz for data transfer
+    _spi.frequency(5000000); // Set to 1MHz for data transfer
     return 0;
 }