aboutsummaryrefslogtreecommitdiff
path: root/common_features.mk
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2020-01-24 13:50:51 +0000
committerGitHub <noreply@github.com>2020-01-24 13:50:51 +0000
commite4a0f841e19b4ddf86711cf79dc521d2f6f5e4ae (patch)
tree9ecc9858abea185a7a727ef0846d80b882217670 /common_features.mk
parent4867a9b1e6ba4ae2e4ba6f6049c75646d251d5a3 (diff)
downloadqmk_firmware-e4a0f841e19b4ddf86711cf79dc521d2f6f5e4ae.tar.gz
qmk_firmware-e4a0f841e19b4ddf86711cf79dc521d2f6f5e4ae.zip
Update split serial code to use driver pattern (#7990)
* Move avr serial code to drivers * Update src+= serial.c to driver pattern
Diffstat (limited to 'common_features.mk')
-rw-r--r--common_features.mk10
1 files changed, 8 insertions, 2 deletions
diff --git a/common_features.mk b/common_features.mk
index 900b27c46..a431923bc 100644
--- a/common_features.mk
+++ b/common_features.mk
@@ -469,9 +469,15 @@ ifeq ($(strip $(SPLIT_KEYBOARD)), yes)
469 QUANTUM_SRC += $(QUANTUM_DIR)/split_common/transport.c 469 QUANTUM_SRC += $(QUANTUM_DIR)/split_common/transport.c
470 # Functions added via QUANTUM_LIB_SRC are only included in the final binary if they're called. 470 # Functions added via QUANTUM_LIB_SRC are only included in the final binary if they're called.
471 # Unused functions are pruned away, which is why we can add multiple drivers here without bloat. 471 # Unused functions are pruned away, which is why we can add multiple drivers here without bloat.
472 QUANTUM_LIB_SRC += $(QUANTUM_DIR)/split_common/serial.c \ 472 QUANTUM_LIB_SRC += i2c_master.c \
473 i2c_master.c \
474 i2c_slave.c 473 i2c_slave.c
474
475 SERIAL_DRIVER ?= bitbang
476 ifeq ($(strip $(SERIAL_DRIVER)), bitbang)
477 QUANTUM_LIB_SRC += serial.c
478 else
479 QUANTUM_LIB_SRC += serial_$(strip $(SERIAL_DRIVER)).c
480 endif
475 endif 481 endif
476 COMMON_VPATH += $(QUANTUM_PATH)/split_common 482 COMMON_VPATH += $(QUANTUM_PATH)/split_common
477endif 483endif