Modularizando o src

Dependencies:   EALib EthernetInterface_vz mbed-rtos mbed

Fork of header_main_colinas_V0-20-09-14 by VZTECH

Revision:
89:0fe315117b00
Parent:
82:f55d13babca0
Child:
92:92df17f538a8
--- a/prompt.cpp	Tue Jan 06 16:39:09 2015 +0000
+++ b/prompt.cpp	Wed Jan 07 21:48:53 2015 +0000
@@ -465,8 +465,10 @@
 void init_prompt_eth(){
     tcp_server.bind( TCP_PORT_LISTENER );
     tcp_server.listen();
-    tcp_server.set_blocking( false, 1 );
-    udp_server.set_blocking( false, 2 );
+    //tcp_server.set_blocking( false, 1 );
+    //udp_server.set_blocking( false, 2 );
+    tcp_server.set_blocking( false, 0 );
+    udp_server.set_blocking( false, 0 );
     udp_server.bind( UDP_PORT_LISTENER );    
     pc.printf("******* Prompt eth Ready *******\n\r");
 }
@@ -517,7 +519,8 @@
     }
     if( tcp_session ){
         //if( !( (int)tcp_timer.read_ms() % 100 ) ){
-            tcp_client.set_blocking( false, 1 );
+            //tcp_client.set_blocking( false, 1 );
+            tcp_client.set_blocking( false, 0 );
             int n = tcp_client.receive( eth_buffer, sizeof( eth_buffer ) - 1 );
             if( n > 0 ){
                 tcp_timer.reset();