+/*
+ * Debugging Utilities for STM32
+ *
+ * (c) 2018--2019 Martin Mareš <mj@ucw.cz>
+ */
+
#include "util.h"
#include <libopencm3/stm32/usart.h>
#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
}