![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
based on hudakz USBSerial example - blinks with capslock and onboard LED.
Dependencies: USBDevice_STM32F103 mbed-STM32F103C8T6 mbed
Fork of STM32F103C8T6_USBSerial by
main.cpp
- Committer:
- hudakz
- Date:
- 2016-07-08
- Revision:
- 0:0279e8c1f111
- Child:
- 1:0e1269402efd
File content as of revision 0:0279e8c1f111:
#include "stm32f103c8t6.h" #include "mbed.h" #include "USBSerial.h" Serial pc(PA_2, PA_3); DigitalOut myled(LED1); int main() { confSysClock(48); // Configuring system clock for USB USBSerial usbSerial; pc.baud(9600); while(1) { myled = !myled; pc.printf("I am a serial port\r\n"); usbSerial.printf("I am an USB serial port\r\n"); wait_ms(1000); } }