summaryrefslogtreecommitdiff
path: root/uart.c
diff options
context:
space:
mode:
Diffstat (limited to 'uart.c')
-rw-r--r--uart.c6
1 files changed, 6 insertions, 0 deletions
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 */