aboutsummaryrefslogtreecommitdiff
path: root/common_features.mk
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2021-10-20 21:18:49 +0100
committerGitHub <noreply@github.com>2021-10-20 21:18:49 +0100
commitd4be4b67a251ecc046d857c5cd00cfb37c394ab7 (patch)
tree15f6dd05ec293081782a9b42a30e1a81b33b6aa0 /common_features.mk
parent5500c428dd41348243e8a1695986b0da070e2ffa (diff)
downloadqmk_firmware-d4be4b67a251ecc046d857c5cd00cfb37c394ab7.tar.gz
qmk_firmware-d4be4b67a251ecc046d857c5cd00cfb37c394ab7.zip
Relocate PS2 code (#14895)
* Relocate ps2 protocol code * clang * Move makefile logic
Diffstat (limited to 'common_features.mk')
-rw-r--r--common_features.mk34
1 files changed, 34 insertions, 0 deletions
diff --git a/common_features.mk b/common_features.mk
index 9b9425dc3..083aa4aaa 100644
--- a/common_features.mk
+++ b/common_features.mk
@@ -576,6 +576,40 @@ ifeq ($(strip $(AUTO_SHIFT_ENABLE)), yes)
576 endif 576 endif
577endif 577endif
578 578
579ifeq ($(strip $(PS2_MOUSE_ENABLE)), yes)
580 PS2_ENABLE := yes
581 SRC += ps2_mouse.c
582 OPT_DEFS += -DPS2_MOUSE_ENABLE
583 OPT_DEFS += -DMOUSE_ENABLE
584endif
585
586ifeq ($(strip $(PS2_USE_BUSYWAIT)), yes)
587 PS2_ENABLE := yes
588 SRC += ps2_busywait.c
589 SRC += ps2_io_avr.c
590 OPT_DEFS += -DPS2_USE_BUSYWAIT
591endif
592
593ifeq ($(strip $(PS2_USE_INT)), yes)
594 PS2_ENABLE := yes
595 SRC += ps2_interrupt.c
596 SRC += ps2_io.c
597 OPT_DEFS += -DPS2_USE_INT
598endif
599
600ifeq ($(strip $(PS2_USE_USART)), yes)
601 PS2_ENABLE := yes
602 SRC += ps2_usart.c
603 SRC += ps2_io.c
604 OPT_DEFS += -DPS2_USE_USART
605endif
606
607ifeq ($(strip $(PS2_ENABLE)), yes)
608 COMMON_VPATH += $(DRIVER_PATH)/ps2
609 COMMON_VPATH += $(PLATFORM_PATH)/$(PLATFORM_KEY)/$(DRIVER_DIR)/ps2
610 OPT_DEFS += -DPS2_ENABLE
611endif
612
579JOYSTICK_ENABLE ?= no 613JOYSTICK_ENABLE ?= no
580VALID_JOYSTICK_TYPES := analog digital 614VALID_JOYSTICK_TYPES := analog digital
581JOYSTICK_DRIVER ?= analog 615JOYSTICK_DRIVER ?= analog