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: 0_USB_Serial/main.cpp
- Revision:
- 1:7a568319eeb7
- Parent:
- 0:c6dea1f647f6
--- a/0_USB_Serial/main.cpp Mon Jan 06 10:56:13 2020 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,19 +0,0 @@
-
-//#define EXAMPLE_0_SERIAL
-#ifdef EXAMPLE_0_SERIAL
-
-#include "mbed.h"
-#include "USBSerial.h"
-
-Serial pc(USBTX, USBRX, 115200);
-USBSerial usb_serial;
-
-int main(void){
- uint32_t num = 0;
- while(true) {
- usb_serial.printf("I am a USB virtual serial port: %d\r\n", num++);
- pc.printf("I am a ST-Link virtual serial port: %d\r\n", num + 10000);
- }
-}
-
-#endif // EXAMPLE_0_SERIAL