Fix PS/2 mouse support
[jackhill/qmk/firmware.git] / protocol.mk
CommitLineData
676d94d1 1PROTOCOL_DIR = protocol
2
3
4ifdef PS2_MOUSE_ENABLE
5 SRC += $(PROTOCOL_DIR)/ps2_mouse.c
6 OPT_DEFS += -DPS2_MOUSE_ENABLE
7 OPT_DEFS += -DMOUSE_ENABLE
8endif
9
10ifdef PS2_USE_BUSYWAIT
11 SRC += protocol/ps2.c
12 OPT_DEFS += -DPS2_USE_BUSYWAIT
13endif
14
15ifdef PS2_USE_INT
16 SRC += protocol/ps2.c
17 OPT_DEFS += -DPS2_USE_INT
18endif
19
20ifdef PS2_USE_USART
21 SRC += protocol/ps2_usart.c
22 OPT_DEFS += -DPS2_USE_USART
23endif
24
25
afb08462 26# Search Path
27VPATH += $(TOP_DIR)/protocol