Modularizando o src

Dependencies:   EALib EthernetInterface_vz mbed-rtos mbed

Fork of header_main_colinas_V0-20-09-14 by VZTECH

Revision:
44:cc4996469404
Parent:
43:455522f98de5
Child:
45:c80574f24dc3
--- a/prompt.h	Mon Oct 06 14:31:54 2014 +0000
+++ b/prompt.h	Mon Oct 06 19:26:36 2014 +0000
@@ -1,6 +1,15 @@
 #ifndef _PROMPT_H
 #define _PROMPT_H
 
+#include "mbed.h"
+#include "stdint.h"
+#include "configs.h"
+#include "vz_protocol.h"
+#include "parallelcpld.h"
+#include "flood.h"
+
+#define TCP_IDLE_MAX_TIME 60 * 2
+
 extern uint8_t debug_sip;
 extern uint8_t debug_alive;
 extern uint8_t debug_prompt;
@@ -21,7 +30,6 @@
 extern uint8_t pshowcb;
 extern uint8_t dog;
 
-
 extern FILE *fmask;         // mascara de rede
 extern FILE *fgate;         // gateway ip
 
@@ -38,11 +46,15 @@
 void init_prompt();
 
 extern bool from_eth;
+extern bool tcp_session;
 extern TCPSocketServer server;
-extern TCPSocketConnection client;
+extern TCPSocketConnection eth_client;
 extern Timer tcp_timer;
 extern bool udp_pkg;
 extern bool tcp_pkg;
+extern bool from_eth;
+extern bool udp_request;
 
+extern char * debug_buf;
 
 #endif
\ No newline at end of file