The wait in mci_WaitForEvent will delay all card transactions.

Dependencies:   FATFileSystem

Fork of EALib by EmbeddedArtists AB

Revision:
3:9d31a3c5013e
Parent:
0:0fdadbc3d852
diff -r 1c6134c80dc5 -r 9d31a3c5013e MCIFileSystem.h
--- a/MCIFileSystem.h	Fri Sep 27 14:07:07 2013 +0000
+++ b/MCIFileSystem.h	Wed Oct 09 07:51:52 2013 +0000
@@ -18,10 +18,15 @@
  *         wait(0.5);
  *     }
  *     
+ *     printf("Found SD/MMC card, writing to /mci/myfile.txt ...\n");
+ *     
  *     FILE *fp = fopen("/mci/myfile.txt", "w");
  *     if (fp != NULL) {
  *         fprintf(fp, "Hello World!\n");
  *         fclose(fp);
+ *         printf("Wrote to /mci/myfile.txt\n");
+ *     } else {
+ *         printf("Failed to open /mci/myfile.txt\n");
  *     }
  * }
  * @endcode