mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-12-27 11:38:58 +06:00
18 lines
390 B
Makefile
18 lines
390 B
Makefile
ifeq ($(strip $(QWIIC_ENABLE)),yes)
|
|
COMMON_VPATH += $(DRIVER_PATH)/qwiic
|
|
OPT_DEFS += -DQWIIC_ENABLE
|
|
SRC += qwiic.c
|
|
QUANTUM_LIB_SRC += i2c_master.c
|
|
|
|
ifneq ($(filter JOYSTIIC, $(QWIIC_DRIVERS)),)
|
|
OPT_DEFS += -DQWIIC_JOYSTIIC_ENABLE
|
|
SRC += joystiic.c
|
|
endif
|
|
|
|
ifneq ($(filter MICRO_OLED, $(QWIIC_DRIVERS)),)
|
|
OPT_DEFS += -DQWIIC_MICRO_OLED_ENABLE
|
|
SRC += micro_oled.c
|
|
endif
|
|
|
|
endif
|