![](/media/cache/profiles/92cf72685514221c79c830bfcd4aac4e.jpg.50x50_q85.png)
*
Dependencies: mbed-STM32F103C8T6 mbed
main.cpp
- Committer:
- BaserK
- Date:
- 2017-04-29
- Revision:
- 0:d813e98904a8
File content as of revision 0:d813e98904a8:
#include "stm32f103c8t6.h" #include "mbed.h" // Serial example // Increases a number every 200 ms and prints it on the screen Serial com(SERIAL_TX, SERIAL_RX); int data = 0; int main() { confSysClock(); //Configure system clock (72MHz HSE clock, 48MHz USB clock) com.baud(9600); while (1) { com.printf("Value is: %d \r\n", data); data++; wait_ms(200); } }