diff options
| author | tmk <nobody@nowhere> | 2013-11-28 14:44:59 +0900 |
|---|---|---|
| committer | tmk <nobody@nowhere> | 2013-11-28 14:44:59 +0900 |
| commit | 8b4fa599cf485f5d06314938a228a88dabb0b7f5 (patch) | |
| tree | ee35675b22336aab59e1652f0a619333aa8baa09 /protocol/ps2_usart.c | |
| parent | 05be3d85d1b29e0bbca243cc194a8f162c8e48f7 (diff) | |
| download | qmk_firmware-8b4fa599cf485f5d06314938a228a88dabb0b7f5.tar.gz qmk_firmware-8b4fa599cf485f5d06314938a228a88dabb0b7f5.zip | |
Add included header file and fix debug print
Diffstat (limited to 'protocol/ps2_usart.c')
| -rw-r--r-- | protocol/ps2_usart.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/protocol/ps2_usart.c b/protocol/ps2_usart.c index 27947143e..c2d9d0a20 100644 --- a/protocol/ps2_usart.c +++ b/protocol/ps2_usart.c | |||
| @@ -40,11 +40,10 @@ POSSIBILITY OF SUCH DAMAGE. | |||
| 40 | */ | 40 | */ |
| 41 | 41 | ||
| 42 | #include <stdbool.h> | 42 | #include <stdbool.h> |
| 43 | #include <avr/io.h> | ||
| 44 | #include <avr/interrupt.h> | 43 | #include <avr/interrupt.h> |
| 45 | #include <util/delay.h> | 44 | #include <util/delay.h> |
| 46 | #include "ps2.h" | 45 | #include "ps2.h" |
| 47 | #include "debug.h" | 46 | #include "print.h" |
| 48 | 47 | ||
| 49 | 48 | ||
| 50 | #define WAIT(stat, us, err) do { \ | 49 | #define WAIT(stat, us, err) do { \ |
| @@ -188,7 +187,7 @@ static inline void pbuf_enqueue(uint8_t data) | |||
| 188 | pbuf[pbuf_head] = data; | 187 | pbuf[pbuf_head] = data; |
| 189 | pbuf_head = next; | 188 | pbuf_head = next; |
| 190 | } else { | 189 | } else { |
| 191 | debug("pbuf: full\n"); | 190 | print("pbuf: full\n"); |
| 192 | } | 191 | } |
| 193 | SREG = sreg; | 192 | SREG = sreg; |
| 194 | } | 193 | } |
