aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/massdrop/ctrl/config_led.c2
-rw-r--r--quantum/quantum.c3
-rw-r--r--tmk_core/common/keyboard.c3
-rw-r--r--tmk_core/protocol/arm_atsam/md_rgb_matrix.c10
-rw-r--r--tmk_core/protocol/arm_atsam/md_rgb_matrix_programs.c4
5 files changed, 13 insertions, 9 deletions
diff --git a/keyboards/massdrop/ctrl/config_led.c b/keyboards/massdrop/ctrl/config_led.c
index f711c6a4f..27ddb5c38 100644
--- a/keyboards/massdrop/ctrl/config_led.c
+++ b/keyboards/massdrop/ctrl/config_led.c
@@ -79,4 +79,4 @@ void rgb_matrix_indicators_kb(void)
79} 79}
80#endif // USB_LED_INDICATOR_ENABLE 80#endif // USB_LED_INDICATOR_ENABLE
81 81
82#endif 82#endif // RGB_MATRIX_ENABLE
diff --git a/quantum/quantum.c b/quantum/quantum.c
index 38234bb17..db99e80fa 100644
--- a/quantum/quantum.c
+++ b/quantum/quantum.c
@@ -621,6 +621,9 @@ void matrix_init_quantum() {
621#ifdef AUDIO_ENABLE 621#ifdef AUDIO_ENABLE
622 audio_init(); 622 audio_init();
623#endif 623#endif
624#ifdef RGB_MATRIX_ENABLE
625 rgb_matrix_init();
626#endif
624#if defined(UNICODE_ENABLE) || defined(UNICODEMAP_ENABLE) || defined(UCIS_ENABLE) 627#if defined(UNICODE_ENABLE) || defined(UNICODEMAP_ENABLE) || defined(UCIS_ENABLE)
625 unicode_input_mode_init(); 628 unicode_input_mode_init();
626#endif 629#endif
diff --git a/tmk_core/common/keyboard.c b/tmk_core/common/keyboard.c
index 34fed0cab..ce3255c06 100644
--- a/tmk_core/common/keyboard.c
+++ b/tmk_core/common/keyboard.c
@@ -307,9 +307,6 @@ void keyboard_init(void) {
307#ifdef RGBLIGHT_ENABLE 307#ifdef RGBLIGHT_ENABLE
308 rgblight_init(); 308 rgblight_init();
309#endif 309#endif
310#ifdef RGB_MATRIX_ENABLE
311 rgb_matrix_init();
312#endif
313#ifdef ENCODER_ENABLE 310#ifdef ENCODER_ENABLE
314 encoder_init(); 311 encoder_init();
315#endif 312#endif
diff --git a/tmk_core/protocol/arm_atsam/md_rgb_matrix.c b/tmk_core/protocol/arm_atsam/md_rgb_matrix.c
index 0ea7e3839..eb71443b8 100644
--- a/tmk_core/protocol/arm_atsam/md_rgb_matrix.c
+++ b/tmk_core/protocol/arm_atsam/md_rgb_matrix.c
@@ -15,6 +15,7 @@ You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>. 15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/ 16*/
17 17
18#ifdef RGB_MATRIX_ENABLE
18#include "arm_atsam_protocol.h" 19#include "arm_atsam_protocol.h"
19#include "led.h" 20#include "led.h"
20#include "rgb_matrix.h" 21#include "rgb_matrix.h"
@@ -196,7 +197,7 @@ void md_rgb_matrix_prepare(void) {
196 } 197 }
197} 198}
198 199
199void led_set_one(int i, uint8_t r, uint8_t g, uint8_t b) { 200static void led_set_one(int i, uint8_t r, uint8_t g, uint8_t b) {
200 if (i < ISSI3733_LED_COUNT) { 201 if (i < ISSI3733_LED_COUNT) {
201#ifdef USE_MASSDROP_CONFIGURATOR 202#ifdef USE_MASSDROP_CONFIGURATOR
202 md_rgb_matrix_config_override(i); 203 md_rgb_matrix_config_override(i);
@@ -208,13 +209,13 @@ void led_set_one(int i, uint8_t r, uint8_t g, uint8_t b) {
208 } 209 }
209} 210}
210 211
211void led_set_all(uint8_t r, uint8_t g, uint8_t b) { 212static void led_set_all(uint8_t r, uint8_t g, uint8_t b) {
212 for (uint8_t i = 0; i < ISSI3733_LED_COUNT; i++) { 213 for (uint8_t i = 0; i < ISSI3733_LED_COUNT; i++) {
213 led_set_one(i, r, g, b); 214 led_set_one(i, r, g, b);
214 } 215 }
215} 216}
216 217
217void init(void) { 218static void init(void) {
218 DBGC(DC_LED_MATRIX_INIT_BEGIN); 219 DBGC(DC_LED_MATRIX_INIT_BEGIN);
219 220
220 issi3733_prepare_arrays(); 221 issi3733_prepare_arrays();
@@ -227,7 +228,7 @@ void init(void) {
227 DBGC(DC_LED_MATRIX_INIT_COMPLETE); 228 DBGC(DC_LED_MATRIX_INIT_COMPLETE);
228} 229}
229 230
230void flush(void) { 231static void flush(void) {
231#ifdef USE_MASSDROP_CONFIGURATOR 232#ifdef USE_MASSDROP_CONFIGURATOR
232 if (!led_enabled) { 233 if (!led_enabled) {
233 return; 234 return;
@@ -470,3 +471,4 @@ static void md_rgb_matrix_config_override(int i) {
470} 471}
471 472
472#endif // USE_MASSDROP_CONFIGURATOR 473#endif // USE_MASSDROP_CONFIGURATOR
474#endif // RGB_MATRIX_ENABLE \ No newline at end of file
diff --git a/tmk_core/protocol/arm_atsam/md_rgb_matrix_programs.c b/tmk_core/protocol/arm_atsam/md_rgb_matrix_programs.c
index b43008cc5..1149cea7a 100644
--- a/tmk_core/protocol/arm_atsam/md_rgb_matrix_programs.c
+++ b/tmk_core/protocol/arm_atsam/md_rgb_matrix_programs.c
@@ -15,6 +15,7 @@ You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>. 15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/ 16*/
17 17
18#ifdef RGB_MATRIX_ENABLE
18#ifdef USE_MASSDROP_CONFIGURATOR 19#ifdef USE_MASSDROP_CONFIGURATOR
19 20
20# include "md_rgb_matrix.h" 21# include "md_rgb_matrix.h"
@@ -96,4 +97,5 @@ void *led_setups[] = {leds_rainbow_s, leds_rainbow_ns, leds_teal_salmon, leds_ye
96 97
97const uint8_t led_setups_count = sizeof(led_setups) / sizeof(led_setups[0]); 98const uint8_t led_setups_count = sizeof(led_setups) / sizeof(led_setups[0]);
98 99
99#endif 100#endif // USE_MASSDROP_CONFIGURATOR
101#endif // RGB_MATRIX_ENABLE \ No newline at end of file