NUCLEO-F042K6 USBDevice example code

Dependencies:   F042K6_USBDevice mbed

Fork of L152RE_USBDevice_example by Norimasa Okamoto

Revision:
0:3395699bd0df
Child:
1:eea17a20509b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main_serial.cpp	Fri Jun 12 09:30:07 2015 +0000
@@ -0,0 +1,18 @@
+#if 0
+// https://developer.mbed.org/handbook/USBSerial
+#include "mbed.h"
+#include "USBSerial.h"
+
+extern void L152RE_USBclock_setup();
+
+int main() {
+    L152RE_USBclock_setup();
+
+    USBSerial serial;
+
+    while(1) {
+        serial.printf("I am a virtual serial port\r\n");
+        wait_ms(1000);
+    }
+}
+#endif