![](/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
debug.h@136:2da626f30efa, 2015-09-14 (annotated)
- Committer:
- klauss
- Date:
- Mon Sep 14 14:05:43 2015 +0000
- Revision:
- 136:2da626f30efa
- Parent:
- 135:2f4290590e51
Adicionando funcionalidades de medi??o de tempo gasto em computa??es.; Criado fun??es especificar pra esta finalidade.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
klauss | 69:65665afbad5d | 1 | /** |
klauss | 69:65665afbad5d | 2 | * @file debug.h |
klauss | 69:65665afbad5d | 3 | * @Synopsis Instrumenta o uso de debug no código da header. |
klauss | 69:65665afbad5d | 4 | * @author Jhonatan Casale / PedroZN |
klauss | 69:65665afbad5d | 5 | * @version 1 |
klauss | 69:65665afbad5d | 6 | * @date 2014-11-05 |
klauss | 69:65665afbad5d | 7 | */ |
klauss | 0:4d17cd9c8f9d | 8 | #ifndef __DEBUG_H__ |
klauss | 0:4d17cd9c8f9d | 9 | #define __DEBUG_H__ |
klauss | 0:4d17cd9c8f9d | 10 | |
klauss | 132:05cd37f7e007 | 11 | %: include "shared_variables.h" |
klauss | 132:05cd37f7e007 | 12 | %: include "vz_stdio.h" |
klauss | 0:4d17cd9c8f9d | 13 | |
klauss | 135:2f4290590e51 | 14 | //%: define MODE_TEST 1 |
klauss | 132:05cd37f7e007 | 15 | |
klauss | 121:ee02790d00b7 | 16 | extern uint16_t string_msg_overflow; |
klauss | 132:05cd37f7e007 | 17 | |
klauss | 121:ee02790d00b7 | 18 | extern uint16_t miss_prompt_udp_send_pkg; |
klauss | 121:ee02790d00b7 | 19 | |
klauss | 109:a5b8264ffbbc | 20 | extern UDPSocket eth_fw_debug; |
klauss | 121:ee02790d00b7 | 21 | |
klauss | 109:a5b8264ffbbc | 22 | extern Endpoint eth_fw_debug_server; |
klauss | 109:a5b8264ffbbc | 23 | |
klauss | 119:ee6a53069455 | 24 | const uint16_t DEBUG_MSG_SIZE = 1024; |
klauss | 121:ee02790d00b7 | 25 | |
klauss | 119:ee6a53069455 | 26 | const uint8_t DEBUG_AUX_MSG_SIZE = 64; |
klauss | 119:ee6a53069455 | 27 | |
klauss | 132:05cd37f7e007 | 28 | extern char debug_msg1 [ DEBUG_MSG_SIZE + DEBUG_AUX_MSG_SIZE ]; |
klauss | 69:65665afbad5d | 29 | ///< Buffer usado na composisão da mensagem enviada pela macro debug_msg |
klauss | 121:ee02790d00b7 | 30 | |
klauss | 132:05cd37f7e007 | 31 | extern char debug_msg2 [ DEBUG_MSG_SIZE ]; |
klauss | 69:65665afbad5d | 32 | ///< Buffer usado na composisão da mensagem enviada pela macro debug_msg |
klauss | 121:ee02790d00b7 | 33 | |
klauss | 132:05cd37f7e007 | 34 | extern char msg_ [ DEBUG_MSG_SIZE ]; |
klauss | 69:65665afbad5d | 35 | ///< Buffer utilizado pela macro send_msg |
klauss | 14:22a35f575502 | 36 | |
klauss | 74:81c47fff88a5 | 37 | extern bool cb_session; |
klauss | 74:81c47fff88a5 | 38 | ///< Não utilizada atualmente. |
klauss | 121:ee02790d00b7 | 39 | |
klauss | 74:81c47fff88a5 | 40 | extern bool cb_status; |
klauss | 74:81c47fff88a5 | 41 | ///< Não utilizada atualmente. |
klauss | 121:ee02790d00b7 | 42 | |
klauss | 74:81c47fff88a5 | 43 | extern bool debug_telemetry; |
klauss | 74:81c47fff88a5 | 44 | ///< Variável de controle que aciona o debug de telemetria. |
klauss | 121:ee02790d00b7 | 45 | |
klauss | 74:81c47fff88a5 | 46 | extern bool main_test; |
klauss | 136:2da626f30efa | 47 | |
klauss | 136:2da626f30efa | 48 | extern bool main_test_mean; |
klauss | 74:81c47fff88a5 | 49 | |
klauss | 119:ee6a53069455 | 50 | extern bool sizes; |
klauss | 119:ee6a53069455 | 51 | |
klauss | 119:ee6a53069455 | 52 | extern uint16_t miss_debug_fw_send_pkg; |
klauss | 119:ee6a53069455 | 53 | extern uint16_t miss_sip_registry_send_pkg; |
klauss | 119:ee6a53069455 | 54 | extern uint16_t miss_sip_invite_send_pkg; |
klauss | 119:ee6a53069455 | 55 | extern uint16_t miss_sip_bye_send_pkg; |
klauss | 119:ee6a53069455 | 56 | extern uint16_t miss_sip_ok_send_pkg; |
klauss | 119:ee6a53069455 | 57 | extern uint16_t miss_sip_rcv_bye_send_pkg; |
klauss | 119:ee6a53069455 | 58 | extern uint16_t miss_wdt_send_pkg; |
klauss | 119:ee6a53069455 | 59 | extern uint16_t miss_sip_inc_pkg; |
klauss | 119:ee6a53069455 | 60 | extern uint16_t miss_udp_prompt_send_pkg; |
klauss | 131:938ab88facae | 61 | extern uint16_t miss_clock_send_pkg; |
klauss | 119:ee6a53069455 | 62 | |
klauss | 119:ee6a53069455 | 63 | extern bool show_uptime; |
klauss | 119:ee6a53069455 | 64 | |
klauss | 75:bd3c647b860b | 65 | extern bool debug_sip; |
klauss | 74:81c47fff88a5 | 66 | ///< Variável de controle que ativa o debug sip. |
klauss | 75:bd3c647b860b | 67 | extern bool debug_prompt; |
klauss | 74:81c47fff88a5 | 68 | ///< Variável de controle que ativa o debug do prompt. |
klauss | 75:bd3c647b860b | 69 | extern bool debug_vector; |
klauss | 74:81c47fff88a5 | 70 | ///< Variável de controle que ativa o debug do vector. |
klauss | 75:bd3c647b860b | 71 | extern bool debug_cb; |
klauss | 74:81c47fff88a5 | 72 | ///< Variável de controle que ativa o debug da classe Call_box. |
klauss | 75:bd3c647b860b | 73 | extern bool debug_main; |
klauss | 74:81c47fff88a5 | 74 | ///< Variável de controle que ativa o debug da main. |
klauss | 75:bd3c647b860b | 75 | extern bool debug_cks; |
klauss | 74:81c47fff88a5 | 76 | ///< Variável de controle que ativa o debug do ckechsum dos pacotes recebidos. |
klauss | 75:bd3c647b860b | 77 | extern bool debug_cb_rx; |
klauss | 74:81c47fff88a5 | 78 | ///< Variável de controle que ativa o debug dos pacotes recebidos do CBx. |
klauss | 75:bd3c647b860b | 79 | extern bool debug_cb_tx; |
klauss | 74:81c47fff88a5 | 80 | ///< Variável de controle que ativa o debug dos pacotes enviados para o CBx. |
klauss | 75:bd3c647b860b | 81 | extern bool debug_eth_rx; |
klauss | 74:81c47fff88a5 | 82 | ///< Variável de controle que ativa o debug dos pacotes recebidos da eth \note não implementado. |
klauss | 75:bd3c647b860b | 83 | extern bool debug_eth_tx; |
klauss | 74:81c47fff88a5 | 84 | ///< Variável de controle que ativa o debug dos pacotes enviados para a eth \note não implementado. |
klauss | 75:bd3c647b860b | 85 | extern bool debug_file; |
klauss | 74:81c47fff88a5 | 86 | ///< Variável de controle que ativa o debug do sistema de arquivos. |
klauss | 74:81c47fff88a5 | 87 | extern bool dbl; |
klauss | 74:81c47fff88a5 | 88 | ///< Variável de controle que ativa o debug do protocolo de bootloader dos CBx |
klauss | 74:81c47fff88a5 | 89 | extern bool dparallel; |
klauss | 74:81c47fff88a5 | 90 | ///< Variável de controle que aciona o debug de envio de pacotes pro cb, quando se |
klauss | 74:81c47fff88a5 | 91 | ///< quer transmitir um pacote enquanto outro pacote, já esta em transmissao. |
klauss | 75:bd3c647b860b | 92 | extern bool test_debug; |
klauss | 74:81c47fff88a5 | 93 | ///< Variável de controle que ativa o debug de test. |
klauss | 78:1353744f01e1 | 94 | extern bool debug_aging; |
klauss | 78:1353744f01e1 | 95 | ///< Variável de controle que ativa o debug da funçao de aging do registro. |
klauss | 78:1353744f01e1 | 96 | |
klauss | 119:ee6a53069455 | 97 | extern bool debug_clock; |
klauss | 78:1353744f01e1 | 98 | extern bool debug_invite; |
klauss | 78:1353744f01e1 | 99 | extern bool debug_wake; |
klauss | 81:3656f00ab3db | 100 | extern bool debug_muted; |
klauss | 78:1353744f01e1 | 101 | extern bool debug_cpld; |
klauss | 124:c1b6c893e1c3 | 102 | extern bool debug_show_tx_cpld; |
klauss | 124:c1b6c893e1c3 | 103 | extern bool debug_show_rx_cpld; |
klauss | 78:1353744f01e1 | 104 | extern bool debug_cks_err; |
klauss | 78:1353744f01e1 | 105 | extern bool debug_ping; |
klauss | 81:3656f00ab3db | 106 | extern bool debug_refresh; |
klauss | 81:3656f00ab3db | 107 | extern bool long_list; |
klauss | 81:3656f00ab3db | 108 | extern bool debug_out_of_range; |
klauss | 81:3656f00ab3db | 109 | extern bool debug_wdt; |
klauss | 81:3656f00ab3db | 110 | extern bool debug_eth; |
klauss | 81:3656f00ab3db | 111 | extern bool wdt_show; |
klauss | 87:679ee0d594a9 | 112 | extern bool debug_rtp; |
klauss | 89:0fe315117b00 | 113 | extern bool debug_memory; |
klauss | 98:43b45f26b430 | 114 | extern bool debug_port_match; |
klauss | 99:e80850c51106 | 115 | extern bool debug_fw; |
klauss | 119:ee6a53069455 | 116 | extern bool debug_gp; |
klauss | 119:ee6a53069455 | 117 | extern bool missed_send_udp_pkg; |
klauss | 132:05cd37f7e007 | 118 | extern bool debug_reconnect; |
klauss | 74:81c47fff88a5 | 119 | |
klauss | 99:e80850c51106 | 120 | extern bool debug_boot; |
klauss | 99:e80850c51106 | 121 | extern bool debug_fw_print; |
klauss | 100:09a23fcd3bdf | 122 | extern bool big_bug_pkg; |
klauss | 100:09a23fcd3bdf | 123 | extern bool flood_bug_pkg; |
klauss | 132:05cd37f7e007 | 124 | extern uint16_t miss_rtp_udp_send_pkg; |
klauss | 119:ee6a53069455 | 125 | extern bool reset_missed_send_udp_pkg; |
klauss | 119:ee6a53069455 | 126 | extern bool debug_missed; |
klauss | 119:ee6a53069455 | 127 | extern uint16_t deleted_sip; |
klauss | 108:18a3702650f3 | 128 | extern bool dshow_rtp; |
klauss | 108:18a3702650f3 | 129 | extern bool dcallshow_rtp; |
klauss | 119:ee6a53069455 | 130 | extern bool debug_reset_rtp; |
klauss | 114:472502b31a12 | 131 | extern bool debug_rtp; |
klauss | 114:472502b31a12 | 132 | extern uint16_t deleted_sip; |
klauss | 109:a5b8264ffbbc | 133 | extern bool print_values; |
klauss | 109:a5b8264ffbbc | 134 | extern bool print_v_cb; |
klauss | 109:a5b8264ffbbc | 135 | extern bool print_v_call; |
klauss | 109:a5b8264ffbbc | 136 | extern bool print_cb_var; |
klauss | 109:a5b8264ffbbc | 137 | extern bool print_cb_all; |
klauss | 109:a5b8264ffbbc | 138 | extern bool print_hex_cb_var; |
klauss | 109:a5b8264ffbbc | 139 | extern bool print_hex_cb_all; |
klauss | 109:a5b8264ffbbc | 140 | extern bool print_sip_var; |
klauss | 109:a5b8264ffbbc | 141 | extern bool print_sip_all; |
klauss | 109:a5b8264ffbbc | 142 | extern bool print_hex_sip_var; |
klauss | 109:a5b8264ffbbc | 143 | extern bool print_hex_sip_all; |
klauss | 109:a5b8264ffbbc | 144 | |
klauss | 109:a5b8264ffbbc | 145 | extern bool print_call_var; |
klauss | 109:a5b8264ffbbc | 146 | extern bool print_call_all; |
klauss | 109:a5b8264ffbbc | 147 | extern bool print_hex_call_var; |
klauss | 109:a5b8264ffbbc | 148 | extern bool print_hex_call_all; |
klauss | 109:a5b8264ffbbc | 149 | |
klauss | 109:a5b8264ffbbc | 150 | extern bool print_rtp_var; |
klauss | 109:a5b8264ffbbc | 151 | extern bool print_rtp_all; |
klauss | 109:a5b8264ffbbc | 152 | extern bool print_hex_rtp_var; |
klauss | 109:a5b8264ffbbc | 153 | extern bool print_hex_rtp_all; |
klauss | 109:a5b8264ffbbc | 154 | extern bool frtp; |
klauss | 109:a5b8264ffbbc | 155 | extern bool rescue_rtp; |
klauss | 109:a5b8264ffbbc | 156 | extern bool drop_invite_pkg; |
klauss | 109:a5b8264ffbbc | 157 | extern bool drop_entendi_pkg; |
klauss | 109:a5b8264ffbbc | 158 | extern bool drop_invite_to_ast_pkg; |
klauss | 109:a5b8264ffbbc | 159 | extern bool drop_ok_pkg; |
klauss | 109:a5b8264ffbbc | 160 | extern bool drop_ack_pkg; |
klauss | 109:a5b8264ffbbc | 161 | extern bool drop_rtp_from_ast_pkg; |
klauss | 109:a5b8264ffbbc | 162 | extern bool drop_rtp_from_cbx_pkg; |
klauss | 119:ee6a53069455 | 163 | extern bool drop_registry_pkg; |
klauss | 112:6ae726539ab9 | 164 | extern bool registra; |
klauss | 132:05cd37f7e007 | 165 | extern bool registra4; |
klauss | 132:05cd37f7e007 | 166 | extern bool debug_dont_refresh; |
klauss | 119:ee6a53069455 | 167 | extern bool received_audio_from_cb; |
klauss | 132:05cd37f7e007 | 168 | extern uint16_t miss_rtp_udp_send_pkg; |
klauss | 117:e9facba9db27 | 169 | extern bool debug_bootloader; |
klauss | 119:ee6a53069455 | 170 | extern bool debug_bind; |
klauss | 119:ee6a53069455 | 171 | extern bool debug_app_init; |
klauss | 119:ee6a53069455 | 172 | extern bool debug_string_length; |
klauss | 119:ee6a53069455 | 173 | extern bool show_current_time; |
klauss | 122:480c44b0e205 | 174 | extern bool dmissed_wdt; |
klauss | 124:c1b6c893e1c3 | 175 | extern bool debug_hello; |
klauss | 126:1f90756250fb | 176 | extern bool debug_sqn; |
klauss | 126:1f90756250fb | 177 | extern bool test_ts; |
klauss | 128:3ae1c74773a8 | 178 | extern bool debug_pwr_src; |
klauss | 132:05cd37f7e007 | 179 | extern bool debug_print_clock; |
klauss | 132:05cd37f7e007 | 180 | extern bool debug_resend_invite; |
klauss | 135:2f4290590e51 | 181 | extern bool debug_pair; |
klauss | 132:05cd37f7e007 | 182 | extern uint16_t miss_rtp_udp_rcv_pkg; |
klauss | 135:2f4290590e51 | 183 | extern bool debug_alloc_vz_call; |
klauss | 48:195c97f12e8e | 184 | |
klauss | 32:43041f5e27c4 | 185 | #endif |