X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Futil-debug.c;h=d0914a669b4c1c050a9eac3f3d1e8ded79c075f6;hb=bb37203461a4380e32be26594a74b77727dda97d;hp=72a566eae40f49226514c9edf53cb5b7fba8dc93;hpb=3b3af30c8751709758c894d21a486ae63231606b;p=home-hw.git diff --git a/lib/util-debug.c b/lib/util-debug.c index 72a566e..d0914a6 100644 --- a/lib/util-debug.c +++ b/lib/util-debug.c @@ -80,6 +80,14 @@ void debug_putc(int c) #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)