APP Team
/
app3
led example with 2 timers
Diff: main.cpp
- Revision:
- 2:124a066878cc
- Parent:
- 1:6e31c704f4d6
- Child:
- 3:204e23521e39
--- a/main.cpp Mon Feb 10 16:33:35 2014 +0000 +++ b/main.cpp Tue Feb 11 04:23:35 2014 +0000 @@ -3,7 +3,8 @@ InterruptIn signal(p15); Serial pc(USBTX,USBRX); -Queue<char, 16> ReaderQueue; +Queue<int, 16> ReaderQueue; +Mail<mail_t, 16> mailBox; int main (void) { @@ -14,6 +15,13 @@ Thread thread5(Sender_thread); Thread thread6(Receiver_thread); + /*thread1.set_priority(osPriorityNormal); + thread2.set_priority(osPriorityRealtime); + thread3.set_priority(osPriorityNormal); + thread4.set_priority(osPriorityNormal); + thread5.set_priority(osPriorityNormal); + thread6.set_priority(osPriorityNormal);*/ + while(1) { // wait forever...