summaryrefslogtreecommitdiff
path: root/common_features.mk
diff options
context:
space:
mode:
authorAlabastard-64 <96358682+Alabastard-64@users.noreply.github.com>2022-01-11 15:33:13 -0700
committerGitHub <noreply@github.com>2022-01-11 14:33:13 -0800
commit2842ab405212aa7edca05eccc8ba892cd6cf54a4 (patch)
treef36962feb4057eb403f1f158f90ffd5b1ca57812 /common_features.mk
parenta7eb27b86775b96f14c4207fe25f74f0ac04220d (diff)
Add PMW3389 optical sensor Support (Updated) (#15740)
Co-authored-by: Drashna Jaelre <drashna@live.com>
Diffstat (limited to 'common_features.mk')
-rw-r--r--common_features.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/common_features.mk b/common_features.mk
index 5cde023d10..b13f9a45d2 100644
--- a/common_features.mk
+++ b/common_features.mk
@@ -109,7 +109,7 @@ ifeq ($(strip $(MOUSEKEY_ENABLE)), yes)
109 SRC += $(QUANTUM_DIR)/mousekey.c 109 SRC += $(QUANTUM_DIR)/mousekey.c
110endif 110endif
111 111
112VALID_POINTING_DEVICE_DRIVER_TYPES := adns5050 adns9800 analog_joystick cirque_pinnacle_i2c cirque_pinnacle_spi pmw3360 pimoroni_trackball custom 112VALID_POINTING_DEVICE_DRIVER_TYPES := adns5050 adns9800 analog_joystick cirque_pinnacle_i2c cirque_pinnacle_spi pmw3360 pmw3389 pimoroni_trackball custom
113POINTING_DEVICE_DRIVER ?= custom 113POINTING_DEVICE_DRIVER ?= custom
114ifeq ($(strip $(POINTING_DEVICE_ENABLE)), yes) 114ifeq ($(strip $(POINTING_DEVICE_ENABLE)), yes)
115 ifeq ($(filter $(POINTING_DEVICE_DRIVER),$(VALID_POINTING_DEVICE_DRIVER_TYPES)),) 115 ifeq ($(filter $(POINTING_DEVICE_DRIVER),$(VALID_POINTING_DEVICE_DRIVER_TYPES)),)
@@ -144,6 +144,9 @@ ifeq ($(strip $(POINTING_DEVICE_ENABLE)), yes)
144 else ifeq ($(strip $(POINTING_DEVICE_DRIVER)), pmw3360) 144 else ifeq ($(strip $(POINTING_DEVICE_DRIVER)), pmw3360)
145 OPT_DEFS += -DSTM32_SPI -DHAL_USE_SPI=TRUE 145 OPT_DEFS += -DSTM32_SPI -DHAL_USE_SPI=TRUE
146 QUANTUM_LIB_SRC += spi_master.c 146 QUANTUM_LIB_SRC += spi_master.c
147 else ifeq ($(strip $(POINTING_DEVICE_DRIVER)), pmw3389)
148 OPT_DEFS += -DSTM32_SPI -DHAL_USE_SPI=TRUE
149 QUANTUM_LIB_SRC += spi_master.c
147 endif 150 endif
148 endif 151 endif
149endif 152endif