Add two threads into the IOT WIFIDemo for test_JacobShi

Dependencies:   C12832 HTTPClient wifiontros wifirtos mbed

Fork of frdm_rtos by Freescale

Revision:
4:242715d40e54
Parent:
3:5f921ff0868d
--- a/sysinterface.h	Fri Nov 28 12:52:56 2014 +0000
+++ b/sysinterface.h	Fri Dec 05 02:14:44 2014 +0000
@@ -2,8 +2,22 @@
 #define __SYSINTERFACE_H
 #include "mbed.h"
 #include "rtos.h"
-//#include "globaldata.h"
-//#include "baseinterface.h"
+#include "baseinterface.h"
+typedef struct publicdata{  
+    bool send_ready;
+    bool send_completed;
+    bool receive_completed;
+    short send_length;
+    short send_length_over;
+    char send_buffer[600];
+    char receive_buffer[600];
+    int receive_length;
+    int need_receive;
+    short need_send; 
+    bool receive_start;
+    bool readable;
+} PUBLICDATA;
+extern PUBLICDATA globaldata;
 void send_task(void const *args);
 void recv_task(void const *args);
 #define sys_thread_new(taskname,function)    Thread taskname(function)