]> git.gir.st - tmk_keyboard.git/blame - tmk_core/protocol.mk
remove experimental return, cleanup slash_question key
[tmk_keyboard.git] / tmk_core / protocol.mk
CommitLineData
a074364c 1PROTOCOL_DIR = protocol
2
3
1c1f7b14 4ifeq (yes,$(strip $(PS2_MOUSE_ENABLE)))
a074364c 5 SRC += $(PROTOCOL_DIR)/ps2_mouse.c
6 OPT_DEFS += -DPS2_MOUSE_ENABLE
7 OPT_DEFS += -DMOUSE_ENABLE
8endif
9
1c1f7b14 10ifeq (yes,$(strip $(PS2_USE_BUSYWAIT)))
a074364c 11 SRC += protocol/ps2_busywait.c
12 SRC += protocol/ps2_io_avr.c
13 OPT_DEFS += -DPS2_USE_BUSYWAIT
14endif
15
1c1f7b14 16ifeq (yes,$(strip $(PS2_USE_INT)))
a074364c 17 SRC += protocol/ps2_interrupt.c
18 SRC += protocol/ps2_io_avr.c
19 OPT_DEFS += -DPS2_USE_INT
20endif
21
1c1f7b14 22ifeq (yes,$(strip $(PS2_USE_USART)))
a074364c 23 SRC += protocol/ps2_usart.c
24 SRC += protocol/ps2_io_avr.c
25 OPT_DEFS += -DPS2_USE_USART
26endif
27
28
1c1f7b14 29ifeq (yes,$(strip $(XT_USE_INT)))
3def1c30
EA
30 SRC += protocol/xt_interrupt.c
31 SRC += protocol/xt_io_avr.c
32 OPT_DEFS += -DXT_USE_INT
33endif
34
35
1c1f7b14 36ifeq (yes,$(strip $(SERIAL_MOUSE_MICROSOFT_ENABLE)))
a074364c 37 SRC += $(PROTOCOL_DIR)/serial_mouse_microsoft.c
38 OPT_DEFS += -DSERIAL_MOUSE_ENABLE -DSERIAL_MOUSE_MICROSOFT \
39 -DMOUSE_ENABLE
40endif
41
1c1f7b14 42ifeq (yes,$(strip $(SERIAL_MOUSE_MOUSESYSTEMS_ENABLE)))
a074364c 43 SRC += $(PROTOCOL_DIR)/serial_mouse_mousesystems.c
44 OPT_DEFS += -DSERIAL_MOUSE_ENABLE -DSERIAL_MOUSE_MOUSESYSTEMS \
45 -DMOUSE_ENABLE
46endif
47
1c1f7b14 48ifeq (yes,$(strip $(SERIAL_MOUSE_USE_SOFT)))
a074364c 49 SRC += $(PROTOCOL_DIR)/serial_soft.c
50endif
51
1c1f7b14 52ifeq (yes,$(strip $(SERIAL_MOUSE_USE_UART)))
a074364c 53 SRC += $(PROTOCOL_DIR)/serial_uart.c
54endif
55
1c1f7b14 56ifeq (yes,$(strip $(ADB_MOUSE_ENABLE)))
4d116a04 57 OPT_DEFS += -DADB_MOUSE_ENABLE -DMOUSE_ENABLE
58endif
59
a074364c 60# Search Path
61VPATH += $(TMK_DIR)/protocol
Imprint / Impressum