![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
First version
Dependencies: mbed EthernetInterface mbed-rto
main.cpp
- Committer:
- KlaasGovaerts
- Date:
- 2018-05-09
- Revision:
- 47:8fe84f455571
- Parent:
- 45:2d877f01ca7b
- Child:
- 48:c5cd73d93045
File content as of revision 47:8fe84f455571:
#include "mbed.h" #include "rtos.h" #include "Interpreter.h" #include "TCPlistener.h" #include "Receiver.h" #include "LEDDriver.h" void receive(Queue<int,8>* queue){ printf("receive executed.\r\n"); Receiver receiver(queue); receiver.start(); } void LEDStart(Queue<int,8>* queue,Ticker* ticker) { printf("LEDStart executed.\r\n"); LEDDriver driver = LEDDriver(queue); printf("LEDDriver created.\r\n"); driver.run(ticker); } int main (void){ printf("main executed.\r\n"); Queue<int,8> queue; //Thread threadeth; //Thread driverThread; //(true){ //threadeth.start(receive,&queue); //driverThread.start(LEDStart,&queue); //} Ticker ticker; LEDStart(&queue,&ticker); receive(&queue); }