]> git.gir.st - tmk_keyboard.git/blob - print.h
Exceptional handling for PS/2 scan code set 2
[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 #include "usb_debug.h"
7
8
9 bool print_enable;
10
11 // this macro allows you to write print("some text") and
12 // the string is automatically placed into flash memory :)
13 #define print(s) print_P(PSTR(s))
14 #define pchar(c) usb_debug_putchar(c)
15
16 void print_P(const char *s);
17 void phex(unsigned char c);
18 void phex16(unsigned int i);
19 void pbin(unsigned char c);
20 void pbin_reverse(unsigned char c);
21
22 #endif
Imprint / Impressum