diff options
author | Joel Challis <git@zvecr.com> | 2021-10-20 21:18:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-20 21:18:49 +0100 |
commit | d4be4b67a251ecc046d857c5cd00cfb37c394ab7 (patch) | |
tree | 15f6dd05ec293081782a9b42a30e1a81b33b6aa0 /common_features.mk | |
parent | 5500c428dd41348243e8a1695986b0da070e2ffa (diff) | |
download | qmk_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.mk | 34 |
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 |
577 | endif | 577 | endif |
578 | 578 | ||
579 | ifeq ($(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 | ||
584 | endif | ||
585 | |||
586 | ifeq ($(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 | ||
591 | endif | ||
592 | |||
593 | ifeq ($(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 | ||
598 | endif | ||
599 | |||
600 | ifeq ($(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 | ||
605 | endif | ||
606 | |||
607 | ifeq ($(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 | ||
611 | endif | ||
612 | |||
579 | JOYSTICK_ENABLE ?= no | 613 | JOYSTICK_ENABLE ?= no |
580 | VALID_JOYSTICK_TYPES := analog digital | 614 | VALID_JOYSTICK_TYPES := analog digital |
581 | JOYSTICK_DRIVER ?= analog | 615 | JOYSTICK_DRIVER ?= analog |