![](/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@86:bf7b0d4c3232, 2015-01-05 (annotated)
- Committer:
- klauss
- Date:
- Mon Jan 05 12:43:12 2015 +0000
- Revision:
- 86:bf7b0d4c3232
- Parent:
- 81:3656f00ab3db
- Child:
- 87:679ee0d594a9
rx buffer personal config
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 | 0:4d17cd9c8f9d | 3 | UDPSocket debug; |
klauss | 0:4d17cd9c8f9d | 4 | Endpoint debug_server; |
klauss | 0:4d17cd9c8f9d | 5 | char debug_msg1[ 1024+64 ]; |
klauss | 0:4d17cd9c8f9d | 6 | char debug_msg2[ 1024 ]; |
klauss | 48:195c97f12e8e | 7 | char msg_[ 1024 ]; |
klauss | 0:4d17cd9c8f9d | 8 | |
klauss | 0:4d17cd9c8f9d | 9 | void debug_pkg( int size, uint8_t * pkg ){ |
klauss | 78:1353744f01e1 | 10 | /* |
klauss | 78:1353744f01e1 | 11 | if (debug_alive == true){ |
Cola | 21:0bd688722e81 | 12 | static uint8_t i=0; |
Cola | 21:0bd688722e81 | 13 | strcpy( debug_msg1, "Pkg " ); |
Cola | 21:0bd688722e81 | 14 | memcpy( debug_msg1+5, pkg, size ); |
Cola | 21:0bd688722e81 | 15 | debug_msg1[ 4 ] = i++; |
Cola | 21:0bd688722e81 | 16 | debug.sendTo( debug_server, debug_msg1, size+5 ); |
Cola | 21:0bd688722e81 | 17 | }else |
Cola | 21:0bd688722e81 | 18 | {} |
klauss | 78:1353744f01e1 | 19 | */ |
klauss | 78:1353744f01e1 | 20 | return; |
klauss | 74:81c47fff88a5 | 21 | } |
klauss | 74:81c47fff88a5 | 22 | |
klauss | 81:3656f00ab3db | 23 | //bool debug_invite = false; |
klauss | 81:3656f00ab3db | 24 | bool debug_invite = true; |
klauss | 86:bf7b0d4c3232 | 25 | //bool debug_sip = false; |
klauss | 86:bf7b0d4c3232 | 26 | bool debug_sip = true; |
klauss | 75:bd3c647b860b | 27 | bool debug_vector = false; |
klauss | 75:bd3c647b860b | 28 | bool debug_cb = false; |
klauss | 75:bd3c647b860b | 29 | bool debug_main = false; |
klauss | 75:bd3c647b860b | 30 | bool debug_cks = false; |
klauss | 75:bd3c647b860b | 31 | bool debug_cb_rx = false; |
klauss | 75:bd3c647b860b | 32 | bool debug_cb_tx = false; |
klauss | 75:bd3c647b860b | 33 | bool debug_eth_rx = false; |
klauss | 75:bd3c647b860b | 34 | bool debug_eth_tx = false; |
klauss | 81:3656f00ab3db | 35 | bool debug_eth = false; |
klauss | 75:bd3c647b860b | 36 | bool debug_prompt_eth = false; |
klauss | 75:bd3c647b860b | 37 | bool debug_file = false; |
klauss | 75:bd3c647b860b | 38 | bool debug_prompt = false; |
klauss | 74:81c47fff88a5 | 39 | bool dparallel = false; |
klauss | 74:81c47fff88a5 | 40 | bool dbl = false; |
klauss | 74:81c47fff88a5 | 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 | 78:1353744f01e1 | 48 | //bool debug_aging = true; |
klauss | 78:1353744f01e1 | 49 | bool debug_wake = false; |
klauss | 78:1353744f01e1 | 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 | 81:3656f00ab3db | 59 | //bool debug_muted = false; |
klauss | 81:3656f00ab3db | 60 | bool debug_muted = true; |