1.1 --- a/debug.h Sat Oct 20 19:19:30 2018 +0200
1.2 +++ b/debug.h Sat Oct 20 19:24:34 2018 +0200
1.3 @@ -20,11 +20,15 @@
1.4 #ifndef __DEBUG_H__
1.5 #define __DEBUG_H__
1.6
1.7 +/* Register output functions using UART1. */
1.8 +
1.9 +void rbits(uint32_t reg);
1.10 +void rhex(uint32_t reg);
1.11 +
1.12 /* Value output functions using UART1. */
1.13
1.14 -void bits(uint32_t reg);
1.15 -void vbits(uint32_t val);
1.16 -void vhex(uint32_t val);
1.17 +void bits(uint32_t val, int bytes);
1.18 +void hex(uint32_t val, int bytes);
1.19
1.20 /* General input/output functions. */
1.21
1.22 @@ -36,6 +40,7 @@
1.23 /* Functions using UART1. */
1.24
1.25 void uart_write(char c);
1.26 +void uart_write_nl(void);
1.27 void uart_write_string(const char *s);
1.28
1.29 #endif /* __DEBUG_H__ */