aboutsummaryrefslogtreecommitdiff
path: root/quantum/keyboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/keyboard.c')
-rw-r--r--quantum/keyboard.c48
1 files changed, 7 insertions, 41 deletions
diff --git a/quantum/keyboard.c b/quantum/keyboard.c
index b98fc64e4..f2a0889c1 100644
--- a/quantum/keyboard.c
+++ b/quantum/keyboard.c
@@ -43,9 +43,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
43#ifdef SERIAL_MOUSE_ENABLE 43#ifdef SERIAL_MOUSE_ENABLE
44# include "serial_mouse.h" 44# include "serial_mouse.h"
45#endif 45#endif
46#ifdef ADB_MOUSE_ENABLE
47# include "adb.h"
48#endif
49#ifdef RGBLIGHT_ENABLE 46#ifdef RGBLIGHT_ENABLE
50# include "rgblight.h" 47# include "rgblight.h"
51#endif 48#endif
@@ -61,12 +58,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
61#ifdef STENO_ENABLE 58#ifdef STENO_ENABLE
62# include "process_steno.h" 59# include "process_steno.h"
63#endif 60#endif
64#ifdef SERIAL_LINK_ENABLE
65# include "serial_link/system/serial_link.h"
66#endif
67#ifdef VISUALIZER_ENABLE
68# include "visualizer/visualizer.h"
69#endif
70#ifdef POINTING_DEVICE_ENABLE 61#ifdef POINTING_DEVICE_ENABLE
71# include "pointing_device.h" 62# include "pointing_device.h"
72#endif 63#endif
@@ -76,12 +67,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
76#ifdef JOYSTICK_ENABLE 67#ifdef JOYSTICK_ENABLE
77# include "process_joystick.h" 68# include "process_joystick.h"
78#endif 69#endif
70#ifdef PROGRAMMABLE_BUTTON_ENABLE
71# include "programmable_button.h"
72#endif
79#ifdef HD44780_ENABLE 73#ifdef HD44780_ENABLE
80# include "hd44780.h" 74# include "hd44780.h"
81#endif 75#endif
82#ifdef QWIIC_ENABLE
83# include "qwiic.h"
84#endif
85#ifdef OLED_ENABLE 76#ifdef OLED_ENABLE
86# include "oled_driver.h" 77# include "oled_driver.h"
87#endif 78#endif
@@ -97,9 +88,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
97#ifdef DIP_SWITCH_ENABLE 88#ifdef DIP_SWITCH_ENABLE
98# include "dip_switch.h" 89# include "dip_switch.h"
99#endif 90#endif
100#ifdef STM32_EEPROM_ENABLE
101# include "eeprom_stm32.h"
102#endif
103#ifdef EEPROM_DRIVER 91#ifdef EEPROM_DRIVER
104# include "eeprom_driver.h" 92# include "eeprom_driver.h"
105#endif 93#endif
@@ -246,9 +234,6 @@ void keyboard_setup(void) {
246 disable_jtag(); 234 disable_jtag();
247#endif 235#endif
248 print_set_sendchar(sendchar); 236 print_set_sendchar(sendchar);
249#ifdef STM32_EEPROM_ENABLE
250 EEPROM_Init();
251#endif
252#ifdef EEPROM_DRIVER 237#ifdef EEPROM_DRIVER
253 eeprom_driver_init(); 238 eeprom_driver_init();
254#endif 239#endif
@@ -316,9 +301,6 @@ void keyboard_init(void) {
316#if defined(CRC_ENABLE) 301#if defined(CRC_ENABLE)
317 crc_init(); 302 crc_init();
318#endif 303#endif
319#ifdef QWIIC_ENABLE
320 qwiic_init();
321#endif
322#ifdef OLED_ENABLE 304#ifdef OLED_ENABLE
323 oled_init(OLED_ROTATION_0); 305 oled_init(OLED_ROTATION_0);
324#endif 306#endif
@@ -331,9 +313,6 @@ void keyboard_init(void) {
331#ifdef SERIAL_MOUSE_ENABLE 313#ifdef SERIAL_MOUSE_ENABLE
332 serial_mouse_init(); 314 serial_mouse_init();
333#endif 315#endif
334#ifdef ADB_MOUSE_ENABLE
335 adb_mouse_init();
336#endif
337#ifdef BACKLIGHT_ENABLE 316#ifdef BACKLIGHT_ENABLE
338 backlight_init(); 317 backlight_init();
339#endif 318#endif
@@ -384,7 +363,6 @@ void switch_events(uint8_t row, uint8_t col, bool pressed) {
384 * 363 *
385 * * scan matrix 364 * * scan matrix
386 * * handle mouse movements 365 * * handle mouse movements
387 * * run visualizer code
388 * * handle midi commands 366 * * handle midi commands
389 * * light LEDs 367 * * light LEDs
390 * 368 *
@@ -473,10 +451,6 @@ MATRIX_LOOP_END:
473 if (encoders_changed) last_encoder_activity_trigger(); 451 if (encoders_changed) last_encoder_activity_trigger();
474#endif 452#endif
475 453
476#ifdef QWIIC_ENABLE
477 qwiic_task();
478#endif
479
480#ifdef OLED_ENABLE 454#ifdef OLED_ENABLE
481 oled_task(); 455 oled_task();
482# if OLED_TIMEOUT > 0 456# if OLED_TIMEOUT > 0
@@ -514,18 +488,6 @@ MATRIX_LOOP_END:
514 serial_mouse_task(); 488 serial_mouse_task();
515#endif 489#endif
516 490
517#ifdef ADB_MOUSE_ENABLE
518 adb_mouse_task();
519#endif
520
521#ifdef SERIAL_LINK_ENABLE
522 serial_link_update();
523#endif
524
525#ifdef VISUALIZER_ENABLE
526 visualizer_update(default_layer_state, layer_state, visualizer_get_mods(), host_keyboard_leds());
527#endif
528
529#ifdef POINTING_DEVICE_ENABLE 491#ifdef POINTING_DEVICE_ENABLE
530 pointing_device_task(); 492 pointing_device_task();
531#endif 493#endif
@@ -548,6 +510,10 @@ MATRIX_LOOP_END:
548 digitizer_task(); 510 digitizer_task();
549#endif 511#endif
550 512
513#ifdef PROGRAMMABLE_BUTTON_ENABLE
514 programmable_button_send();
515#endif
516
551 // update LED 517 // update LED
552 if (led_status != host_keyboard_leds()) { 518 if (led_status != host_keyboard_leds()) {
553 led_status = host_keyboard_leds(); 519 led_status = host_keyboard_leds();