mbed-classic on Bluepill

Dependencies:   mbed-STM32F103C8T6 mbed

Fork of Testato-mbed-dev-Bluepill by Testato Testato

Revision:
11:2cc880f72fc1
Parent:
10:69c66b10784c
Child:
12:3ddf4333812e
--- a/main.cpp	Sat Sep 10 16:57:05 2016 +0000
+++ b/main.cpp	Sat Sep 10 21:00:17 2016 +0000
@@ -4,8 +4,12 @@
 //Serial      pc(PA_2, PA_3);
 DigitalOut  myled(LED1);
  
-int main() {
-    while(1) {
+int main() 
+{
+confSysClock();     //Configure system clock (72MHz HSE clock, 48MHz USB clock)
+
+    while(1) 
+    {
         // The on-board LED is connected, via a resistor, to +3.3V (not to GND). 
         // So to turn the LED on or off we have to set it to 0 or 1 respectively
         myled = 0;      // turn the LED on