*

Dependencies:   mbed-STM32F103C8T6 mbed

Files at this revision

API Documentation at this revision

Comitter:
BaserK
Date:
Sat Apr 29 15:27:26 2017 +0000
Commit message:
*

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-STM32F103C8T6.lib Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r 55ab821faa60 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sat Apr 29 15:27:26 2017 +0000
@@ -0,0 +1,31 @@
+#include "stm32f103c8t6.h"
+#include "mbed.h"
+
+// Digital Out Example 
+// Blinks the on-board LED at desired frequency
+
+DigitalOut led(PB_12);
+const int delay_time = 100;
+
+int main()
+{
+    confSysClock();     //Configure system clock (72MHz HSE clock, 48MHz USB clock)    
+    
+    // led is off initially (one side of the led is connected to 3.3V)
+    led = 1;
+
+    while (1)
+    {
+        // led is off
+        led = 1;
+        
+        // wait for specified amount of time
+        wait_ms(delay_time);
+        
+        // led is on 
+        led = 0;
+        
+        // wait for specified amount of time
+        wait_ms(delay_time);
+    }
+}
\ No newline at end of file
diff -r 000000000000 -r 55ab821faa60 mbed-STM32F103C8T6.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed-STM32F103C8T6.lib	Sat Apr 29 15:27:26 2017 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/hudakz/code/mbed-STM32F103C8T6/#09d8c2eacb4d
diff -r 000000000000 -r 55ab821faa60 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sat Apr 29 15:27:26 2017 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/b0220dba8be7
\ No newline at end of file