used the mbed folder from a the frdm_gpio program to get the blinky program to compile
Fork of mbed-os-example-mbed5-blinky by
Revision 48:4c41b44e5759, committed 2017-10-04
- 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
Binary file img/uvision.png has changed
--- 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
--- 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
--- /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
