forked from mirrors/qmk_firmware
Add definition based on currently-selected serial driver. (#10716)
* Add definition based on currently-selected serial driver. * Apply suggestions from code review Suggestions from zvecr. Co-authored-by: Joel Challis <git@zvecr.com> Co-authored-by: Joel Challis <git@zvecr.com>
This commit is contained in:
parent
12be012e3d
commit
c1295a3557
1 changed files with 1 additions and 0 deletions
|
@ -450,6 +450,7 @@ ifeq ($(strip $(SPLIT_KEYBOARD)), yes)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
SERIAL_DRIVER ?= bitbang
|
SERIAL_DRIVER ?= bitbang
|
||||||
|
OPT_DEFS += -DSERIAL_DRIVER_$(strip $(shell echo $(SERIAL_DRIVER) | tr '[:lower:]' '[:upper:]'))
|
||||||
ifeq ($(strip $(SERIAL_DRIVER)), bitbang)
|
ifeq ($(strip $(SERIAL_DRIVER)), bitbang)
|
||||||
QUANTUM_LIB_SRC += serial.c
|
QUANTUM_LIB_SRC += serial.c
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue