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.
Diff: main_serial.cpp
- Revision:
- 0:3395699bd0df
- Child:
- 1:eea17a20509b
diff -r 000000000000 -r 3395699bd0df main_serial.cpp
--- /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