![](/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@99:e80850c51106, 2015-01-19 (annotated)
- Committer:
- klauss
- Date:
- Mon Jan 19 18:00:42 2015 +0000
- Revision:
- 99:e80850c51106
- Parent:
- 98:43b45f26b430
- Child:
- 100:09a23fcd3bdf
wip header cb tx delay
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 | 99:e80850c51106 | 3 | UDPSocket eth_fw_debug; |
klauss | 99:e80850c51106 | 4 | Endpoint eth_fw_debug_server; |
klauss | 99:e80850c51106 | 5 | |
klauss | 99:e80850c51106 | 6 | void init_fw_debug_eth( void ){ |
klauss | 99:e80850c51106 | 7 | eth_fw_debug_server.set_address( "192.168.30.25" , 6667 ); |
klauss | 99:e80850c51106 | 8 | eth_fw_debug.init(); |
klauss | 99:e80850c51106 | 9 | } |
klauss | 99:e80850c51106 | 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 | 99:e80850c51106 | 15 | int eth_fw_debug_pkg( uint8_t * pkg, int size ){ |
klauss | 99:e80850c51106 | 16 | int send = 0; |
klauss | 99:e80850c51106 | 17 | do{ |
klauss | 99:e80850c51106 | 18 | send = eth_fw_debug.sendTo( eth_fw_debug_server, ( char * )pkg, size ); |
klauss | 99:e80850c51106 | 19 | }while( send == 0 ); |
klauss | 99:e80850c51106 | 20 | |
klauss | 99:e80850c51106 | 21 | return send; |
klauss | 74:81c47fff88a5 | 22 | } |
klauss | 74:81c47fff88a5 | 23 | |
klauss | 89:0fe315117b00 | 24 | bool debug_invite = false; |
klauss | 89:0fe315117b00 | 25 | //bool debug_invite = true; |
klauss | 89:0fe315117b00 | 26 | bool debug_sip = false; |
klauss | 89:0fe315117b00 | 27 | //bool debug_sip = true; |
klauss | 75:bd3c647b860b | 28 | bool debug_vector = false; |
klauss | 75:bd3c647b860b | 29 | bool debug_cb = false; |
klauss | 75:bd3c647b860b | 30 | bool debug_main = false; |
klauss | 75:bd3c647b860b | 31 | bool debug_cks = false; |
klauss | 75:bd3c647b860b | 32 | bool debug_cb_rx = false; |
klauss | 75:bd3c647b860b | 33 | bool debug_cb_tx = false; |
klauss | 75:bd3c647b860b | 34 | bool debug_eth_rx = false; |
klauss | 75:bd3c647b860b | 35 | bool debug_eth_tx = false; |
klauss | 81:3656f00ab3db | 36 | bool debug_eth = false; |
klauss | 75:bd3c647b860b | 37 | bool debug_prompt_eth = false; |
klauss | 75:bd3c647b860b | 38 | bool debug_file = false; |
klauss | 75:bd3c647b860b | 39 | bool debug_prompt = false; |
klauss | 99:e80850c51106 | 40 | //bool dparallel = false; |
klauss | 99:e80850c51106 | 41 | bool dparallel = true; |
klauss | 74:81c47fff88a5 | 42 | bool dbl = false; |
klauss | 74:81c47fff88a5 | 43 | bool udp_request = false; |
klauss | 74:81c47fff88a5 | 44 | bool cb_session = false; |
klauss | 74:81c47fff88a5 | 45 | bool cb_status = false; |
klauss | 74:81c47fff88a5 | 46 | bool debug_telemetry = false; |
klauss | 74:81c47fff88a5 | 47 | bool main_test = false; |
klauss | 78:1353744f01e1 | 48 | bool test_debug = false; |
klauss | 78:1353744f01e1 | 49 | bool debug_aging = false; |
klauss | 78:1353744f01e1 | 50 | //bool debug_aging = true; |
klauss | 78:1353744f01e1 | 51 | bool debug_wake = false; |
klauss | 78:1353744f01e1 | 52 | //bool debug_wake = true; |
klauss | 78:1353744f01e1 | 53 | bool debug_cpld = false; |
klauss | 78:1353744f01e1 | 54 | bool debug_cks_err = false; |
klauss | 81:3656f00ab3db | 55 | bool debug_ping = false; |
klauss | 81:3656f00ab3db | 56 | bool debug_refresh = false; |
klauss | 81:3656f00ab3db | 57 | bool long_list = false; |
klauss | 81:3656f00ab3db | 58 | bool debug_out_of_range = false; |
klauss | 81:3656f00ab3db | 59 | bool debug_wdt = false; |
klauss | 81:3656f00ab3db | 60 | bool wdt_show = false; |
klauss | 81:3656f00ab3db | 61 | //bool debug_muted = false; |
klauss | 87:679ee0d594a9 | 62 | bool debug_muted = true; |
klauss | 87:679ee0d594a9 | 63 | bool debug_rtp = true; |
klauss | 89:0fe315117b00 | 64 | //bool debug_rtp = false |
klauss | 89:0fe315117b00 | 65 | //bool debug_memory = false; |
klauss | 98:43b45f26b430 | 66 | bool debug_memory = false; |
klauss | 98:43b45f26b430 | 67 | //bool debug_registry_rcv = true; |
klauss | 98:43b45f26b430 | 68 | bool debug_port_match = false; |
klauss | 99:e80850c51106 | 69 | //bool debug_registry_rcv = false; |
klauss | 99:e80850c51106 | 70 | bool debug_boot = false; |
klauss | 99:e80850c51106 | 71 | //bool debug_fw = false; |
klauss | 99:e80850c51106 | 72 | bool debug_fw = true; |
klauss | 99:e80850c51106 | 73 | bool debug_fw_print = false; |
klauss | 99:e80850c51106 | 74 |