based on hudakz USBSerial example - blinks with capslock and onboard LED.
Dependencies: USBDevice_STM32F103 mbed-STM32F103C8T6 mbed
Fork of STM32F103C8T6_USBSerial by
Diff: main.cpp
- Revision:
- 5:0be85f1bdb35
- Parent:
- 4:00ccc80cbeb8
- Child:
- 6:bfd336d52fb4
--- a/main.cpp Sun Aug 14 09:57:58 2016 +0000 +++ b/main.cpp Wed Apr 26 17:57:55 2017 +0000 @@ -8,7 +8,8 @@ confSysClock(); //Configure system clock (72MHz HSE clock, 48MHz USB clock) Serial pc(PA_2, PA_3); - USBSerial usbSerial; + //USBSerial usbSerial; // connection must be blocked when USB is not plugged in + USBSerial usbSerial(0x1f00, 0x2012, 0x0001, false); // connection is not blocked when USB is not plugged in while(1) { myled = !myled;