From: tmk Date: Thu, 28 Nov 2013 05:44:59 +0000 (+0900) Subject: Add included header file and fix debug print X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=8b4fa599cf485f5d06314938a228a88dabb0b7f5;p=max%2Ftmk_keyboard.git Add included header file and fix debug print --- diff --git a/protocol/ps2_interrupt.c b/protocol/ps2_interrupt.c index 355d4e82..259d2540 100644 --- a/protocol/ps2_interrupt.c +++ b/protocol/ps2_interrupt.c @@ -40,9 +40,10 @@ POSSIBILITY OF SUCH DAMAGE. */ #include +#include #include #include "ps2.h" -#include "debug.h" +#include "print.h" #define WAIT(stat, us, err) do { \ @@ -241,7 +242,7 @@ static inline void pbuf_enqueue(uint8_t data) pbuf[pbuf_head] = data; pbuf_head = next; } else { - debug("pbuf: full\n"); + print("pbuf: full\n"); } SREG = sreg; } diff --git a/protocol/ps2_usart.c b/protocol/ps2_usart.c index 27947143..c2d9d0a2 100644 --- a/protocol/ps2_usart.c +++ b/protocol/ps2_usart.c @@ -40,11 +40,10 @@ POSSIBILITY OF SUCH DAMAGE. */ #include -#include #include #include #include "ps2.h" -#include "debug.h" +#include "print.h" #define WAIT(stat, us, err) do { \ @@ -188,7 +187,7 @@ static inline void pbuf_enqueue(uint8_t data) pbuf[pbuf_head] = data; pbuf_head = next; } else { - debug("pbuf: full\n"); + print("pbuf: full\n"); } SREG = sreg; }