led example with 2 timers

Dependencies:   mbed mbed-rtos

main.cpp

Committer:
passelin
Date:
2014-02-11
Revision:
2:124a066878cc
Parent:
1:6e31c704f4d6
Child:
3:204e23521e39

File content as of revision 2:124a066878cc:

#include "main.h"

InterruptIn signal(p15);
Serial pc(USBTX,USBRX);

Queue<int, 16> ReaderQueue;
Mail<mail_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...        
    }
}