demo versie 16/05

Dependencies:   EthernetInterface mbed-rto mbed

Fork of ProjectVLC by Klaas Govaerts

Committer:
albireo987
Date:
Tue May 01 11:58:20 2018 +0000
Revision:
32:537005b4a065
Parent:
31:915f6cb7ffa5
Parent:
29:f8578276bd69
Child:
36:aa6c6c177be2
Child:
38:47c075a354b5
updated doc;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
KlaasGovaerts 0:98e4994363bf 1 #include "mbed.h"
KlaasGovaerts 21:fe6a58e84929 2 #include "rtos.h"
KlaasGovaerts 19:5ee34e60a31d 3 #include "Interpreter.h"
KlaasGovaerts 6:9903a0906a72 4 #include "TCPlistener.h"
KlaasGovaerts 30:996da48a265c 5 #include "Receiver.h"
albireo987 25:4c673da1a3ae 6 #include "LEDDriver.h"
KlaasGovaerts 30:996da48a265c 7
KlaasGovaerts 31:915f6cb7ffa5 8 void receive(Queue<int,8>* queue){
KlaasGovaerts 30:996da48a265c 9 Receiver receiver(queue);
KlaasGovaerts 30:996da48a265c 10 receiver.start();
KlaasGovaerts 30:996da48a265c 11 }
KlaasGovaerts 30:996da48a265c 12
albireo987 26:29948b116e82 13 void LEDStart(Queue<int,8>* queue)
albireo987 26:29948b116e82 14 {
albireo987 26:29948b116e82 15 LEDDriver driver = LEDDriver(queue);
albireo987 26:29948b116e82 16 driver.run(8);
albireo987 26:29948b116e82 17 }
albireo987 32:537005b4a065 18
KlaasGovaerts 3:1c9645acea2f 19 int main (void){
KlaasGovaerts 31:915f6cb7ffa5 20 Queue<int,8> queue;
albireo987 26:29948b116e82 21 Thread thread;
KlaasGovaerts 21:fe6a58e84929 22 while(true){
albireo987 32:537005b4a065 23 thread.start(receive,&queue);
albireo987 26:29948b116e82 24 thread.start(LEDStart,&queue);
KlaasGovaerts 31:915f6cb7ffa5 25 }
KlaasGovaerts 4:0d013b7e4dea 26 }