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:
- 1:eea17a20509b
- Parent:
- 0:3395699bd0df
- Child:
- 2:c0c2a61188a9
--- a/main_serial.cpp Fri Jun 12 09:30:07 2015 +0000
+++ b/main_serial.cpp Sat Jun 20 02:02:03 2015 +0000
@@ -2,11 +2,10 @@
// https://developer.mbed.org/handbook/USBSerial
#include "mbed.h"
#include "USBSerial.h"
-
-extern void L152RE_USBclock_setup();
+#include "STM32_USB48MHz.h"
int main() {
- L152RE_USBclock_setup();
+ STM32_HSI_USB48MHz(); // HSI,USB48MHz,SYSCLK32MHz
USBSerial serial;