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 Task633 by
Diff: main.cpp
- Revision:
- 7:cd015e83995a
- Parent:
- 6:2e463846b575
- Child:
- 8:c5663f5fa848
diff -r 2e463846b575 -r cd015e83995a main.cpp
--- a/main.cpp Mon Mar 14 16:30:25 2016 +0000
+++ b/main.cpp Mon Mar 14 16:32:56 2016 +0000
@@ -41,6 +41,9 @@
while (true) {
redLED = 1;
if (SW1 == 1) {
+
+ // 1) Select the 'type' of wait
+
//wait_ms(osWaitForever);
Thread::wait(osWaitForever);
} else {
@@ -61,8 +64,10 @@
//Main thread ID
tidMain = Thread::gettid();
- //Threads
Thread t1(thread1, NULL, osPriorityNormal);
+
+ // 2) Select the Thread Priority
+
//Thread t2(thread2, NULL, osPriorityNormal);
Thread t2(thread2, NULL, osPriorityAboveNormal);