diff options
author | Ryan <fauxpark@gmail.com> | 2020-10-23 12:21:56 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-23 12:21:56 +1100 |
commit | 2b9b267e8ee1a49c448b5f0f5b9fd634bd6c4489 (patch) | |
tree | eb7232f4be9dd92d04d9137cf7fc91a480593263 /common_features.mk | |
parent | f9bd9d3b269ef0e1be9189b2395350e2062fe4d0 (diff) | |
download | qmk_firmware-2b9b267e8ee1a49c448b5f0f5b9fd634bd6c4489.tar.gz qmk_firmware-2b9b267e8ee1a49c448b5f0f5b9fd634bd6c4489.zip |
Fix RGB matrix for ATmegaxxU2 (#10723)
Diffstat (limited to 'common_features.mk')
-rw-r--r-- | common_features.mk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common_features.mk b/common_features.mk index e0ae1d74c..5f232d5f0 100644 --- a/common_features.mk +++ b/common_features.mk | |||
@@ -184,6 +184,10 @@ ifeq ($(filter $(RGB_MATRIX_ENABLE),$(VALID_MATRIX_TYPES)),) | |||
184 | $(error RGB_MATRIX_ENABLE="$(RGB_MATRIX_ENABLE)" is not a valid matrix type) | 184 | $(error RGB_MATRIX_ENABLE="$(RGB_MATRIX_ENABLE)" is not a valid matrix type) |
185 | endif | 185 | endif |
186 | OPT_DEFS += -DRGB_MATRIX_ENABLE | 186 | OPT_DEFS += -DRGB_MATRIX_ENABLE |
187 | ifneq (,$(filter $(MCU), atmega16u2 atmega32u2)) | ||
188 | # ATmegaxxU2 does not have hardware MUL instruction - lib8tion must be told to use software multiplication routines | ||
189 | OPT_DEFS += -DLIB8_ATTINY | ||
190 | endif | ||
187 | SRC += $(QUANTUM_DIR)/color.c | 191 | SRC += $(QUANTUM_DIR)/color.c |
188 | SRC += $(QUANTUM_DIR)/rgb_matrix.c | 192 | SRC += $(QUANTUM_DIR)/rgb_matrix.c |
189 | SRC += $(QUANTUM_DIR)/rgb_matrix_drivers.c | 193 | SRC += $(QUANTUM_DIR)/rgb_matrix_drivers.c |