ARM Shanghai IoT Team (Internal) / Mbed 2 deprecated WifiaddThread

Dependencies:   C12832 HTTPClient wifiontros wifirtos mbed

Fork of frdm_rtos by Freescale

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers sysinterface.h Source File

sysinterface.h

00001 #ifndef __SYSINTERFACE_H
00002 #define __SYSINTERFACE_H
00003 #include "mbed.h"
00004 #include "rtos.h"
00005 #include "baseinterface.h"
00006 typedef struct publicdata{  
00007     bool send_ready;
00008     bool send_completed;
00009     bool receive_completed;
00010     short send_length;
00011     short send_length_over;
00012     char send_buffer[600];
00013     char receive_buffer[600];
00014     int receive_length;
00015     int need_receive;
00016     short need_send; 
00017     bool receive_start;
00018     bool readable;
00019 } PUBLICDATA;
00020 extern PUBLICDATA globaldata;
00021 void send_task(void const *args);
00022 void recv_task(void const *args);
00023 #define sys_thread_new(taskname,function)    Thread taskname(function)
00024 #define net_system_start     sys_thread_new(task2,recv_task);sys_thread_new(task1,send_task); 
00025 #endif