![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
with CAN
Dependencies: mbed mbed-STM32F103C8T6 USBDevice_STM32F103
main.cpp
- Committer:
- hudakz
- Date:
- 2016-08-14
- Revision:
- 4:00ccc80cbeb8
- Parent:
- 3:dd01afd4f893
- Child:
- 5:0be85f1bdb35
File content as of revision 4:00ccc80cbeb8:
#include "stm32f103c8t6.h" #include "mbed.h" #include "USBSerial.h" DigitalOut myled(LED1); int main() { confSysClock(); //Configure system clock (72MHz HSE clock, 48MHz USB clock) Serial pc(PA_2, PA_3); USBSerial usbSerial; while(1) { myled = !myled; pc.printf("I am a serial port\r\n"); // 9600 bit/s usbSerial.printf("I am a USB serial port\r\n"); // 12 Mbit/s (USB full-speed) wait_ms(1000); } }