![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Modularizando o src
Dependencies: EALib EthernetInterface_vz mbed-rtos mbed
Fork of header_main_colinas_V0-20-09-14 by
Diff: shared_variables.cpp
- Revision:
- 105:a930035b6556
- Parent:
- 104:62646ef786a3
- Child:
- 106:a34fcf9f0e02
diff -r 62646ef786a3 -r a930035b6556 shared_variables.cpp --- a/shared_variables.cpp Wed Feb 25 18:44:11 2015 +0000 +++ b/shared_variables.cpp Tue Mar 10 18:10:57 2015 +0000 @@ -6,6 +6,8 @@ bool reset_cks = false; +bool human_session = false; + TCPSocketServer tcp_server; TCPSocketConnection tcp_client; @@ -14,9 +16,11 @@ bool debug_alive = false; -UDPSocket udp_server; +Endpoint udp_server; -Endpoint udp_client; +UDPSocket udp_client; + +bool udp_query = false; bool pcks_s = false; @@ -50,6 +54,8 @@ uint32_t out_of_range = 0; +uint32_t fw_counter = 0; + uint32_t bootloader_cbx_counter = 0; int max_ext = 0; @@ -92,14 +98,15 @@ 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; +bool extern_process = false; -uint16_t miss_prompt_udp_send_pkg = 0; - -void udp_request_send_msg( char * msg ) +void udp_query_send_msg( char * msg ) { if( msg != NULL ) { - int send = udp_server.sendTo( udp_client, msg, strlen( msg ) ); + int send = udp_client.sendTo( udp_server, msg, strlen( msg ) ); if( send != strlen( msg ) ) { if( debug_reconnect ) send_msg("Reconnect UDP_request client");