Modularizando o src

Dependencies:   EALib EthernetInterface_vz mbed-rtos mbed

Fork of header_main_colinas_V0-20-09-14 by VZTECH

Revision:
100:09a23fcd3bdf
Parent:
99:e80850c51106
Child:
104:62646ef786a3
--- a/debug.h	Mon Jan 19 18:00:42 2015 +0000
+++ b/debug.h	Thu Feb 12 16:42:35 2015 +0000
@@ -91,6 +91,10 @@
 
 extern bool debug_boot;
 extern bool debug_fw_print;
+extern bool debug_uart3;
+extern bool big_bug_pkg;
+extern bool flood_bug_pkg;
+
 /**
  * @Synopsis Função usada anteriormente para formatação da string que debug, não esta mais em uso.
  *
@@ -105,7 +109,7 @@
   sprintf(debug_msg1, "%s:%d ", __FILE__, __LINE__); \
   sprintf(debug_msg2, __VA_ARGS__); \
   strcat(debug_msg1, debug_msg2); \
-  pc.printf( "%s\n\r> ", debug_msg1 ); \
+  if( debug_uart3 ) pc.printf( "%s\n\r> ", debug_msg1 ); \
   if( tcp_session ){ \
     strcat( debug_msg1, "\n\r" ); \
     while( !( tcp_client.send_all( debug_msg1, strlen( debug_msg1 ) ) ) ); \
@@ -117,7 +121,7 @@
 #define send_msg(...) _send_msg(__VA_ARGS__)
 #define _send_msg(...) { \
   sprintf( msg_, __VA_ARGS__); \
-  pc.printf( "%s\n\r> ", msg_ ); \
+  if( debug_uart3 ) pc.printf( "%s\n\r> ", msg_ ); \
   if( tcp_session ){ \
     strcat( msg_, "\n\r> " ); \
     while( !( tcp_client.send_all( msg_, strlen( msg_ ) ) ) ); \