9a42462754b05f6cbdf75dabeef74e9e4ee91312
[tmk_keyboard.git] / print.h
1 #ifndef print_h__
2 #define print_h__
3
4 #include <avr/pgmspace.h>
5 #include "usb_debug.h"
6
7 // this macro allows you to write print("some text") and
8 // the string is automatically placed into flash memory :)
9 #define print(s) print_P(PSTR(s))
10 #define pchar(c) usb_debug_putchar(c)
11
12 void print_P(const char *s);
13 void phex(unsigned char c);
14 void phex16(unsigned int i);
15 void pbin(unsigned char c);
16 void pbin_reverse(unsigned char c);
17
18 #endif
Imprint / Impressum