Modularizando o src

Dependencies:   EALib EthernetInterface_vz mbed-rtos mbed

Fork of header_main_colinas_V0-20-09-14 by VZTECH

Revision:
24:270b436a1bb0
Parent:
22:d2a4b5939115
Child:
25:2cf5e8dd4035
--- a/prompt.cpp	Sat Sep 20 20:56:13 2014 +0000
+++ b/prompt.cpp	Sat Sep 20 21:20:01 2014 +0000
@@ -4,11 +4,12 @@
 #include "vz_protocol.h"
 #include "parallelcpld.h"
 #include "flood.h"
+
 //#include "debug.h"
 
 uint8_t debug_alive = 1;
 uint8_t pcks_s = 0;
-
+uint8_t pshowcb = 0;
 #define PVERSION 1          // Sempre atualizar a versao do prompt
 
 #define DEBUGBUFSIZE 50
@@ -321,10 +322,14 @@
             __send_to_cb__( __build_cb_package__( ext, port, __PROMPT__, debug_buf+9+ant1+2+ant2, id_msg++, __CB_BUFFER_SIZE__ - __VZ_HEADER_OFFSET__, write_buffer ) );
             pc.printf("\n\rComando enviado\n\r");
         }
+        
         if( xmemmatch( (uint8_t*)debug_buf, (uint8_t*) "cks",3 )) {
-        pcks_s = 1;  
+            pcks_s = 1;  
         }
-          
+        
+        if (xmemmatch( (uint8_t*)debug_buf, (uint8_t*) "showcb",6 )) {
+            pshowcb = 1;
+        }
         if( xstrmatch( (uint8_t*)debug_buf, (uint8_t*) "help" )) {
          pc.printf("\n\r****************************PROMPT HELP******************\n\r");
          pc.printf("sconfig                 - mostra o arquivo de configuracao do sistema\n\r");