![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
with CAN
Dependencies: mbed mbed-STM32F103C8T6 USBDevice_STM32F103
Diff: main.cpp
- Revision:
- 8:114dbc93d9f7
- Parent:
- 7:bd396db062ea
- Child:
- 9:17c7c4106da5
--- a/main.cpp Wed Feb 20 12:42:52 2019 +0000 +++ b/main.cpp Mon May 13 08:42:21 2019 +0000 @@ -1,14 +1,14 @@ -//#include "stm32f103c8t6.h" +#include "stm32f103c8t6.h" #include "mbed.h" #include "USBSerial.h" DigitalOut myled(LED1); int main() { - //confSysClock(); //Configure system clock (72MHz HSE clock, 48MHz USB clock) + confSysClock(); //Configure system clock (72MHz HSE clock, 48MHz USB clock) Serial pc(PA_2, PA_3); - //USBSerial usbSerial; // connection is blocked when USB is not plugged in +// USBSerial usbSerial; // connection is 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) {