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.
main_serial.cpp@1:eea17a20509b, 2015-06-20 (annotated)
- Committer:
- va009039
- Date:
- Sat Jun 20 02:02:03 2015 +0000
- Revision:
- 1:eea17a20509b
- Parent:
- 0:3395699bd0df
- Child:
- 2:c0c2a61188a9
add STM32_USB48MHz lib.
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| va009039 | 0:3395699bd0df | 1 | #if 0 |
| va009039 | 0:3395699bd0df | 2 | // https://developer.mbed.org/handbook/USBSerial |
| va009039 | 0:3395699bd0df | 3 | #include "mbed.h" |
| va009039 | 0:3395699bd0df | 4 | #include "USBSerial.h" |
| va009039 | 1:eea17a20509b | 5 | #include "STM32_USB48MHz.h" |
| va009039 | 0:3395699bd0df | 6 | |
| va009039 | 0:3395699bd0df | 7 | int main() { |
| va009039 | 1:eea17a20509b | 8 | STM32_HSI_USB48MHz(); // HSI,USB48MHz,SYSCLK32MHz |
| va009039 | 0:3395699bd0df | 9 | |
| va009039 | 0:3395699bd0df | 10 | USBSerial serial; |
| va009039 | 0:3395699bd0df | 11 | |
| va009039 | 0:3395699bd0df | 12 | while(1) { |
| va009039 | 0:3395699bd0df | 13 | serial.printf("I am a virtual serial port\r\n"); |
| va009039 | 0:3395699bd0df | 14 | wait_ms(1000); |
| va009039 | 0:3395699bd0df | 15 | } |
| va009039 | 0:3395699bd0df | 16 | } |
| va009039 | 0:3395699bd0df | 17 | #endif |