public Test program for usbhostmsd looking at ridiculous resource usage

Dependencies:   test_USBHost mbed

Fork of USBHostMSD_HelloWorld by Samuel Mokrani

Revision:
9:d86a5e08abcd
Parent:
4:f8a5c8aa895a
--- a/main.cpp	Thu Mar 14 14:23:42 2013 +0000
+++ b/main.cpp	Thu Mar 19 02:11:22 2015 +0000
@@ -1,5 +1,8 @@
 #include "mbed.h"
 #include "USBHostMSD.h"
+#include "ramstats.h"
+
+Serial pc(USBTX, USBRX); // tx, rx
 
 DigitalOut led(LED1);
 
@@ -35,14 +38,17 @@
             // if device disconnected, try to connect again
             if (!msd.connected())
                 break;
-        }
+        break;}
             
-    }
+    break;}
+    DisplayRAMBanks("\r\nmsd thread:\r\n");
 }
 
 
 int main() {
+    pc.baud(115200);
     Thread msdTask(msd_task, NULL, osPriorityNormal, 1024 * 4);
+    DisplayRAMBanks("\r\nmain thread:\r\n");
     while(1) {
         led=!led;
         Thread::wait(500);