aboutsummaryrefslogtreecommitdiff
path: root/include/debug_uart.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/debug_uart.h')
-rw-r--r--include/debug_uart.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/debug_uart.h b/include/debug_uart.h
index a6b7ce8e6ee..5d5349bbd2e 100644
--- a/include/debug_uart.h
+++ b/include/debug_uart.h
@@ -105,6 +105,12 @@ void printhex4(uint value);
*/
void printhex8(uint value);
+#ifdef CONFIG_DEBUG_UART_ANNOUNCE
+#define _DEBUG_UART_ANNOUNCE printascii("<debug_uart> ");
+#else
+#define _DEBUG_UART_ANNOUNCE
+#endif
+
/*
* Now define some functions - this should be inserted into the serial driver
*/
@@ -151,6 +157,7 @@ void printhex8(uint value);
{ \
board_debug_uart_init(); \
_debug_uart_init(); \
+ _DEBUG_UART_ANNOUNCE \
} \
#endif