Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: SDFileSystem mbed
Revision 0:66e65930276f, committed 2017-01-12
- Comitter:
- dariusz777
- Date:
- Thu Jan 12 19:37:53 2017 +0000
- Commit message:
- Ready
Changed in this revision
--- /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