Zoltan Hudak / Mbed 2 deprecated STM32F103C8T6_USBSerial

Dependencies:   mbed mbed-STM32F103C8T6 USBDevice_STM32F103

Files at this revision

API Documentation at this revision

Comitter:
hudakz
Date:
Fri Jul 08 21:19:45 2016 +0000
Child:
1:0e1269402efd
Commit message:
Initial revision

Changed in this revision

USBDevice_STM32F103.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-STM32F103C8T6.lib Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/USBDevice_STM32F103.lib	Fri Jul 08 21:19:45 2016 +0000
@@ -0,0 +1,1 @@
+https://developer.mbed.org/users/hudakz/code/USBDevice_STM32F103/#48fe9050cb4a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Jul 08 21:19:45 2016 +0000
@@ -0,0 +1,21 @@
+#include "stm32f103c8t6.h"
+#include "mbed.h"
+#include "USBSerial.h"
+
+Serial      pc(PA_2, PA_3);
+DigitalOut  myled(LED1);
+
+int main() {
+    confSysClock(48);     // Configuring system clock for USB
+    USBSerial usbSerial;
+    
+    pc.baud(9600);
+
+    while(1) {
+        myled = !myled;
+        pc.printf("I am a serial port\r\n");
+        usbSerial.printf("I am an USB serial port\r\n");
+        wait_ms(1000);
+    }
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed-STM32F103C8T6.lib	Fri Jul 08 21:19:45 2016 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/hudakz/code/mbed-STM32F103C8T6/#306609fe9dc8
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Fri Jul 08 21:19:45 2016 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/6c34061e7c34
\ No newline at end of file