diff options
author | David Lamparter <equinox@diac24.net> | 2012-05-18 00:51:49 +0200 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2012-05-18 00:51:49 +0200 |
commit | 5eabc7da65b07e5915e19c31112754eabf76853c (patch) | |
tree | 9fed8e847282b79e86537777adf0528433fa73cf /uart.c | |
parent | a09ebf4a690b86b7cc629d3c1a9e18c4ab4fc097 (diff) |
more code
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 */ |