![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
with CAN
Dependencies: mbed mbed-STM32F103C8T6 USBDevice_STM32F103
Diff: main.cpp
- Revision:
- 5:0be85f1bdb35
- Parent:
- 4:00ccc80cbeb8
- Child:
- 6:823505e28d62
--- 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;