Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: EALib EthernetInterface_vz mbed-rtos mbed
Fork of header_main_colinas_V0-20-09-14 by
shared_variables.cpp
00001 #include "shared_variables.h" 00002 00003 ConfigManager * cm = new ConfigManager (); 00004 00005 uint16_t u16Who_is_your_pair = 0; 00006 00007 bool boolWho_is_your_pair = false; 00008 00009 bool reset_cks = false; 00010 00011 bool debug_alive = false; 00012 00013 bool pcks_s = false; 00014 00015 bool list = false; 00016 00017 bool r_stats; 00018 00019 bool show_last_rx = false; 00020 00021 bool show_last_tx = false; 00022 00023 bool stats = false; 00024 00025 uint32_t boot_counter = 0; 00026 00027 uint32_t registry_counter = 0; 00028 00029 uint32_t invite_counter = 0; 00030 00031 uint32_t audio_counter = 0; 00032 00033 uint32_t telemetry_counter = 0; 00034 00035 uint32_t cb_stats_counter = 0; 00036 00037 uint32_t cb_bye_counter = 0; 00038 00039 uint32_t prompt_counter = 0; 00040 00041 uint32_t flood_counter = 0; 00042 00043 uint32_t out_of_range = 0; 00044 00045 uint32_t fw_counter = 0; 00046 00047 uint32_t bootloader_cbx_counter = 0; 00048 00049 int max_ext = 0; 00050 00051 int min_ext = 0; 00052 00053 bool pshowcb = false; 00054 00055 uint16_t external_wdt = EXTERN_WDT_IDLE; 00056 00057 volatile uint8_t status = WAITING; 00058 00059 Serial pc (USBTX,USBRX); 00060 00061 DigitalOut led1(LED1); 00062 00063 DigitalOut led2(LED2); 00064 00065 DigitalOut led3(LED3); 00066 00067 DigitalOut led4(LED4); 00068 00069 DigitalOut CAB_LED(p24); 00070 00071 uint32_t missed_pkg = 0; 00072 uint8_t cb_new_counter = 0; 00073 uint8_t cb_delete_counter = 0; 00074 uint8_t sip_new_counter = 0; 00075 uint8_t sip_delete_counter = 0; 00076 uint16_t rtp_header_new_counter = 0; 00077 uint16_t rtp_body_new_counter = 0; 00078 uint16_t rtp_header_delete_counter = 0; 00079 uint16_t rtp_body_delete_counter = 0; 00080 uint16_t call_new_counter = 0; 00081 uint16_t call_delete_counter = 0; 00082 bool memory_is_over = false; 00083 volatile uint16_t received_cpld_pkg = 0; 00084 uint16_t sip_socket_send_failure = 0; 00085 bool show_sip = false; 00086 uint32_t delayed_pkg_to_cb = 0; 00087 uint32_t cpld_pkg_tx_counter = 0; 00088 uint32_t cpld_pkg_rx_counter = 0; 00089 uint16_t miss_prompt_udp_send_pkg = 0; 00090 uint16_t miss_bl_udp_send_pkg = 0; 00091 uint16_t miss_prompt_udp_rcv_pkg = 0; 00092 uint16_t miss_power_source_send_pkg = 0; 00093 bool extern_process = false; 00094 int print_this_cb = 0; 00095 int print_hex_this_cb = 0; 00096 int print_this_sip = 0; 00097 int print_hex_this_sip = 0; 00098 int print_this_call = 0; 00099 int print_hex_this_call = 0; 00100 int print_this_rtp = 0; 00101 int print_hex_this_rtp = 0; 00102 int frtp_target = 0; 00103 int rescue_rtp_target = 0; 00104 int rescue_rtp_value = 0; 00105 uint32_t uptime = 0; 00106 uint8_t drop_this_amount_of_ack_to_ast = 0; 00107 uint16_t string_msg_overflow = 0; 00108 bool test_flag_unusual = false; 00109 bool show_time = false; 00110 bool show_invites = false; 00111 bool dont_say_hello_again = false; 00112 bool reverse_list = false; 00113 bool show_hello_status = false; 00114 bool request_clock_now = false; 00115 bool show_wake_all_up_status = false; 00116 bool disable_wdt_from_cbx = false; 00117 bool wake_all = false; 00118 uint16_t end_call_ext = 0; 00119 bool end_call = false; 00120 bool do_not_refresh = false; 00121 bool do_not_show_this_invite_pkg = false; 00122 bool show_wdt_string = false; 00123 bool enable_flood = false; 00124 bool wake_all_disable = false; 00125 bool need_registry_someone = false; 00126 int ext_to_be_registered = 0; 00127 bool simulate = false; 00128 int ext_to_simulate = 0; 00129 int port_to_simulate = 0; 00130 int seq_num_to_simulate = 0; 00131 uint8_t num_type_to_simulate = 0;
Generated on Tue Jul 12 2022 16:25:12 by
