Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: C12832 HTTPClient wifiontros wifirtos mbed
Fork of frdm_rtos by
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
Generated on Sun Jul 31 2022 01:56:22 by
1.7.2
