experimenting with the clock frequency

Dependencies:   FATFileSystem

Fork of SDFileSystem by mbed official

Files at this revision

API Documentation at this revision

Comitter:
Danton
Date:
Sat Feb 02 14:28:21 2013 +0000
Parent:
2:c8f66dc765d4
Commit message:
quicker than the eye

Changed in this revision

SDFileSystem.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r c8f66dc765d4 -r 7537b8c723fd SDFileSystem.cpp
--- 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;
 }