]> git.gir.st - tmk_keyboard.git/blob - print.h
Synchronous USART support for PS/2 on V-USB stack
[tmk_keyboard.git] / print.h
1 #ifndef PRINT_H__
2 #define PRINT_H__ 1
3
4 #include <stdbool.h>
5 #include <avr/pgmspace.h>
6
7
8 extern bool print_enable;
9
10 // this macro allows you to write print("some text") and
11 // the string is automatically placed into flash memory :)
12 #define print(s) print_P(PSTR(s))
13
14 void print_P(const char *s);
15 void phex(unsigned char c);
16 void phex16(unsigned int i);
17 void pbin(unsigned char c);
18 void pbin_reverse(unsigned char c);
19
20 #endif
Imprint / Impressum