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: FatFileSystem mbed MSCFileSystem
Revision 0:22a5db2c7926, committed 2012-07-23
- Comitter:
- chris
- Date:
- Mon Jul 23 09:35:54 2012 +0000
- Child:
- 1:1f7a5d9bf5f7
- Commit message:
- Working with new Compiler repos;
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/FatFileSystem.lib Mon Jul 23 09:35: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/MSCFileSystem.lib Mon Jul 23 09:35:54 2012 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/chris/code/MSCFileSystem/#8002c81986fc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Mon Jul 23 09:35:54 2012 +0000
@@ -0,0 +1,39 @@
+#include "mbed.h"
+#include "MSCFileSystem.h"
+
+MSCFileSystem sd("sd");
+
+
+DigitalOut led1(LED1);
+DigitalOut led2(LED2);
+DigitalOut led3(LED3);
+DigitalOut led4(LED4);
+
+int main() {
+
+ printf("This is version 1.0 of the USB host test\n");
+
+ FILE *fp = fopen("/sd/test.txt","w");
+ printf("Create filehandle\n");
+
+ led1= 1;
+
+ if (fp == NULL) { //make sure it's been opened
+ printf("its bad :-(\n");
+ led2 = 1;
+ exit(1);
+ }
+ printf("its good :-)\n");
+
+ led3 = 1;
+
+ fprintf(fp,"Hello world!\n");
+ printf("Write to the file\n");
+
+
+ fclose(fp);
+ printf("Close the handle\n");
+
+ led4 = 1;
+ printf("\n");
+}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Mon Jul 23 09:35:54 2012 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/737756e0b479 \ No newline at end of file