diff options
author | Ryan <fauxpark@gmail.com> | 2020-10-23 12:21:56 +1100 |
---|---|---|
committer | Drashna Jael're <drashna@live.com> | 2021-01-12 22:43:32 -0800 |
commit | 5cc304cb2be547f3afad6cdd3c465ec85069ae5d (patch) | |
tree | 7ef3567c20b89e7f01f152795608677225404400 | |
parent | 2e58be9e1486b556062f07b247fd4d229b559a15 (diff) |
Fix RGB matrix for ATmegaxxU2 (#10723)
-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 d6e5a73db3..2e5b6df47c 100644 --- a/common_features.mk +++ b/common_features.mk @@ -184,6 +184,10 @@ ifeq ($(filter $(RGB_MATRIX_ENABLE),$(VALID_MATRIX_TYPES)),) $(error RGB_MATRIX_ENABLE="$(RGB_MATRIX_ENABLE)" is not a valid matrix type) endif OPT_DEFS += -DRGB_MATRIX_ENABLE +ifneq (,$(filter $(MCU), atmega16u2 atmega32u2)) + # ATmegaxxU2 does not have hardware MUL instruction - lib8tion must be told to use software multiplication routines + OPT_DEFS += -DLIB8_ATTINY +endif SRC += $(QUANTUM_DIR)/color.c SRC += $(QUANTUM_DIR)/rgb_matrix.c SRC += $(QUANTUM_DIR)/rgb_matrix_drivers.c |