]> mj.ucw.cz Git - home-hw.git/blobdiff - lib/util-debug.c
Merge branch 'master' of ssh://git.ucw.cz/home/mj/GIT/home-hw
[home-hw.git] / lib / util-debug.c
index 72a566eae40f49226514c9edf53cb5b7fba8dc93..d0914a669b4c1c050a9eac3f3d1e8ded79c075f6 100644 (file)
@@ -80,6 +80,14 @@ void debug_putc(int c)
 #endif
 }
 
 #endif
 }
 
+void debug_flush(void)
+{
+#ifdef DEBUG_USART
+       while (!usart_get_flag(DEBUG_USART, USART_FLAG_TC))
+               ;
+#endif
+}
+
 void debug_puts(const char *s)
 {
        while (*s)
 void debug_puts(const char *s)
 {
        while (*s)