Add two threads into the IOT WIFIDemo for test_JacobShi
Dependencies: C12832 HTTPClient wifiontros wifirtos mbed
Fork of frdm_rtos by
Diff: sysinterface.cpp
- Revision:
- 3:5f921ff0868d
- Child:
- 4:242715d40e54
diff -r bc844894f0a4 -r 5f921ff0868d sysinterface.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sysinterface.cpp Fri Nov 28 12:52:56 2014 +0000 @@ -0,0 +1,29 @@ + +#include "sysinterface.h" +//GLOBAL_DATA globaldata; +void send_task(void const *args) +{ + + while(1) + { +// if(globaldata.send_ready==1) +// { +// globaldata.send_ready=0; +// int idx=baselevel_send_data(globaldata.send_buffer,globaldata.send_length); +// globaldata.send_length_over=idx; +// globaldata.send_completed=1; +// } + int a=0; + Thread::wait(40); + } +} + +void recv_task(void const *args) +{ + while(1) + { + int b=0; + Thread::wait(40); + } + +} \ No newline at end of file