used the mbed folder from a the frdm_gpio program to get the blinky program to compile

Dependencies:   mbed

Fork of mbed-os-example-mbed5-blinky by mbed-os-examples

Files at this revision

API Documentation at this revision

Comitter:
co657_vk96
Date:
Wed Oct 04 21:41:05 2017 +0000
Parent:
47:54bd97f836f3
Commit message:
to fix the can not open source file cmsis_os2.h error

Changed in this revision

img/uvision.png Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-os.lib 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 54bd97f836f3 -r 4c41b44e5759 img/uvision.png
Binary file img/uvision.png has changed
diff -r 54bd97f836f3 -r 4c41b44e5759 main.cpp
--- a/main.cpp	Mon Oct 02 12:30:03 2017 +0100
+++ b/main.cpp	Wed Oct 04 21:41:05 2017 +0000
@@ -1,12 +1,12 @@
 #include "mbed.h"
 
-DigitalOut led1(LED1);
+DigitalOut myled(LED1);
 
-// main() runs in its own thread in the OS
 int main() {
-    while (true) {
-        led1 = !led1;
-        wait(0.5);
+    while(1) {
+        myled = 1;
+        wait(0.2);
+        myled = 0;
+        wait(0.2);
     }
-}
-
+}
\ No newline at end of file
diff -r 54bd97f836f3 -r 4c41b44e5759 mbed-os.lib
--- a/mbed-os.lib	Mon Oct 02 12:30:03 2017 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-https://github.com/ARMmbed/mbed-os/#cc7556a92fb9320f4bebb190c6e1315af116c50c
diff -r 54bd97f836f3 -r 4c41b44e5759 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Wed Oct 04 21:41:05 2017 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/6473597d706e
\ No newline at end of file