Modularizando o src

Dependencies:   EALib EthernetInterface_vz mbed-rtos mbed

Fork of header_main_colinas_V0-20-09-14 by VZTECH

Revision:
133:3d136f5ffd66
Parent:
132:05cd37f7e007
Child:
134:395678c651d8
--- a/prompt.cpp	Tue Sep 01 17:21:11 2015 +0000
+++ b/prompt.cpp	Tue Sep 01 19:33:11 2015 +0000
@@ -439,6 +439,12 @@
             miss_match = false;
             cm -> set_fw_server_port ( atoi ( debug_buf + 8 ) );
         }
+        
+        else if ( xmemmatch ( ( uint8_t * )debug_buf, ( uint8_t * ) "set_acceptable_delay ", 21 ) )
+        {
+            miss_match = false;
+            cm -> set_acceptable_delay ( atoi ( debug_buf + 21 ) );
+        }
 
         else if ( xstrmatch ( ( uint8_t * )debug_buf, ( uint8_t * ) "dconfig" ) )
         {
@@ -469,8 +475,39 @@
         {
             miss_match = false;
             
-            vz_printf ( "MUUUUUUUuuuuUUUUUU - I'm not a dog!!!!\n\r" );
+            vz_printf ( "MUUUUUUUuuuuUUUUUU - I'm not a dog!!!!" );
+        }
+        
+        else if ( xstrmatch ( ( uint8_t * )debug_buf, ( uint8_t * ) "5000" ) )
+        {
+            miss_match = false;
+            
+            dont_refresh_5000 = !dont_refresh_5000;
+            
+            if ( dont_refresh_5000 ) vz_printf ( "dont refresh 5000" );
+            
+            else vz_printf ( "refresh 5000" );
         }
+        
+        else if ( xstrmatch ( ( uint8_t * )debug_buf, ( uint8_t * ) "5001" ) )
+        {
+            miss_match = false;
+            
+            dont_refresh_5001 = !dont_refresh_5001;
+            
+            if ( dont_refresh_5001 ) vz_printf ( "dont refresh 5001" );
+            
+            else vz_printf ( "refresh 5001" );
+        }
+        
+        
+        else if ( xstrmatch ( ( uint8_t * )debug_buf, ( uint8_t * ) "get_acceptable_delay" ) )
+        {
+            miss_match = false;
+            
+            vz_printf ( "get_acceptable_delay :: %u", cm -> get_acceptable_delay () );
+        }
+        
 
         else if ( xstrmatch ( ( uint8_t * )debug_buf, ( uint8_t * ) "request_clock" ) )
         {