![](/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
shared_variables.cpp
- Committer:
- klauss
- Date:
- 2015-05-11
- Revision:
- 123:1d395b5a4cad
- Parent:
- 121:ee02790d00b7
- Child:
- 124:c1b6c893e1c3
File content as of revision 123:1d395b5a4cad:
#include "shared_variables.h" bool from_eth = false; bool tcp_session = false; 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; bool r_stats; bool rx = false; bool tx = false; bool stats = false; uint32_t boot_counter = 0; uint32_t registry_counter = 0; uint32_t invite_counter = 0; uint32_t audio_counter = 0; uint32_t telemetry_counter = 0; uint32_t cb_stats_counter = 0; uint32_t cb_bye_counter = 0; uint32_t prompt_counter = 0; uint32_t flood_counter = 0; uint32_t out_of_range = 0; uint32_t fw_counter = 0; uint32_t bootloader_cbx_counter = 0; int max_ext = 0; int min_ext = 0; bool pshowcb = false; uint16_t external_wdt = EXTERN_WDT_IDLE; volatile uint8_t status = WAITING; Serial pc (USBTX,USBRX); DigitalOut led1(LED1); DigitalOut led2(LED2); DigitalOut led3(LED3); DigitalOut led4(LED4); DigitalOut CAB_LED(p24); uint32_t missed_pkg = 0; uint8_t cb_new_counter = 0; uint8_t cb_delete_counter = 0; uint8_t sip_new_counter = 0; uint8_t sip_delete_counter = 0; uint16_t rtp_header_new_counter = 0; uint16_t rtp_body_new_counter = 0; uint16_t rtp_header_delete_counter = 0; uint16_t rtp_body_delete_counter = 0; uint16_t call_new_counter = 0; uint16_t call_delete_counter = 0; bool memory_is_over = false; volatile uint16_t received_cpld_pkg = 0; uint16_t sip_socket_send_failure = 0; bool show_sip = false; 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; int print_this_cb = 0; int print_hex_this_cb = 0; int print_this_sip = 0; int print_hex_this_sip = 0; int print_this_call = 0; int print_hex_this_call = 0; int print_this_rtp = 0; int print_hex_this_rtp = 0; int frtp_target = 0; int rescue_rtp_target = 0; int rescue_rtp_value = 0; uint32_t uptime = 0; uint8_t drop_this_amount_of_ack_to_ast = 0; uint16_t string_msg_overflow = 0; bool test_flag_unusual = false; bool show_time = 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++; } } }