aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 e057d1d60..d9194b2bf 100644
--- a/protocol.mk
+++ b/protocol.mk
@@ -15,11 +15,13 @@ endif
15 15
16ifdef PS2_USE_INT 16ifdef PS2_USE_INT
17 SRC += protocol/ps2_interrupt.c 17 SRC += protocol/ps2_interrupt.c
18 SRC += protocol/ps2_io_avr.c
18 OPT_DEFS += -DPS2_USE_INT 19 OPT_DEFS += -DPS2_USE_INT
19endif 20endif
20 21
21ifdef PS2_USE_USART 22ifdef PS2_USE_USART
22 SRC += protocol/ps2_usart.c 23 SRC += protocol/ps2_usart.c
24 SRC += protocol/ps2_io_avr.c
23 OPT_DEFS += -DPS2_USE_USART 25 OPT_DEFS += -DPS2_USE_USART
24endif 26endif
25 27
diff --git a/protocol/ps2_io_avr.c b/protocol/ps2_io_avr.c
index be13d6696..ed462345b 100644
--- a/protocol/ps2_io_avr.c
+++ b/protocol/ps2_io_avr.c
@@ -1,4 +1,5 @@
1#include <stdbool.h> 1#include <stdbool.h>
2#include <avr/io.h>
2#include <util/delay.h> 3#include <util/delay.h>
3 4
4/* Check port settings for clock and data line */ 5/* Check port settings for clock and data line */