summaryrefslogtreecommitdiff
path: root/uart.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2012-05-18 00:51:49 +0200
committerDavid Lamparter <equinox@diac24.net>2012-05-18 00:51:49 +0200
commit5eabc7da65b07e5915e19c31112754eabf76853c (patch)
tree9fed8e847282b79e86537777adf0528433fa73cf /uart.c
parenta09ebf4a690b86b7cc629d3c1a9e18c4ab4fc097 (diff)
more code
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 */