Rev Author Line No. Line
1110 kaklik 1  
2 /*
3 * Copyright (c) 2006-2007 by Roland Riegel <feedback@roland-riegel.de>
4 *
5 * This file is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
8 */
9  
10 #ifndef UART_H
11 #define UART_H
12  
13 #include <stdint.h>
14 #include <avr/pgmspace.h>
15  
16 void uart_init();
17  
18 void uart_putc(uint8_t c);
19  
20 void uart_putc_hex(uint8_t b);
21 void uart_putw_hex(uint16_t w);
22 void uart_putdw_hex(uint32_t dw);
23  
24 void uart_putw_dec(uint16_t w);
25 void uart_putdw_dec(uint32_t dw);
26  
27 void uart_puts(const char* str);
28 void uart_puts_p(PGM_P str);
29  
30 uint8_t uart_getc();
31  
32 #endif
33