Kamil Marek / Mbed 2 deprecated SDCard_SISK

Dependencies:   SDFileSystem mbed

Files at this revision

API Documentation at this revision

Comitter:
dariusz777
Date:
Thu Jan 12 19:37:53 2017 +0000
Commit message:
Ready

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
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/SDFileSystem.lib	Thu Jan 12 19:37:53 2017 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/SDFileSystem/#8db0d3b02cec
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Jan 12 19:37:53 2017 +0000
@@ -0,0 +1,34 @@
+#include "mbed.h"
+#include "SDFileSystem.h"
+
+#define MOSI    XXX
+#define MISO    XXX
+#define SCK     XXX
+#define CS      XXX
+
+SDFileSystem sd(MOSI, MISO, SCK, CS, "sd"); // MOSI, MISO, SCK, CS
+Serial pc(USBTX, USBRX);
+FILE *fp;
+
+
+uint32_t do_list(const char *fsrc)
+{
+    DIR *d = opendir(fsrc);
+    struct dirent *p;
+    uint32_t counter = 0;
+
+    while ((p = readdir(d)) != NULL) {
+        counter++;
+        printf("%s\n", p->d_name);
+    }
+    closedir(d);
+    return counter;
+}
+
+int main()
+{
+    pc.printf("Initializing \n");
+    wait(2);
+
+   //ToDo:
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Jan 12 19:37:53 2017 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/d75b3fe1f5cb
\ No newline at end of file