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.
Dependencies: USBDevice_STM32F103 mbed-STM32F103C8T6 mbed
Fork of STM32F103C8T6_USBSerial by
Revision 3:dd01afd4f893, committed 2016-08-02
- Comitter:
- hudakz
- Date:
- Tue Aug 02 19:39:53 2016 +0000
- Parent:
- 2:2c819b99d216
- Child:
- 4:00ccc80cbeb8
- Commit message:
- Updated
Changed in this revision
| 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 |
--- a/main.cpp Sat Jul 09 09:18:46 2016 +0000
+++ b/main.cpp Tue Aug 02 19:39:53 2016 +0000
@@ -6,15 +6,13 @@
DigitalOut myled(LED1);
int main() {
- confSysClock(48); //Configure system clock (72MHz HSE clock, 48MHz APB1 peripheral clock)
+ confSysClock(); //Configure system clock (72MHz HSE clock, 48MHz USB clock)
USBSerial usbSerial;
- pc.baud(9600);
-
while(1) {
myled = !myled;
pc.printf("I am a serial port\r\n"); // 9600 bit/s
- usbSerial.printf("I am a USB serial port\r\n"); // 12 Mbit/s (USB full speed)
+ usbSerial.printf("I am a USB serial port\r\n"); // 12 Mbit/s (USB full-speed)
wait_ms(1000);
}
}
--- a/mbed-STM32F103C8T6.lib Sat Jul 09 09:18:46 2016 +0000 +++ b/mbed-STM32F103C8T6.lib Tue Aug 02 19:39:53 2016 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/hudakz/code/mbed-STM32F103C8T6/#306609fe9dc8 +http://mbed.org/users/hudakz/code/mbed-STM32F103C8T6/#9fbbea76d6f6
