]> git.friedersdorff.com Git - max/tmk_keyboard.git/commitdiff
Add included header file and fix debug print
authortmk <nobody@nowhere>
Thu, 28 Nov 2013 05:44:59 +0000 (14:44 +0900)
committertmk <nobody@nowhere>
Thu, 28 Nov 2013 05:44:59 +0000 (14:44 +0900)
protocol/ps2_interrupt.c
protocol/ps2_usart.c

index 355d4e8256c2a8cff8acd3f2fa498fe8d578b5bb..259d2540075d79531cfc8d25d77d36c9f55aab78 100644 (file)
@@ -40,9 +40,10 @@ POSSIBILITY OF SUCH DAMAGE.
  */
 
 #include <stdbool.h>
+#include <avr/interrupt.h>
 #include <util/delay.h>
 #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;
 }
index 27947143eef4c3811cd9fee144a5635d074dea29..c2d9d0a208d301cc71d8b2bdfcce6f652615fa5a 100644 (file)
@@ -40,11 +40,10 @@ POSSIBILITY OF SUCH DAMAGE.
  */
 
 #include <stdbool.h>
-#include <avr/io.h>
 #include <avr/interrupt.h>
 #include <util/delay.h>
 #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;
 }