imu: replace all floats by doubles to avoid warning in printf
[protos/imu.git] / uart.h
1
2 /*
3  * Copyright (c) 2006-2012 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 #ifdef __cplusplus
17 extern "C"
18 {
19 #endif
20
21 void uart_init();
22
23 void uart_putc(uint8_t c);
24
25 void uart_putc_hex(uint8_t b);
26 void uart_putw_hex(uint16_t w);
27 void uart_putdw_hex(uint32_t dw);
28
29 void uart_putw_dec(uint16_t w);
30 void uart_putdw_dec(uint32_t dw);
31
32 void uart_puts(const char* str);
33 void uart_puts_p(PGM_P str);
34
35 uint8_t uart_getc();
36
37 #ifdef __cplusplus
38 }
39 #endif
40
41 #endif
42