Modularizando o src

Dependencies:   EALib EthernetInterface_vz mbed-rtos mbed

Fork of header_main_colinas_V0-20-09-14 by VZTECH

Revision:
132:05cd37f7e007
Parent:
126:1f90756250fb
Child:
133:3d136f5ffd66
--- a/shared_variables.cpp	Tue Jul 21 20:03:35 2015 +0000
+++ b/shared_variables.cpp	Tue Sep 01 17:21:11 2015 +0000
@@ -1,27 +1,11 @@
 #include "shared_variables.h"
 
-bool from_eth = false;
-
-bool tcp_session = false;
+ConfigManager * cm = new ConfigManager ();
 
 bool reset_cks = false;
 
-bool human_session = false;
-
-TCPSocketServer tcp_server;
-
-TCPSocketConnection tcp_client;
-
-Timer udp_timer;
-
 bool debug_alive = false;
 
-Endpoint udp_server;
-
-UDPSocket udp_client;
-
-bool udp_query = false; 
-
 bool pcks_s = false;
 
 bool list = false;
@@ -98,8 +82,10 @@
 uint32_t delayed_pkg_to_cb = 0;
 uint32_t cpld_pkg_tx_counter = 0;
 uint32_t cpld_pkg_rx_counter = 0;
-uint16_t miss_prompt_udp_send_pkg = 0; 
-uint16_t miss_prompt_udp_rcv_pkg = 0; 
+uint16_t miss_prompt_udp_send_pkg = 0;
+uint16_t miss_bl_udp_send_pkg = 0;
+uint16_t miss_prompt_udp_rcv_pkg = 0;
+uint16_t miss_power_source_send_pkg = 0;
 bool extern_process = false;
 int print_this_cb = 0;
 int print_hex_this_cb = 0;
@@ -117,28 +103,16 @@
 uint16_t string_msg_overflow = 0;
 bool test_flag_unusual = false;
 bool show_time = false;
+bool show_invites = false;
 bool dont_say_hello_again = false;
 bool reverse_list = false;
 bool show_hello_status = false;
 bool request_clock_now = false;
 bool show_wake_all_up_status = false;
+bool disable_wdt_from_cbx = false;
 bool wake_all = false;
 uint16_t end_call_ext = 0;
 bool end_call = false;
 bool do_not_refresh = false;
 bool do_not_show_this_invite_pkg = false;
-
-void udp_query_send_msg ( char * msg )
-{
-    if( ( msg != NULL ) && ( strlen( msg ) > 0 ) )
-    {   
-        int send = udp_client.sendTo( udp_server, msg, strlen( msg ) );
-        
-        if( send != strlen( msg ) )
-        {
-            //if( debug_reconnect ) send_msg("Reconnect UDP_request client");
-            reconnect_prompt_udp_socket ();
-            miss_prompt_udp_send_pkg++;
-        }
-    }
-}
\ No newline at end of file
+bool show_wdt_string = false;
\ No newline at end of file