diff options
| author | Nick Brassel <nick@tzarc.org> | 2021-01-04 08:45:43 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-04 08:45:43 +1100 |
| commit | 34446b79d7a17ba6e753d39956ebb5e871618d84 (patch) | |
| tree | b752b7a080dc8465245592f036433cf5c199e1fa | |
| parent | b7d4a9dc25052807cfbdf351819bb47f1808128d (diff) | |
| download | qmk_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)
| -rw-r--r-- | drivers/qwiic/qwiic.mk | 9 | ||||
| -rw-r--r-- | keyboards/boston_meetup/2019/rules.mk | 3 | ||||
| -rw-r--r-- | keyboards/cannonkeys/satisfaction75/rules.mk | 5 | ||||
| -rw-r--r-- | keyboards/hadron/ver3/rules.mk | 3 |
4 files changed, 12 insertions, 8 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 @@ | |||
| 1 | ifneq ($(strip $(QWIIC_ENABLE)),) | 1 | ifeq ($(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 |
| 6 | endif | ||
| 7 | 6 | ||
| 8 | ifneq ($(filter JOYSTIIC, $(QWIIC_ENABLE)),) | 7 | ifneq ($(filter JOYSTIIC, $(QWIIC_DRIVERS)),) |
| 9 | OPT_DEFS += -DQWIIC_JOYSTIIC_ENABLE | 8 | OPT_DEFS += -DQWIIC_JOYSTIIC_ENABLE |
| 10 | SRC += joystiic.c | 9 | SRC += joystiic.c |
| 11 | endif | 10 | endif |
| 12 | 11 | ||
| 13 | ifneq ($(filter MICRO_OLED, $(QWIIC_ENABLE)),) | 12 | ifneq ($(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 |
| 16 | endif | 15 | endif |
| 16 | |||
| 17 | endif | ||
diff --git a/keyboards/boston_meetup/2019/rules.mk b/keyboards/boston_meetup/2019/rules.mk index 7b9df20a8..c79ce4b44 100644 --- a/keyboards/boston_meetup/2019/rules.mk +++ b/keyboards/boston_meetup/2019/rules.mk | |||
| @@ -19,5 +19,6 @@ RGBLIGHT_ENABLE = no | |||
| 19 | RGB_MATRIX_ENABLE = no | 19 | RGB_MATRIX_ENABLE = no |
| 20 | RGB_MATRIX_DRIVER = WS2812 | 20 | RGB_MATRIX_DRIVER = WS2812 |
| 21 | HAPTIC_ENABLE += DRV2605L | 21 | HAPTIC_ENABLE += DRV2605L |
| 22 | QWIIC_ENABLE += MICRO_OLED | 22 | QWIIC_ENABLE = yes |
| 23 | QWIIC_DRIVERS += MICRO_OLED | ||
| 23 | # SERIAL_LINK_ENABLE = yes | 24 | # SERIAL_LINK_ENABLE = yes |
diff --git a/keyboards/cannonkeys/satisfaction75/rules.mk b/keyboards/cannonkeys/satisfaction75/rules.mk index 3a48d3ebf..e0f646ccc 100644 --- a/keyboards/cannonkeys/satisfaction75/rules.mk +++ b/keyboards/cannonkeys/satisfaction75/rules.mk | |||
| @@ -19,12 +19,13 @@ SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend | |||
| 19 | NKRO_ENABLE = yes # USB Nkey Rollover | 19 | NKRO_ENABLE = yes # USB Nkey Rollover |
| 20 | CUSTOM_MATRIX = no # Custom matrix file | 20 | CUSTOM_MATRIX = no # Custom matrix file |
| 21 | ENCODER_ENABLE = yes | 21 | ENCODER_ENABLE = yes |
| 22 | QWIIC_ENABLE += MICRO_OLED | 22 | QWIIC_ENABLE = yes |
| 23 | QWIIC_DRIVERS += MICRO_OLED | ||
| 23 | #BACKLIGHT_ENABLE = yes | 24 | #BACKLIGHT_ENABLE = yes |
| 24 | 25 | ||
| 25 | DEFAULT_FOLDER = cannonkeys/satisfaction75/rev1 | 26 | DEFAULT_FOLDER = cannonkeys/satisfaction75/rev1 |
| 26 | 27 | ||
| 27 | # Wildcard to allow APM32 MCU | 28 | # Wildcard to allow APM32 MCU |
| 28 | DFU_SUFFIX_ARGS = -p FFFF -v FFFF | 29 | DFU_SUFFIX_ARGS = -p FFFF -v FFFF |
| 29 | 30 | ||
| 30 | # Enter lower-power sleep mode when on the ChibiOS idle thread | 31 | # Enter lower-power sleep mode when on the ChibiOS idle thread |
diff --git a/keyboards/hadron/ver3/rules.mk b/keyboards/hadron/ver3/rules.mk index ae7f67862..62d7fb09e 100644 --- a/keyboards/hadron/ver3/rules.mk +++ b/keyboards/hadron/ver3/rules.mk | |||
| @@ -19,6 +19,7 @@ RGBLIGHT_ENABLE = yes | |||
| 19 | RGB_MATRIX_ENABLE = no # once arm_rgb is implemented | 19 | RGB_MATRIX_ENABLE = no # once arm_rgb is implemented |
| 20 | RGB_MATRIX_DRIVER = WS2812 | 20 | RGB_MATRIX_DRIVER = WS2812 |
| 21 | HAPTIC_ENABLE += DRV2605L | 21 | HAPTIC_ENABLE += DRV2605L |
| 22 | QWIIC_ENABLE += MICRO_OLED | 22 | QWIIC_ENABLE = yes |
| 23 | QWIIC_DRIVERS += MICRO_OLED | ||
| 23 | ENCODER_ENABLER = yes | 24 | ENCODER_ENABLER = yes |
| 24 | # SERIAL_LINK_ENABLE = yes | 25 | # SERIAL_LINK_ENABLE = yes |
