2015-04-09 18:32:04 +02:00
|
|
|
PROTOCOL_DIR = protocol
|
|
|
|
|
2019-12-13 12:36:37 +01:00
|
|
|
ifeq ($(strip $(PS2_MOUSE_ENABLE)), yes)
|
2015-04-09 18:32:04 +02:00
|
|
|
SRC += $(PROTOCOL_DIR)/ps2_mouse.c
|
|
|
|
OPT_DEFS += -DPS2_MOUSE_ENABLE
|
|
|
|
OPT_DEFS += -DMOUSE_ENABLE
|
|
|
|
endif
|
|
|
|
|
2019-12-13 12:36:37 +01:00
|
|
|
ifeq ($(strip $(PS2_USE_BUSYWAIT)), yes)
|
2015-04-09 18:32:04 +02:00
|
|
|
SRC += protocol/ps2_busywait.c
|
|
|
|
SRC += protocol/ps2_io_avr.c
|
|
|
|
OPT_DEFS += -DPS2_USE_BUSYWAIT
|
|
|
|
endif
|
|
|
|
|
2019-12-13 12:36:37 +01:00
|
|
|
ifeq ($(strip $(PS2_USE_INT)), yes)
|
2015-04-09 18:32:04 +02:00
|
|
|
SRC += protocol/ps2_interrupt.c
|
2021-08-05 23:51:24 +02:00
|
|
|
SRC += protocol/ps2_io_$(PLATFORM_KEY).c
|
2015-04-09 18:32:04 +02:00
|
|
|
OPT_DEFS += -DPS2_USE_INT
|
|
|
|
endif
|
|
|
|
|
2019-12-13 12:36:37 +01:00
|
|
|
ifeq ($(strip $(PS2_USE_USART)), yes)
|
2015-04-09 18:32:04 +02:00
|
|
|
SRC += protocol/ps2_usart.c
|
2021-08-05 23:51:24 +02:00
|
|
|
SRC += protocol/ps2_io_$(PLATFORM_KEY).c
|
2015-04-09 18:32:04 +02:00
|
|
|
OPT_DEFS += -DPS2_USE_USART
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
2019-12-13 12:36:37 +01:00
|
|
|
ifeq ($(strip $(SERIAL_MOUSE_MICROSOFT_ENABLE)), yes)
|
2015-04-09 18:32:04 +02:00
|
|
|
SRC += $(PROTOCOL_DIR)/serial_mouse_microsoft.c
|
|
|
|
OPT_DEFS += -DSERIAL_MOUSE_ENABLE -DSERIAL_MOUSE_MICROSOFT \
|
|
|
|
-DMOUSE_ENABLE
|
|
|
|
endif
|
|
|
|
|
2019-12-13 12:36:37 +01:00
|
|
|
ifeq ($(strip $(SERIAL_MOUSE_MOUSESYSTEMS_ENABLE)), yes)
|
2015-04-09 18:32:04 +02:00
|
|
|
SRC += $(PROTOCOL_DIR)/serial_mouse_mousesystems.c
|
|
|
|
OPT_DEFS += -DSERIAL_MOUSE_ENABLE -DSERIAL_MOUSE_MOUSESYSTEMS \
|
|
|
|
-DMOUSE_ENABLE
|
|
|
|
endif
|
|
|
|
|
2019-12-13 12:36:37 +01:00
|
|
|
ifeq ($(strip $(SERIAL_MOUSE_USE_SOFT)), yes)
|
2015-04-09 18:32:04 +02:00
|
|
|
SRC += $(PROTOCOL_DIR)/serial_soft.c
|
|
|
|
endif
|
|
|
|
|
2019-12-13 12:36:37 +01:00
|
|
|
ifeq ($(strip $(SERIAL_MOUSE_USE_UART)), yes)
|
2015-04-09 18:32:04 +02:00
|
|
|
SRC += $(PROTOCOL_DIR)/serial_uart.c
|
|
|
|
endif
|
|
|
|
|
2019-12-13 12:36:37 +01:00
|
|
|
ifeq ($(strip $(ADB_MOUSE_ENABLE)), yes)
|
|
|
|
OPT_DEFS += -DADB_MOUSE_ENABLE -DMOUSE_ENABLE
|
2015-04-28 04:27:10 +02:00
|
|
|
endif
|
|
|
|
|
2019-12-13 12:36:37 +01:00
|
|
|
ifeq ($(strip $(XT_ENABLE)), yes)
|
|
|
|
SRC += $(PROTOCOL_DIR)/xt_interrupt.c
|
|
|
|
OPT_DEFS += -DXT_ENABLE
|
2018-10-22 21:37:03 +02:00
|
|
|
endif
|
|
|
|
|
2021-02-28 16:50:15 +01:00
|
|
|
ifeq ($(strip $(USB_HID_ENABLE)), yes)
|
|
|
|
include $(TMK_DIR)/protocol/usb_hid.mk
|
|
|
|
endif
|
|
|
|
|
2015-04-09 18:32:04 +02:00
|
|
|
# Search Path
|
|
|
|
VPATH += $(TMK_DIR)/protocol
|