diff options
author | Ryan <fauxpark@gmail.com> | 2021-03-20 14:52:33 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-20 14:52:33 +1100 |
commit | ed287956511f91671d0d90c6b5bdcd155ab6e392 (patch) | |
tree | bf6b44e7acfb2a633031ba6b5e7f9c65ba1b37f3 /common_features.mk | |
parent | 9d547a8443322afb2a4034168abd98e23397dbff (diff) | |
download | qmk_firmware-ed287956511f91671d0d90c6b5bdcd155ab6e392.tar.gz qmk_firmware-ed287956511f91671d0d90c6b5bdcd155ab6e392.zip |
LED Matrix: Additional common_features.mk tweaks (#12187)
Diffstat (limited to 'common_features.mk')
-rw-r--r-- | common_features.mk | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/common_features.mk b/common_features.mk index fdc481fd2..2e2991c64 100644 --- a/common_features.mk +++ b/common_features.mk | |||
@@ -224,12 +224,15 @@ VALID_LED_MATRIX_TYPES := IS31FL3731 custom | |||
224 | ifeq ($(strip $(LED_MATRIX_ENABLE)), yes) | 224 | ifeq ($(strip $(LED_MATRIX_ENABLE)), yes) |
225 | ifeq ($(filter $(LED_MATRIX_DRIVER),$(VALID_LED_MATRIX_TYPES)),) | 225 | ifeq ($(filter $(LED_MATRIX_DRIVER),$(VALID_LED_MATRIX_TYPES)),) |
226 | $(error "$(LED_MATRIX_DRIVER)" is not a valid matrix type) | 226 | $(error "$(LED_MATRIX_DRIVER)" is not a valid matrix type) |
227 | else | ||
228 | OPT_DEFS += -DLED_MATRIX_ENABLE | ||
229 | SRC += $(QUANTUM_DIR)/process_keycode/process_backlight.c | ||
230 | SRC += $(QUANTUM_DIR)/led_matrix.c | ||
231 | SRC += $(QUANTUM_DIR)/led_matrix_drivers.c | ||
232 | endif | 227 | endif |
228 | OPT_DEFS += -DLED_MATRIX_ENABLE | ||
229 | ifneq (,$(filter $(MCU), atmega16u2 atmega32u2 at90usb162)) | ||
230 | # ATmegaxxU2 does not have hardware MUL instruction - lib8tion must be told to use software multiplication routines | ||
231 | OPT_DEFS += -DLIB8_ATTINY | ||
232 | endif | ||
233 | SRC += $(QUANTUM_DIR)/process_keycode/process_backlight.c | ||
234 | SRC += $(QUANTUM_DIR)/led_matrix.c | ||
235 | SRC += $(QUANTUM_DIR)/led_matrix_drivers.c | ||
233 | 236 | ||
234 | ifeq ($(strip $(LED_MATRIX_DRIVER)), IS31FL3731) | 237 | ifeq ($(strip $(LED_MATRIX_DRIVER)), IS31FL3731) |
235 | OPT_DEFS += -DIS31FL3731 -DSTM32_I2C -DHAL_USE_I2C=TRUE | 238 | OPT_DEFS += -DIS31FL3731 -DSTM32_I2C -DHAL_USE_I2C=TRUE |