SDHC library test

Dependencies:   SDHCFileSystem mbed FatFileSystem

Files at this revision

API Documentation at this revision

Comitter:
okano
Date:
Tue Jul 31 06:29:54 2012 +0000
Child:
1:bc533a490622
Commit message:
old lib

Changed in this revision

FATFileSystem.lib Show annotated file Show diff for this revision Revisions of this file
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
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/FATFileSystem.lib	Tue Jul 31 06:29:54 2012 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_unsupported/code/FatFileSystem/#333d6e93e58f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SDFileSystem.lib	Tue Jul 31 06:29:54 2012 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/simon/code/SDFileSystem/#a883911244d1
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Jul 31 06:29:54 2012 +0000
@@ -0,0 +1,18 @@
+#include "mbed.h"
+#include "SDFileSystem.h"
+
+//SDFileSystem sd(p5, p6, p7, p8, "sd");
+SDFileSystem sd(p5, p6, p7, p13, "sd"); // mosi, miso, sclk, cs, name
+
+int main() {
+    printf("Hello World!\n");   
+
+    FILE *fp = fopen("/sd/aaaaaaa.txt", "w");
+    if(fp == NULL) {
+        error("Could not open file for write\n");
+    }
+    fprintf(fp, "Hello fun SD Card World, 20100616!");
+    fclose(fp); 
+
+    printf("Goodbye World!\n");
+}   
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Jul 31 06:29:54 2012 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/029aa53d7323
\ No newline at end of file