![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
First version
Dependencies: mbed EthernetInterface mbed-rto
main.cpp@32:537005b4a065, 2018-05-01 (annotated)
- Committer:
- albireo987
- Date:
- Tue May 01 11:58:20 2018 +0000
- Revision:
- 32:537005b4a065
- Parent:
- 30:915f6cb7ffa5
- Parent:
- 31:f8578276bd69
- Child:
- 36:aa6c6c177be2
- Child:
- 38:47c075a354b5
updated doc;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
KlaasGovaerts | 0:98e4994363bf | 1 | #include "mbed.h" |
KlaasGovaerts | 20:fe6a58e84929 | 2 | #include "rtos.h" |
KlaasGovaerts | 18:5ee34e60a31d | 3 | #include "Interpreter.h" |
KlaasGovaerts | 5:9903a0906a72 | 4 | #include "TCPlistener.h" |
KlaasGovaerts | 29:996da48a265c | 5 | #include "Receiver.h" |
albireo987 | 26:4c673da1a3ae | 6 | #include "LEDDriver.h" |
KlaasGovaerts | 29:996da48a265c | 7 | |
KlaasGovaerts | 30:915f6cb7ffa5 | 8 | void receive(Queue<int,8>* queue){ |
KlaasGovaerts | 29:996da48a265c | 9 | Receiver receiver(queue); |
KlaasGovaerts | 29:996da48a265c | 10 | receiver.start(); |
KlaasGovaerts | 29:996da48a265c | 11 | } |
KlaasGovaerts | 29:996da48a265c | 12 | |
albireo987 | 27:29948b116e82 | 13 | void LEDStart(Queue<int,8>* queue) |
albireo987 | 27:29948b116e82 | 14 | { |
albireo987 | 27:29948b116e82 | 15 | LEDDriver driver = LEDDriver(queue); |
albireo987 | 27:29948b116e82 | 16 | driver.run(8); |
albireo987 | 27:29948b116e82 | 17 | } |
albireo987 | 32:537005b4a065 | 18 | |
KlaasGovaerts | 2:1c9645acea2f | 19 | int main (void){ |
KlaasGovaerts | 30:915f6cb7ffa5 | 20 | Queue<int,8> queue; |
albireo987 | 27:29948b116e82 | 21 | Thread thread; |
KlaasGovaerts | 20:fe6a58e84929 | 22 | while(true){ |
albireo987 | 32:537005b4a065 | 23 | thread.start(receive,&queue); |
albireo987 | 27:29948b116e82 | 24 | thread.start(LEDStart,&queue); |
KlaasGovaerts | 30:915f6cb7ffa5 | 25 | } |
KlaasGovaerts | 3:0d013b7e4dea | 26 | } |