![](/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@75:bd3c647b860b, 2014-11-24 (annotated)
- Committer:
- klauss
- Date:
- Mon Nov 24 18:57:54 2014 +0000
- Revision:
- 75:bd3c647b860b
- Parent:
- 74:81c47fff88a5
- Child:
- 76:9f5f99dd895a
versao antes de mudar o pedido de invite pra funcionar como MEF
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 ){ |
Cola | 21:0bd688722e81 | 10 | if (debug_alive == 1){ |
Cola | 21:0bd688722e81 | 11 | static uint8_t i=0; |
Cola | 21:0bd688722e81 | 12 | strcpy( debug_msg1, "Pkg " ); |
Cola | 21:0bd688722e81 | 13 | memcpy( debug_msg1+5, pkg, size ); |
Cola | 21:0bd688722e81 | 14 | debug_msg1[ 4 ] = i++; |
Cola | 21:0bd688722e81 | 15 | debug.sendTo( debug_server, debug_msg1, size+5 ); |
Cola | 21:0bd688722e81 | 16 | }else |
Cola | 21:0bd688722e81 | 17 | {} |
klauss | 74:81c47fff88a5 | 18 | } |
klauss | 74:81c47fff88a5 | 19 | |
klauss | 75:bd3c647b860b | 20 | bool debug_sip = false; |
klauss | 75:bd3c647b860b | 21 | bool debug_vector = false; |
klauss | 75:bd3c647b860b | 22 | bool debug_cb = false; |
klauss | 75:bd3c647b860b | 23 | bool debug_main = false; |
klauss | 75:bd3c647b860b | 24 | bool debug_cks = false; |
klauss | 75:bd3c647b860b | 25 | bool debug_cb_rx = false; |
klauss | 75:bd3c647b860b | 26 | bool debug_cb_tx = false; |
klauss | 75:bd3c647b860b | 27 | bool debug_eth_rx = false; |
klauss | 75:bd3c647b860b | 28 | bool debug_eth_tx = false; |
klauss | 75:bd3c647b860b | 29 | bool debug_prompt_eth = false; |
klauss | 75:bd3c647b860b | 30 | bool debug_file = false; |
klauss | 75:bd3c647b860b | 31 | bool debug_prompt = false; |
klauss | 74:81c47fff88a5 | 32 | bool dparallel = false; |
klauss | 74:81c47fff88a5 | 33 | bool dbl = false; |
klauss | 74:81c47fff88a5 | 34 | bool udp_request = false; |
klauss | 74:81c47fff88a5 | 35 | bool cb_session = false; |
klauss | 74:81c47fff88a5 | 36 | bool cb_status = false; |
klauss | 74:81c47fff88a5 | 37 | bool debug_telemetry = false; |
klauss | 74:81c47fff88a5 | 38 | bool main_test = false; |
klauss | 74:81c47fff88a5 | 39 | |
klauss | 75:bd3c647b860b | 40 | bool test_debug = false; |