test for sd card

Dependencies:   SDFileSystem mbed

Fork of SDFileSystem_HelloWorld by Neil Thiessen

Files at this revision

API Documentation at this revision

Comitter:
neilt6
Date:
Thu Aug 07 16:46:14 2014 +0000
Parent:
6:e91aaa090d19
Child:
8:ff23060bfa62
Commit message:
Updated SDFileSystem library

Changed in this revision

SDFileSystem.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/SDFileSystem.lib	Fri Aug 01 15:01:20 2014 +0000
+++ b/SDFileSystem.lib	Thu Aug 07 16:46:14 2014 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/neilt6/code/SDFileSystem/#61db99e52c0d
+http://mbed.org/users/neilt6/code/SDFileSystem/#7b6acbb6739b
--- a/main.cpp	Fri Aug 01 15:01:20 2014 +0000
+++ b/main.cpp	Thu Aug 07 16:46:14 2014 +0000
@@ -2,10 +2,13 @@
 #include "SDFileSystem.h"
 
 DigitalIn button(p21, PullUp);
-SDFileSystem sd(p5, p6, p7, p20, "sd", p22, SDFileSystem::SWITCH_NC, 6000000);
+SDFileSystem sd(p5, p6, p7, p20, "sd", p22, SDFileSystem::SWITCH_NO, 20000000);
 
 int main()
 {
+    //Enable large frames for performance
+    sd.large_frames(true);
+
     while(1) {
         //Print the start message
         printf("\nPress the button to perform tests: ");