led example with 2 timers

Dependencies:   mbed mbed-rtos

main.cpp

Committer:
passelin
Date:
2014-02-12
Revision:
5:726d7857fd33
Parent:
4:af325c921e79

File content as of revision 5:726d7857fd33:

#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(osPriorityRealtime);
    //thread6.set_priority(osPriorityNormal);
    
    while(1)
    {
    // wait forever...        
    }
}