Zoltan Hudak / Mbed OS STM32F407VET6_Hello

Files at this revision

API Documentation at this revision

Comitter:
hudakz
Date:
Sun Aug 23 12:15:22 2020 +0000
Parent:
0:1a172e2d6b86
Commit message:
Updated to Mbed OS 6.2.1

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-os.lib Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show diff for this revision Revisions of this file
--- a/main.cpp	Mon Apr 02 17:45:25 2018 +0000
+++ b/main.cpp	Sun Aug 23 12:15:22 2020 +0000
@@ -1,23 +1,20 @@
 // Blinky demo for the STM32F407VET6 boards.
-// See http://wiki.stm32duino.com/index.php?title=STM32F407.
 //
-// Use "Seed Arch Max" as target platform for the online compiler.
+// Use "Select Arch Max" as target platform for the online compiler.
 
 #include "mbed.h"
 
 DigitalOut led1(PA_6);
-DigitalOut led2(PA_7);
 
 int main()
 {
-    led2 = 1;           // off
+    printf("Starting ...\r\n");
     
-    while(true)
-    {
+    while(true) {
         led1 = 0;       // on
-        wait_ms(50);
+        ThisThread::sleep_for(50ms);
         led1 = 1;       // off
-        wait_ms(1200);
+        ThisThread::sleep_for(1000ms);
         printf("Blink\r\n");
     }
 }
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed-os.lib	Sun Aug 23 12:15:22 2020 +0000
@@ -0,0 +1,1 @@
+https://github.com/ARMmbed/mbed-os/#890f0562dc2efb7cf76a5f010b535c2b94bce849
--- a/mbed.bld	Mon Apr 02 17:45:25 2018 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/994bdf8177cb
\ No newline at end of file