summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortmk <hasu@tmk-kbd.com>2014-12-24 11:11:07 +0900
committertmk <hasu@tmk-kbd.com>2014-12-24 11:11:07 +0900
commitbb2596042428fad08509709bd9d63dbbb50e59f9 (patch)
tree0f7f3531de99d807f683834f0aee3179789ec2d3
parenta0d6bb1818b90f341b2a5daaea3652fe19cd4184 (diff)
[ps2,terminal_usb] Quick fix for build problem
-rw-r--r--protocol.mk2
-rw-r--r--protocol/ps2_io_avr.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/protocol.mk b/protocol.mk
index e057d1d601..d9194b2bfc 100644
--- a/protocol.mk
+++ b/protocol.mk
@@ -15,11 +15,13 @@ endif
ifdef PS2_USE_INT
SRC += protocol/ps2_interrupt.c
+ SRC += protocol/ps2_io_avr.c
OPT_DEFS += -DPS2_USE_INT
endif
ifdef PS2_USE_USART
SRC += protocol/ps2_usart.c
+ SRC += protocol/ps2_io_avr.c
OPT_DEFS += -DPS2_USE_USART
endif
diff --git a/protocol/ps2_io_avr.c b/protocol/ps2_io_avr.c
index be13d6696a..ed462345ba 100644
--- a/protocol/ps2_io_avr.c
+++ b/protocol/ps2_io_avr.c
@@ -1,4 +1,5 @@
#include <stdbool.h>
+#include <avr/io.h>
#include <util/delay.h>
/* Check port settings for clock and data line */