![](/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@134:395678c651d8, 2015-09-01 (annotated)
- Committer:
- klauss
- Date:
- Tue Sep 01 19:34:34 2015 +0000
- Revision:
- 134:395678c651d8
- Parent:
- 133:3d136f5ffd66
- Child:
- 135:2f4290590e51
Implementando a fun??o que pareia os pings de mestre e escravo, contemplando do bug da radio. Vers?o sem o comando de teste.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
klauss | 74:81c47fff88a5 | 1 | #include "shared_variables.h" |
klauss | 74:81c47fff88a5 | 2 | |
klauss | 132:05cd37f7e007 | 3 | ConfigManager * cm = new ConfigManager (); |
klauss | 74:81c47fff88a5 | 4 | |
klauss | 74:81c47fff88a5 | 5 | bool reset_cks = false; |
klauss | 74:81c47fff88a5 | 6 | |
klauss | 75:bd3c647b860b | 7 | bool debug_alive = false; |
klauss | 74:81c47fff88a5 | 8 | |
klauss | 75:bd3c647b860b | 9 | bool pcks_s = false; |
klauss | 74:81c47fff88a5 | 10 | |
klauss | 74:81c47fff88a5 | 11 | bool list = false; |
klauss | 74:81c47fff88a5 | 12 | |
klauss | 74:81c47fff88a5 | 13 | bool r_stats; |
klauss | 74:81c47fff88a5 | 14 | |
klauss | 126:1f90756250fb | 15 | bool show_last_rx = false; |
klauss | 74:81c47fff88a5 | 16 | |
klauss | 126:1f90756250fb | 17 | bool show_last_tx = false; |
klauss | 74:81c47fff88a5 | 18 | |
klauss | 74:81c47fff88a5 | 19 | bool stats = false; |
klauss | 74:81c47fff88a5 | 20 | |
klauss | 119:ee6a53069455 | 21 | uint32_t boot_counter = 0; |
klauss | 74:81c47fff88a5 | 22 | |
klauss | 119:ee6a53069455 | 23 | uint32_t registry_counter = 0; |
klauss | 119:ee6a53069455 | 24 | |
klauss | 119:ee6a53069455 | 25 | uint32_t invite_counter = 0; |
klauss | 74:81c47fff88a5 | 26 | |
klauss | 119:ee6a53069455 | 27 | uint32_t audio_counter = 0; |
klauss | 74:81c47fff88a5 | 28 | |
klauss | 119:ee6a53069455 | 29 | uint32_t telemetry_counter = 0; |
klauss | 74:81c47fff88a5 | 30 | |
klauss | 119:ee6a53069455 | 31 | uint32_t cb_stats_counter = 0; |
klauss | 99:e80850c51106 | 32 | |
klauss | 119:ee6a53069455 | 33 | uint32_t cb_bye_counter = 0; |
klauss | 74:81c47fff88a5 | 34 | |
klauss | 119:ee6a53069455 | 35 | uint32_t prompt_counter = 0; |
klauss | 74:81c47fff88a5 | 36 | |
klauss | 119:ee6a53069455 | 37 | uint32_t flood_counter = 0; |
klauss | 79:9bc12aa305a9 | 38 | |
klauss | 119:ee6a53069455 | 39 | uint32_t out_of_range = 0; |
klauss | 74:81c47fff88a5 | 40 | |
klauss | 119:ee6a53069455 | 41 | uint32_t fw_counter = 0; |
klauss | 105:a930035b6556 | 42 | |
klauss | 119:ee6a53069455 | 43 | uint32_t bootloader_cbx_counter = 0; |
klauss | 74:81c47fff88a5 | 44 | |
klauss | 80:61d61c9eb75c | 45 | int max_ext = 0; |
klauss | 80:61d61c9eb75c | 46 | |
klauss | 80:61d61c9eb75c | 47 | int min_ext = 0; |
klauss | 80:61d61c9eb75c | 48 | |
klauss | 75:bd3c647b860b | 49 | bool pshowcb = false; |
klauss | 74:81c47fff88a5 | 50 | |
klauss | 81:3656f00ab3db | 51 | uint16_t external_wdt = EXTERN_WDT_IDLE; |
klauss | 81:3656f00ab3db | 52 | |
klauss | 119:ee6a53069455 | 53 | volatile uint8_t status = WAITING; |
klauss | 78:1353744f01e1 | 54 | |
klauss | 74:81c47fff88a5 | 55 | Serial pc (USBTX,USBRX); |
klauss | 74:81c47fff88a5 | 56 | |
klauss | 74:81c47fff88a5 | 57 | DigitalOut led1(LED1); |
klauss | 74:81c47fff88a5 | 58 | |
klauss | 74:81c47fff88a5 | 59 | DigitalOut led2(LED2); |
klauss | 74:81c47fff88a5 | 60 | |
klauss | 74:81c47fff88a5 | 61 | DigitalOut led3(LED3); |
klauss | 74:81c47fff88a5 | 62 | |
klauss | 74:81c47fff88a5 | 63 | DigitalOut led4(LED4); |
klauss | 74:81c47fff88a5 | 64 | |
klauss | 81:3656f00ab3db | 65 | DigitalOut CAB_LED(p24); |
klauss | 81:3656f00ab3db | 66 | |
klauss | 85:b6f2dc1d0f4f | 67 | uint32_t missed_pkg = 0; |
klauss | 85:b6f2dc1d0f4f | 68 | uint8_t cb_new_counter = 0; |
klauss | 85:b6f2dc1d0f4f | 69 | uint8_t cb_delete_counter = 0; |
klauss | 85:b6f2dc1d0f4f | 70 | uint8_t sip_new_counter = 0; |
klauss | 85:b6f2dc1d0f4f | 71 | uint8_t sip_delete_counter = 0; |
klauss | 87:679ee0d594a9 | 72 | uint16_t rtp_header_new_counter = 0; |
klauss | 87:679ee0d594a9 | 73 | uint16_t rtp_body_new_counter = 0; |
klauss | 87:679ee0d594a9 | 74 | uint16_t rtp_header_delete_counter = 0; |
klauss | 87:679ee0d594a9 | 75 | uint16_t rtp_body_delete_counter = 0; |
klauss | 91:c2a86b1f8aaa | 76 | uint16_t call_new_counter = 0; |
klauss | 91:c2a86b1f8aaa | 77 | uint16_t call_delete_counter = 0; |
klauss | 87:679ee0d594a9 | 78 | bool memory_is_over = false; |
klauss | 92:92df17f538a8 | 79 | volatile uint16_t received_cpld_pkg = 0; |
klauss | 97:8985817e8847 | 80 | uint16_t sip_socket_send_failure = 0; |
klauss | 99:e80850c51106 | 81 | bool show_sip = false; |
klauss | 100:09a23fcd3bdf | 82 | uint32_t delayed_pkg_to_cb = 0; |
klauss | 99:e80850c51106 | 83 | uint32_t cpld_pkg_tx_counter = 0; |
klauss | 104:62646ef786a3 | 84 | uint32_t cpld_pkg_rx_counter = 0; |
klauss | 132:05cd37f7e007 | 85 | uint16_t miss_prompt_udp_send_pkg = 0; |
klauss | 132:05cd37f7e007 | 86 | uint16_t miss_bl_udp_send_pkg = 0; |
klauss | 132:05cd37f7e007 | 87 | uint16_t miss_prompt_udp_rcv_pkg = 0; |
klauss | 132:05cd37f7e007 | 88 | uint16_t miss_power_source_send_pkg = 0; |
klauss | 119:ee6a53069455 | 89 | bool extern_process = false; |
klauss | 109:a5b8264ffbbc | 90 | int print_this_cb = 0; |
klauss | 109:a5b8264ffbbc | 91 | int print_hex_this_cb = 0; |
klauss | 109:a5b8264ffbbc | 92 | int print_this_sip = 0; |
klauss | 109:a5b8264ffbbc | 93 | int print_hex_this_sip = 0; |
klauss | 109:a5b8264ffbbc | 94 | int print_this_call = 0; |
klauss | 109:a5b8264ffbbc | 95 | int print_hex_this_call = 0; |
klauss | 109:a5b8264ffbbc | 96 | int print_this_rtp = 0; |
klauss | 109:a5b8264ffbbc | 97 | int print_hex_this_rtp = 0; |
klauss | 109:a5b8264ffbbc | 98 | int frtp_target = 0; |
klauss | 109:a5b8264ffbbc | 99 | int rescue_rtp_target = 0; |
klauss | 119:ee6a53069455 | 100 | int rescue_rtp_value = 0; |
klauss | 119:ee6a53069455 | 101 | uint32_t uptime = 0; |
klauss | 119:ee6a53069455 | 102 | uint8_t drop_this_amount_of_ack_to_ast = 0; |
klauss | 119:ee6a53069455 | 103 | uint16_t string_msg_overflow = 0; |
klauss | 119:ee6a53069455 | 104 | bool test_flag_unusual = false; |
klauss | 123:1d395b5a4cad | 105 | bool show_time = false; |
klauss | 132:05cd37f7e007 | 106 | bool show_invites = false; |
klauss | 124:c1b6c893e1c3 | 107 | bool dont_say_hello_again = false; |
klauss | 124:c1b6c893e1c3 | 108 | bool reverse_list = false; |
klauss | 124:c1b6c893e1c3 | 109 | bool show_hello_status = false; |
klauss | 124:c1b6c893e1c3 | 110 | bool request_clock_now = false; |
klauss | 124:c1b6c893e1c3 | 111 | bool show_wake_all_up_status = false; |
klauss | 132:05cd37f7e007 | 112 | bool disable_wdt_from_cbx = false; |
klauss | 124:c1b6c893e1c3 | 113 | bool wake_all = false; |
klauss | 124:c1b6c893e1c3 | 114 | uint16_t end_call_ext = 0; |
klauss | 124:c1b6c893e1c3 | 115 | bool end_call = false; |
klauss | 126:1f90756250fb | 116 | bool do_not_refresh = false; |
klauss | 126:1f90756250fb | 117 | bool do_not_show_this_invite_pkg = false; |
klauss | 132:05cd37f7e007 | 118 | bool show_wdt_string = false; |