diff options
Diffstat (limited to 'uart.c')
-rw-r--r-- | uart.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -76,6 +76,12 @@ static void uart_puthex(uint8_t val) SREG = sreg; } +static void uart_puthex16(uint16_t val) +{ + uart_puthex(val >> 8); + uart_puthex(val & 0xff); +} + static void uart_init(void) { UBRR0 = 12; /* 38461 ~ 38400 */ |