aboutsummaryrefslogtreecommitdiff
path: root/common_features.mk
diff options
context:
space:
mode:
Diffstat (limited to 'common_features.mk')
-rw-r--r--common_features.mk28
1 files changed, 26 insertions, 2 deletions
diff --git a/common_features.mk b/common_features.mk
index 1a9fd46b5..9c6fc9cdf 100644
--- a/common_features.mk
+++ b/common_features.mk
@@ -244,7 +244,7 @@ endif
244endif 244endif
245 245
246RGB_MATRIX_ENABLE ?= no 246RGB_MATRIX_ENABLE ?= no
247VALID_RGB_MATRIX_TYPES := IS31FL3731 IS31FL3733 IS31FL3737 IS31FL3741 WS2812 custom 247VALID_RGB_MATRIX_TYPES := AW20216 IS31FL3731 IS31FL3733 IS31FL3737 IS31FL3741 WS2812 custom
248 248
249ifeq ($(strip $(RGB_MATRIX_ENABLE)), yes) 249ifeq ($(strip $(RGB_MATRIX_ENABLE)), yes)
250 ifeq ($(filter $(RGB_MATRIX_DRIVER),$(VALID_RGB_MATRIX_TYPES)),) 250 ifeq ($(filter $(RGB_MATRIX_DRIVER),$(VALID_RGB_MATRIX_TYPES)),)
@@ -261,6 +261,13 @@ endif
261 CIE1931_CURVE := yes 261 CIE1931_CURVE := yes
262 RGB_KEYCODES_ENABLE := yes 262 RGB_KEYCODES_ENABLE := yes
263 263
264 ifeq ($(strip $(RGB_MATRIX_DRIVER)), AW20216)
265 OPT_DEFS += -DAW20216 -DSTM32_SPI -DHAL_USE_SPI=TRUE
266 COMMON_VPATH += $(DRIVER_PATH)/awinic
267 SRC += aw20216.c
268 QUANTUM_LIB_SRC += spi_master.c
269 endif
270
264 ifeq ($(strip $(RGB_MATRIX_DRIVER)), IS31FL3731) 271 ifeq ($(strip $(RGB_MATRIX_DRIVER)), IS31FL3731)
265 OPT_DEFS += -DIS31FL3731 -DSTM32_I2C -DHAL_USE_I2C=TRUE 272 OPT_DEFS += -DIS31FL3731 -DSTM32_I2C -DHAL_USE_I2C=TRUE
266 COMMON_VPATH += $(DRIVER_PATH)/issi 273 COMMON_VPATH += $(DRIVER_PATH)/issi
@@ -529,7 +536,11 @@ ifeq ($(strip $(SPLIT_KEYBOARD)), yes)
529 536
530 # Determine which (if any) transport files are required 537 # Determine which (if any) transport files are required
531 ifneq ($(strip $(SPLIT_TRANSPORT)), custom) 538 ifneq ($(strip $(SPLIT_TRANSPORT)), custom)
532 QUANTUM_LIB_SRC += $(QUANTUM_DIR)/split_common/transport.c 539 QUANTUM_SRC += $(QUANTUM_DIR)/split_common/transport.c \
540 $(QUANTUM_DIR)/split_common/transactions.c
541
542 OPT_DEFS += -DSPLIT_COMMON_TRANSACTIONS
543
533 # Functions added via QUANTUM_LIB_SRC are only included in the final binary if they're called. 544 # Functions added via QUANTUM_LIB_SRC are only included in the final binary if they're called.
534 # Unused functions are pruned away, which is why we can add multiple drivers here without bloat. 545 # Unused functions are pruned away, which is why we can add multiple drivers here without bloat.
535 ifeq ($(PLATFORM),AVR) 546 ifeq ($(PLATFORM),AVR)
@@ -550,6 +561,11 @@ ifeq ($(strip $(SPLIT_KEYBOARD)), yes)
550 COMMON_VPATH += $(QUANTUM_PATH)/split_common 561 COMMON_VPATH += $(QUANTUM_PATH)/split_common
551endif 562endif
552 563
564ifeq ($(strip $(CRC_ENABLE)), yes)
565 OPT_DEFS += -DCRC_ENABLE
566 QUANTUM_LIB_SRC += crc.c
567endif
568
553HAPTIC_ENABLE ?= no 569HAPTIC_ENABLE ?= no
554ifneq ($(strip $(HAPTIC_ENABLE)),no) 570ifneq ($(strip $(HAPTIC_ENABLE)),no)
555 COMMON_VPATH += $(DRIVER_PATH)/haptic 571 COMMON_VPATH += $(DRIVER_PATH)/haptic
@@ -580,6 +596,14 @@ ifeq ($(strip $(OLED_DRIVER_ENABLE)), yes)
580 SRC += oled_driver.c 596 SRC += oled_driver.c
581endif 597endif
582 598
599ifeq ($(strip $(ST7565_ENABLE)), yes)
600 OPT_DEFS += -DST7565_ENABLE
601 COMMON_VPATH += $(DRIVER_PATH)/oled # For glcdfont.h
602 COMMON_VPATH += $(DRIVER_PATH)/lcd
603 QUANTUM_LIB_SRC += spi_master.c
604 SRC += st7565.c
605endif
606
583include $(DRIVER_PATH)/qwiic/qwiic.mk 607include $(DRIVER_PATH)/qwiic/qwiic.mk
584 608
585ifeq ($(strip $(UCIS_ENABLE)), yes) 609ifeq ($(strip $(UCIS_ENABLE)), yes)