aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/qwiic/qwiic.mk9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/qwiic/qwiic.mk b/drivers/qwiic/qwiic.mk
index b23c25657..164bd7210 100644
--- a/drivers/qwiic/qwiic.mk
+++ b/drivers/qwiic/qwiic.mk
@@ -1,16 +1,17 @@
1ifneq ($(strip $(QWIIC_ENABLE)),) 1ifeq ($(strip $(QWIIC_ENABLE)),yes)
2 COMMON_VPATH += $(DRIVER_PATH)/qwiic 2 COMMON_VPATH += $(DRIVER_PATH)/qwiic
3 OPT_DEFS += -DQWIIC_ENABLE 3 OPT_DEFS += -DQWIIC_ENABLE
4 SRC += qwiic.c 4 SRC += qwiic.c
5 QUANTUM_LIB_SRC += i2c_master.c 5 QUANTUM_LIB_SRC += i2c_master.c
6endif
7 6
8ifneq ($(filter JOYSTIIC, $(QWIIC_ENABLE)),) 7ifneq ($(filter JOYSTIIC, $(QWIIC_DRIVERS)),)
9 OPT_DEFS += -DQWIIC_JOYSTIIC_ENABLE 8 OPT_DEFS += -DQWIIC_JOYSTIIC_ENABLE
10 SRC += joystiic.c 9 SRC += joystiic.c
11endif 10endif
12 11
13ifneq ($(filter MICRO_OLED, $(QWIIC_ENABLE)),) 12ifneq ($(filter MICRO_OLED, $(QWIIC_DRIVERS)),)
14 OPT_DEFS += -DQWIIC_MICRO_OLED_ENABLE 13 OPT_DEFS += -DQWIIC_MICRO_OLED_ENABLE
15 SRC += micro_oled.c 14 SRC += micro_oled.c
16endif 15endif
16
17endif