Add two threads into the IOT WIFIDemo for test_JacobShi

Dependencies:   C12832 HTTPClient wifiontros wifirtos mbed

Fork of frdm_rtos by Freescale

sysinterface.h

Committer:
shiyilei
Date:
2014-12-05
Revision:
4:242715d40e54
Parent:
3:5f921ff0868d

File content as of revision 4:242715d40e54:

#ifndef __SYSINTERFACE_H
#define __SYSINTERFACE_H
#include "mbed.h"
#include "rtos.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)
#define net_system_start     sys_thread_new(task2,recv_task);sys_thread_new(task1,send_task); 
#endif