]> mj.ucw.cz Git - home-hw.git/blobdiff - lib/util-debug.c
README
[home-hw.git] / lib / util-debug.c
index e47ff46c9bd04c6f119216381e0a903ebcce9a1d..59ee644709c81bee1806d9ae7bb952db8bd74d51 100644 (file)
@@ -1,3 +1,9 @@
+/*
+ *     Debugging Utilities for STM32
+ *
+ *     (c) 2018--2019 Martin Mareš <mj@ucw.cz>
+ */
+
 #include "util.h"
 
 #include <libopencm3/stm32/usart.h>
@@ -61,8 +67,8 @@ void debug_putc(int c)
 #endif
 #ifdef DEBUG_USART
        if (c == '\n')
-               usart_send_blocking(USART2, '\r');
-       usart_send_blocking(USART2, c);
+               usart_send_blocking(DEBUG_USART, '\r');
+       usart_send_blocking(DEBUG_USART, c);
 #endif
 }