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