Modularizando o src

Dependencies:   EALib EthernetInterface_vz mbed-rtos mbed

Fork of header_main_colinas_V0-20-09-14 by VZTECH

Revision:
34:f19d9735428e
Parent:
33:735fd60e96d8
Child:
35:96885a7931f0
--- a/main.cpp	Tue Sep 30 11:37:31 2014 +0000
+++ b/main.cpp	Tue Sep 30 14:28:01 2014 +0000
@@ -112,7 +112,7 @@
             __read_cb_buffer__( buffer, buffer_from_cb_ptr );     
             status = __WAITING__;
         
-            data = __parse_cb_buffer__( &ext, &port, &type, buffer );
+            data = __parse_vz_pkg__( &ext, &port, &type, buffer );
             
             if( data != NULL ){                
                 if( debug_alive == 1 && debug_cb_rx ) debug_msg("Pkg from CBx :: %d -- Type :: %d", ext, type );
@@ -140,7 +140,7 @@
         }
 //----------------------
             if( t.read() > 5 ){
-                static int count = 0;            
+                //static int count = 0;            
                 for( register uint8_t i = 0; i < v_cb->size(); i++ ){
                     Call_Box * cb = ( Call_Box * )v_cb->get_element( i );
                     if( debug_alive ){ 
@@ -160,6 +160,7 @@
                 
                 
                 //<><><><><><><><><><> simulando cbx
+                /*
                 if( count  == 4 ){
                     Call_Box * cb = new Call_Box( 854, 0x1011 );
                     cb->registry();
@@ -174,6 +175,7 @@
                     v_cb->add( cb );
                     debug_msg("sent");
                 }
+                */
             }
 //----------------------
         switch( type ){