First version
Dependencies: mbed EthernetInterface mbed-rto
main.cpp
- Committer:
- albireo987
- Date:
- 2018-04-25
- Revision:
- 27:29948b116e82
- Parent:
- 26:4c673da1a3ae
- Child:
- 31:f8578276bd69
File content as of revision 27:29948b116e82:
#include "mbed.h" #include "rtos.h" #include "Interpreter.h" #include "TCPlistener.h" #include "LEDDriver.h" void LEDStart(Queue<int,8>* queue) { LEDDriver driver = LEDDriver(queue); driver.run(8); } int main (void){ Thread thread; Queue<int,8> queue; int a=1; int b=2; int c=3; int d=4; queue.put(&(a)); queue.put(&(b)); queue.put(&(c)); queue.put(&(d)); queue.put(&(d)); queue.put(&(d)); queue.put(&(d)); queue.put(&(d)); // Interpreter interpreter(LED); // TCPlistener listener; // char command[512]; while(true){ // listener.receiveSegment(command,sizeof(command)); // interpreter.executeCommand(command); thread.start(LEDStart,&queue); } }