From ac3134ffeb3a2fb998e628e97a06b413fba8ee48 Mon Sep 17 00:00:00 2001 From: tmk Date: Tue, 10 Aug 2010 13:34:06 +0900 Subject: add initial files from teensy's usb_keyboard_debug. --- print.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 print.h (limited to 'print.h') diff --git a/print.h b/print.h new file mode 100644 index 0000000000..1de618fbaa --- /dev/null +++ b/print.h @@ -0,0 +1,16 @@ +#ifndef print_h__ +#define print_h__ + +#include +#include "usb_keyboard_debug.h" + +// this macro allows you to write print("some text") and +// the string is automatically placed into flash memory :) +#define print(s) print_P(PSTR(s)) +#define pchar(c) usb_debug_putchar(c) + +void print_P(const char *s); +void phex(unsigned char c); +void phex16(unsigned int i); + +#endif -- cgit v1.2.3