![](/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.cpp@114:472502b31a12, 2015-04-20 (annotated)
- Committer:
- klauss
- Date:
- Mon Apr 20 14:40:09 2015 +0000
- Revision:
- 114:472502b31a12
- Parent:
- 113:db67ae00550e
- Child:
- 115:a1e1e2e60a2c
antes de implementar os retrys da header -> cbx
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
klauss | 0:4d17cd9c8f9d | 1 | #include "debug.h" |
klauss | 0:4d17cd9c8f9d | 2 | |
klauss | 109:a5b8264ffbbc | 3 | UDPSocket eth_fw_debug; |
klauss | 109:a5b8264ffbbc | 4 | Endpoint eth_fw_debug_server; |
klauss | 109:a5b8264ffbbc | 5 | |
klauss | 114:472502b31a12 | 6 | void init_fw_debug_eth( void ){ |
klauss | 114:472502b31a12 | 7 | eth_fw_debug_server.set_address( "192.168.30.25" , 6667 ); |
klauss | 114:472502b31a12 | 8 | eth_fw_debug.init(); |
klauss | 114:472502b31a12 | 9 | } |
klauss | 114:472502b31a12 | 10 | |
klauss | 0:4d17cd9c8f9d | 11 | char debug_msg1[ 1024+64 ]; |
klauss | 0:4d17cd9c8f9d | 12 | char debug_msg2[ 1024 ]; |
klauss | 48:195c97f12e8e | 13 | char msg_[ 1024 ]; |
klauss | 0:4d17cd9c8f9d | 14 | |
klauss | 114:472502b31a12 | 15 | int eth_fw_debug_pkg( uint8_t * pkg, int size ){ |
klauss | 114:472502b31a12 | 16 | int send = 0; |
klauss | 114:472502b31a12 | 17 | do{ |
klauss | 114:472502b31a12 | 18 | send = eth_fw_debug.sendTo( eth_fw_debug_server, ( char * )pkg, size ); |
klauss | 114:472502b31a12 | 19 | }while( send == 0 ); |
klauss | 113:db67ae00550e | 20 | |
klauss | 109:a5b8264ffbbc | 21 | return send; |
klauss | 109:a5b8264ffbbc | 22 | } |
klauss | 74:81c47fff88a5 | 23 | |
klauss | 89:0fe315117b00 | 24 | bool debug_invite = false; |
klauss | 109:a5b8264ffbbc | 25 | bool debug_sip = false; |
klauss | 75:bd3c647b860b | 26 | bool debug_vector = false; |
klauss | 75:bd3c647b860b | 27 | bool debug_cb = false; |
klauss | 75:bd3c647b860b | 28 | bool debug_main = false; |
klauss | 75:bd3c647b860b | 29 | bool debug_cks = false; |
klauss | 75:bd3c647b860b | 30 | bool debug_cb_rx = false; |
klauss | 75:bd3c647b860b | 31 | bool debug_cb_tx = false; |
klauss | 75:bd3c647b860b | 32 | bool debug_eth_rx = false; |
klauss | 75:bd3c647b860b | 33 | bool debug_eth_tx = false; |
klauss | 81:3656f00ab3db | 34 | bool debug_eth = false; |
klauss | 75:bd3c647b860b | 35 | bool debug_prompt_eth = false; |
klauss | 109:a5b8264ffbbc | 36 | bool debug_file = false; |
klauss | 75:bd3c647b860b | 37 | bool debug_prompt = false; |
klauss | 100:09a23fcd3bdf | 38 | bool dparallel = false; |
klauss | 114:472502b31a12 | 39 | //bool dparallel = true; |
klauss | 74:81c47fff88a5 | 40 | bool dbl = false; |
klauss | 109:a5b8264ffbbc | 41 | bool udp_request = false; |
klauss | 74:81c47fff88a5 | 42 | bool cb_session = false; |
klauss | 74:81c47fff88a5 | 43 | bool cb_status = false; |
klauss | 74:81c47fff88a5 | 44 | bool debug_telemetry = false; |
klauss | 74:81c47fff88a5 | 45 | bool main_test = false; |
klauss | 78:1353744f01e1 | 46 | bool test_debug = false; |
klauss | 78:1353744f01e1 | 47 | bool debug_aging = false; |
klauss | 114:472502b31a12 | 48 | //bool debug_aging = true; |
klauss | 78:1353744f01e1 | 49 | bool debug_wake = false; |
klauss | 114:472502b31a12 | 50 | //bool debug_wake = true; |
klauss | 78:1353744f01e1 | 51 | bool debug_cpld = false; |
klauss | 78:1353744f01e1 | 52 | bool debug_cks_err = false; |
klauss | 81:3656f00ab3db | 53 | bool debug_ping = false; |
klauss | 81:3656f00ab3db | 54 | bool debug_refresh = false; |
klauss | 81:3656f00ab3db | 55 | bool long_list = false; |
klauss | 81:3656f00ab3db | 56 | bool debug_out_of_range = false; |
klauss | 81:3656f00ab3db | 57 | bool debug_wdt = false; |
klauss | 81:3656f00ab3db | 58 | bool wdt_show = false; |
klauss | 100:09a23fcd3bdf | 59 | bool debug_muted = false; |
klauss | 100:09a23fcd3bdf | 60 | //bool debug_muted = true; |
klauss | 108:18a3702650f3 | 61 | bool debug_rtp = true; |
klauss | 108:18a3702650f3 | 62 | //bool debug_rtp = false; |
klauss | 89:0fe315117b00 | 63 | //bool debug_memory = false; |
klauss | 98:43b45f26b430 | 64 | bool debug_memory = false; |
klauss | 98:43b45f26b430 | 65 | //bool debug_registry_rcv = true; |
klauss | 98:43b45f26b430 | 66 | bool debug_port_match = false; |
klauss | 99:e80850c51106 | 67 | //bool debug_registry_rcv = false; |
klauss | 99:e80850c51106 | 68 | bool debug_boot = false; |
klauss | 114:472502b31a12 | 69 | //bool debug_fw = false; |
klauss | 114:472502b31a12 | 70 | bool debug_fw = true; |
klauss | 99:e80850c51106 | 71 | bool debug_fw_print = false; |
klauss | 100:09a23fcd3bdf | 72 | bool debug_uart3 = false; |
klauss | 100:09a23fcd3bdf | 73 | bool big_bug_pkg = false; |
klauss | 100:09a23fcd3bdf | 74 | bool flood_bug_pkg = false; |
klauss | 114:472502b31a12 | 75 | bool dshow_rtp = false; |
klauss | 114:472502b31a12 | 76 | bool dcallshow_rtp = false; |
klauss | 109:a5b8264ffbbc | 77 | uint16_t deleted_sip = 0; |
klauss | 109:a5b8264ffbbc | 78 | bool print_v_cb = false; |
klauss | 109:a5b8264ffbbc | 79 | bool print_v_call = false; |
klauss | 109:a5b8264ffbbc | 80 | bool print_cb_var = false; |
klauss | 109:a5b8264ffbbc | 81 | bool print_cb_all = false; |
klauss | 109:a5b8264ffbbc | 82 | bool print_hex_cb_var = false; |
klauss | 109:a5b8264ffbbc | 83 | bool print_hex_cb_all = false; |
klauss | 109:a5b8264ffbbc | 84 | |
klauss | 109:a5b8264ffbbc | 85 | bool print_sip_var = false; |
klauss | 109:a5b8264ffbbc | 86 | bool print_sip_all = false; |
klauss | 109:a5b8264ffbbc | 87 | bool print_hex_sip_var = false; |
klauss | 109:a5b8264ffbbc | 88 | bool print_hex_sip_all = false; |
klauss | 109:a5b8264ffbbc | 89 | |
klauss | 109:a5b8264ffbbc | 90 | bool print_rtp_var = false; |
klauss | 109:a5b8264ffbbc | 91 | bool print_rtp_all = false; |
klauss | 109:a5b8264ffbbc | 92 | bool print_hex_rtp_var = false; |
klauss | 109:a5b8264ffbbc | 93 | bool print_hex_rtp_all = false; |
klauss | 109:a5b8264ffbbc | 94 | |
klauss | 109:a5b8264ffbbc | 95 | bool print_call_var = false; |
klauss | 109:a5b8264ffbbc | 96 | bool print_call_all = false; |
klauss | 109:a5b8264ffbbc | 97 | bool print_hex_call_var = false; |
klauss | 109:a5b8264ffbbc | 98 | bool print_hex_call_all = false; |
klauss | 109:a5b8264ffbbc | 99 | |
klauss | 109:a5b8264ffbbc | 100 | bool print_values = false; |
klauss | 109:a5b8264ffbbc | 101 | bool tango = false; |
klauss | 109:a5b8264ffbbc | 102 | bool york = false; |
klauss | 109:a5b8264ffbbc | 103 | bool chicago = false; |
klauss | 109:a5b8264ffbbc | 104 | bool malasia = false; |
klauss | 109:a5b8264ffbbc | 105 | bool canada = false; |
klauss | 109:a5b8264ffbbc | 106 | bool america = false; |
klauss | 109:a5b8264ffbbc | 107 | bool frtp = false; |
klauss | 109:a5b8264ffbbc | 108 | bool rescue_rtp = false; |
klauss | 109:a5b8264ffbbc | 109 | bool drop_invite_pkg = false; |
klauss | 109:a5b8264ffbbc | 110 | bool drop_entendi_pkg = false; |
klauss | 109:a5b8264ffbbc | 111 | bool drop_invite_to_ast_pkg = false; |
klauss | 109:a5b8264ffbbc | 112 | bool drop_ok_pkg = false; |
klauss | 109:a5b8264ffbbc | 113 | bool drop_ack_pkg = false; |
klauss | 109:a5b8264ffbbc | 114 | bool drop_rtp_from_ast_pkg = false; |
klauss | 112:6ae726539ab9 | 115 | bool drop_rtp_from_cbx_pkg = false; |
klauss | 112:6ae726539ab9 | 116 | bool cogumelo = false; |
klauss | 112:6ae726539ab9 | 117 | bool registra = false; |
klauss | 112:6ae726539ab9 | 118 | bool gnomo = false; |