From 5eabc7da65b07e5915e19c31112754eabf76853c Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Fri, 18 May 2012 00:51:49 +0200 Subject: more code --- uart.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'uart.c') diff --git a/uart.c b/uart.c index feb9619..1f2656a 100644 --- a/uart.c +++ b/uart.c @@ -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 */ -- cgit v1.2.1