led example with 2 timers

Dependencies:   mbed mbed-rtos

Committer:
passelin
Date:
Mon Feb 10 16:33:35 2014 +0000
Revision:
1:6e31c704f4d6
Parent:
0:11dd239703cc
Child:
2:124a066878cc
in progress..

Who changed what in which revision?

UserRevisionLine numberNew contents of line
passelin 1:6e31c704f4d6 1 #include "main.h"
trixrabbit 0:11dd239703cc 2
trixrabbit 0:11dd239703cc 3 InterruptIn signal(p15);
trixrabbit 0:11dd239703cc 4 Serial pc(USBTX,USBRX);
trixrabbit 0:11dd239703cc 5
passelin 1:6e31c704f4d6 6 Queue<char, 16> ReaderQueue;
trixrabbit 0:11dd239703cc 7
trixrabbit 0:11dd239703cc 8 int main (void)
trixrabbit 0:11dd239703cc 9 {
passelin 1:6e31c704f4d6 10 Thread thread1(Writer_thread);
passelin 1:6e31c704f4d6 11 Thread thread2(Reader_thread);
passelin 1:6e31c704f4d6 12 Thread thread3(Modulator_thread);
passelin 1:6e31c704f4d6 13 Thread thread4(Demodulator_thread);
passelin 1:6e31c704f4d6 14 Thread thread5(Sender_thread);
passelin 1:6e31c704f4d6 15 Thread thread6(Receiver_thread);
trixrabbit 0:11dd239703cc 16
trixrabbit 0:11dd239703cc 17 while(1)
trixrabbit 0:11dd239703cc 18 {
passelin 1:6e31c704f4d6 19 // wait forever...
trixrabbit 0:11dd239703cc 20 }
trixrabbit 0:11dd239703cc 21 }