
v1 updated for mbed os 5.4
Fork of Task631-mbedos54 by
Revision 10:624be54e5299, committed 2017-04-03
- Comitter:
- noutram
- Date:
- Mon Apr 03 14:11:54 2017 +0000
- Parent:
- 9:31031bbb59c7
- Commit message:
- updated for mbed os 5.4
Changed in this revision
diff -r 31031bbb59c7 -r 624be54e5299 main.cpp --- a/main.cpp Mon Mar 21 13:50:11 2016 +0000 +++ b/main.cpp Mon Apr 03 14:11:54 2017 +0000 @@ -6,8 +6,8 @@ #define SWITCH1_RELEASE 1 -void thread1( const void* ); -void thread2( const void* ); +void thread1(); +void thread2(); void switchISR(); //Analogue inputs @@ -52,7 +52,7 @@ } //Normal priority thread (consumer) -void thread1( const void* arg ) +void thread1() { while (true) { //Read queue - block (with timeout) @@ -100,7 +100,8 @@ timer.attach(&adcISR, 1.0); //Threads - t1 = new Thread(&thread1); + t1 = new Thread(); + t1->start(thread1); printf("Main Thread\n"); while (true) {
diff -r 31031bbb59c7 -r 624be54e5299 mbed-os.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed-os.lib Mon Apr 03 14:11:54 2017 +0000 @@ -0,0 +1,1 @@ +https://github.com/ARMmbed/mbed-os/#50b3418e45484ebf442b88cd935a2d5355402d7d
diff -r 31031bbb59c7 -r 624be54e5299 mbed-rtos.lib --- a/mbed-rtos.lib Mon Mar 21 13:50:11 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
diff -r 31031bbb59c7 -r 624be54e5299 mbed.bld --- a/mbed.bld Mon Mar 21 13:50:11 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