APP Team
/
app3
led example with 2 timers
main.cpp
- Committer:
- passelin
- Date:
- 2014-02-11
- Revision:
- 3:204e23521e39
- Parent:
- 2:124a066878cc
- Child:
- 4:af325c921e79
File content as of revision 3:204e23521e39:
#include "main.h" InterruptIn signal(p15); Serial pc(USBTX,USBRX); Queue<string, 16> ReaderQueue; Queue<string, 16> WriterQueue; Mail<message_t, 16> mailBox; int main (void) { Thread thread1(Writer_thread); Thread thread2(Reader_thread); Thread thread3(Modulator_thread); Thread thread4(Demodulator_thread); 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... } }