1.1 --- a/debug.c Thu Oct 18 18:36:19 2018 +0200
1.2 +++ b/debug.c Thu Oct 18 21:04:00 2018 +0200
1.3 @@ -48,3 +48,9 @@
1.4
1.5 REG(UART_REG(1, UxTXREG)) = c;
1.6 }
1.7 +
1.8 +void uart_write_string(const char *s)
1.9 +{
1.10 + while (*s)
1.11 + uart_write(*s++);
1.12 +}
2.1 --- a/debug.h Thu Oct 18 18:36:19 2018 +0200
2.2 +++ b/debug.h Thu Oct 18 21:04:00 2018 +0200
2.3 @@ -5,5 +5,6 @@
2.4 void vbits(uint32_t val);
2.5 void vhex(uint32_t val);
2.6 void uart_write(char c);
2.7 +void uart_write_string(const char *s);
2.8
2.9 #endif /* __DEBUG_H__ */