aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorNick Brassel <nick@tzarc.org>2021-01-04 08:45:43 +1100
committerGitHub <noreply@github.com>2021-01-04 08:45:43 +1100
commit34446b79d7a17ba6e753d39956ebb5e871618d84 (patch)
treeb752b7a080dc8465245592f036433cf5c199e1fa /drivers
parentb7d4a9dc25052807cfbdf351819bb47f1808128d (diff)
downloadqmk_firmware-34446b79d7a17ba6e753d39956ebb5e871618d84.tar.gz
qmk_firmware-34446b79d7a17ba6e753d39956ebb5e871618d84.zip
Split up QWIIC_ENABLE to use QWIIC_DRIVERS as well, with yes/no for enable flag. (#11426)
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