Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of Task616-mbedos54 by
Revision 4:1c9fde2d3d2d, committed 2017-03-30
- Comitter:
- noutram
- Date:
- Thu Mar 30 14:28:41 2017 +0000
- Parent:
- 3:423191a375dc
- Commit message:
- updated for mbed os 5.4
Changed in this revision
--- a/main.cpp	Wed Mar 09 10:12:51 2016 +0000
+++ b/main.cpp	Thu Mar 30 14:28:41 2017 +0000
@@ -1,5 +1,5 @@
 #include "mbed.h"
-#include "rtos.h"
+
 #include "string.h"
 #include <stdio.h>
 #include <ctype.h>
@@ -150,7 +150,7 @@
     return cc;
 }
 
-void morseGenerator( const void* arg ) 
+void morseGenerator() 
 {
     while (true) {
         
@@ -207,6 +207,8 @@
 
 //Main thread
 int main() {
+    Thread writer;
+    
     redLED    = 0;
     yellowLED = 0;
     greenLED  = 0;
@@ -222,7 +224,7 @@
     
     
     //Thread for outputting mors
-    Thread writer(morseGenerator);
+    writer.start(morseGenerator);
     
     pc.printf("Type characters to send\n");
     while (true) {
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed-os.lib Thu Mar 30 14:28:41 2017 +0000 @@ -0,0 +1,1 @@ +https://github.com/ARMmbed/mbed-os/#50b3418e45484ebf442b88cd935a2d5355402d7d
--- a/mbed-rtos.lib Wed Mar 09 10:12:51 2016 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -http://mbed.org/users/mbed_official/code/mbed-rtos/#b4c5542476ba
--- a/mbed.bld Wed Mar 09 10:12:51 2016 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/252557024ec3 \ No newline at end of file
