USB composite device example program, drag-and-drop flash writer.

Dependencies:   SWD USBDevice mbed BaseDAP

Revision:
1:ea8e179320d7
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/test2_USBMSD_Drop.cpp	Sat Sep 28 03:21:14 2013 +0000
@@ -0,0 +1,26 @@
+// test2_USBMSD_Drop.cpp 2013/9/26
+#if 0
+#include "mbed.h"
+#include "USBMSD_Drop.h"
+
+Serial pc(USBTX, USBRX);
+USBMSD_Drop* host;
+
+void callback(const uint8_t* data, int len, int offset, int total)
+{
+    for(int i = 0; i < len && (offset+i) < total; i++) {
+        pc.putc(data[i]);
+    }
+}
+
+int main()
+{
+    pc.baud(921600);
+    //pc.baud(9600);
+    pc.printf("%s\n", __FILE__);
+
+    host = new USBMSD_Drop();
+    host->attach(callback);
+    while(1); // forever
+}
+#endif