Split up QWIIC_ENABLE to use QWIIC_DRIVERS as well, with yes/no for enable flag. (#11426)
This commit is contained in:
@@ -1,16 +1,17 @@
|
||||
ifneq ($(strip $(QWIIC_ENABLE)),)
|
||||
ifeq ($(strip $(QWIIC_ENABLE)),yes)
|
||||
COMMON_VPATH += $(DRIVER_PATH)/qwiic
|
||||
OPT_DEFS += -DQWIIC_ENABLE
|
||||
SRC += qwiic.c
|
||||
QUANTUM_LIB_SRC += i2c_master.c
|
||||
endif
|
||||
|
||||
ifneq ($(filter JOYSTIIC, $(QWIIC_ENABLE)),)
|
||||
ifneq ($(filter JOYSTIIC, $(QWIIC_DRIVERS)),)
|
||||
OPT_DEFS += -DQWIIC_JOYSTIIC_ENABLE
|
||||
SRC += joystiic.c
|
||||
endif
|
||||
|
||||
ifneq ($(filter MICRO_OLED, $(QWIIC_ENABLE)),)
|
||||
ifneq ($(filter MICRO_OLED, $(QWIIC_DRIVERS)),)
|
||||
OPT_DEFS += -DQWIIC_MICRO_OLED_ENABLE
|
||||
SRC += micro_oled.c
|
||||
endif
|
||||
|
||||
endif
|
||||
|
Reference in New Issue
Block a user