From 3c144fac5e2b634166f6b9cc0fc45029d63d3398 Mon Sep 17 00:00:00 2001 From: Ryan Date: Mon, 20 Mar 2023 08:12:05 +1100 Subject: [PATCH] Clean up usage of `QMK_KEYBOARD_H` (#20167) --- .../25keys/cassette42/common/oled_helper.c | 8 ++- keyboards/3w6/rev1/matrix.c | 4 +- keyboards/3w6/rev2/matrix.c | 4 +- keyboards/adm42/rev4/rev4.c | 2 +- .../ishi/80/mk0_avr_extra/mk0_avr_extra.c | 2 +- keyboards/converter/palm_usb/matrix.c | 18 +++--- keyboards/converter/sun_usb/command_extra.c | 64 ------------------- keyboards/converter/sun_usb/led.c | 3 +- keyboards/converter/sun_usb/matrix.c | 16 +++-- keyboards/converter/xmk/xmk.c | 2 +- keyboards/converter/xmk/xmk_matrix.c | 2 + keyboards/converter/xmk/xmk_matrix.h | 3 +- keyboards/crkbd/lib/layer_state_reader.c | 4 +- keyboards/crkbd/lib/rgb_state_reader.c | 1 - keyboards/cxt_studio/cxt_studio.c | 2 +- keyboards/ergodox_stm32/ergodox_stm32.c | 2 +- keyboards/ergodox_stm32/matrix.c | 9 +-- keyboards/fc980c/matrix.c | 2 - keyboards/ferris/0_1/matrix.c | 4 +- keyboards/ferris/0_2/matrix.c | 5 +- keyboards/gboards/butterstick/sten.h | 2 +- keyboards/gboards/engine/engine.h | 6 +- keyboards/gboards/ergotaco/ergotaco.c | 2 +- keyboards/gboards/ergotaco/matrix.c | 7 +- keyboards/gboards/g/engine.h | 8 +-- keyboards/gboards/georgi/georgi.c | 2 +- keyboards/gboards/georgi/matrix.c | 8 +-- keyboards/gboards/georgi/sten.h | 2 +- keyboards/gboards/gergo/gergo.c | 2 +- keyboards/gboards/gergo/matrix.c | 7 +- keyboards/gl516/xr63gl/xr63gl.c | 2 +- .../hardwareabstraction/handwire/handwire.c | 3 +- keyboards/hotdox76v2/hotdox76v2.c | 2 +- keyboards/ingrained/matrix.c | 4 +- .../ergodox_infinity/ergodox_infinity.c | 2 +- keyboards/kc60se/kc60se.c | 2 +- keyboards/keychron/common/keychron_common.c | 2 +- keyboards/keychron/common/keychron_common.h | 6 +- keyboards/lily58/lib/layer_state_reader.c | 3 +- keyboards/lily58/lib/rgb_state_reader.c | 1 - .../marksard/rhymestone/common/oled_helper.c | 6 +- .../marksard/rhymestone/common/oled_helper.h | 3 + .../treadstone48/common/oled_helper.c | 6 +- .../treadstone48/common/oled_helper.h | 3 + keyboards/mk65/mk65.c | 2 +- keyboards/mxss/mxss.c | 2 +- keyboards/nack/nack.c | 2 +- keyboards/nullbitsco/nibble/nibble.c | 2 +- keyboards/nullbitsco/tidbit/tidbit.c | 2 +- keyboards/omnikeyish/dynamic_macro.c | 2 +- keyboards/palette1202/lib/oled_helper.c | 6 +- keyboards/ploopyco/mouse/mouse.c | 2 +- keyboards/rubi/lib/oled.c | 4 +- keyboards/rubi/lib/oled.h | 4 ++ keyboards/rura66/rev1/oled_display.c | 2 +- keyboards/splitkb/aurora/corne/rev1/rev1.c | 2 +- keyboards/splitkb/aurora/lily58/rev1/rev1.c | 2 +- keyboards/splitkb/aurora/sweep/rev1/rev1.c | 2 +- keyboards/teleport/native/ansi/ansi.c | 2 +- keyboards/teleport/native/iso/iso.c | 2 +- keyboards/torn/bongocat.c | 2 +- keyboards/torn/matrix.c | 2 +- keyboards/torn/mcp23018.c | 1 - keyboards/torn/mcp23018.h | 3 + .../djinn/graphics/theme_djinn_default.c | 1 - keyboards/tzarc/ghoul/ghoul.c | 2 +- keyboards/work_louder/micro/matrix.c | 9 +-- keyboards/work_louder/micro/micro.c | 2 +- keyboards/work_louder/rgb_functions.c | 1 - keyboards/yosino58/lib/layer_state_reader.c | 2 +- keyboards/yosino58/lib/rgb_state_reader.c | 2 +- keyboards/yushakobo/navpad/navpad_prefs.c | 2 +- keyboards/yushakobo/quick17/quick17_prefs.c | 2 +- keyboards/yushakobo/quick17/quick17_prefs.h | 2 + 74 files changed, 132 insertions(+), 189 deletions(-) delete mode 100644 keyboards/converter/sun_usb/command_extra.c diff --git a/keyboards/25keys/cassette42/common/oled_helper.c b/keyboards/25keys/cassette42/common/oled_helper.c index 8800699a8501614a264834ade007bb314d4e8b81..1c4148a7d9f04c0c61f852eadf67c46dcf93dc0a 100644 --- a/keyboards/25keys/cassette42/common/oled_helper.c +++ b/keyboards/25keys/cassette42/common/oled_helper.c @@ -1,7 +1,9 @@ +#include "oled_helper.h" +#include "quantum.h" +#include +#include + #ifdef OLED_ENABLE -# include QMK_KEYBOARD_H -# include -# include void render_logo(void) { static const char PROGMEM logo[] = {0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8a, 0x8b, 0x8c, 0x8d, 0x8e, 0x8f, 0x90, 0x91, 0x92, 0x93, 0x94, 0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7, 0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf, 0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0}; diff --git a/keyboards/3w6/rev1/matrix.c b/keyboards/3w6/rev1/matrix.c index ae2f96bfa1684f2d81c4a87ad05e5ef4095e12d5..8bb6c77aaa482e12d4e9f953d7d7e9e95f3c594a 100644 --- a/keyboards/3w6/rev1/matrix.c +++ b/keyboards/3w6/rev1/matrix.c @@ -24,7 +24,9 @@ along with this program. If not, see . * to repeating that information all over the place. */ -#include QMK_KEYBOARD_H +#include "matrix.h" +#include "debug.h" +#include "wait.h" #include "i2c_master.h" extern i2c_status_t tca9555_status; diff --git a/keyboards/3w6/rev2/matrix.c b/keyboards/3w6/rev2/matrix.c index c47c24e1dcfe2947c7461090c5b8d258cfb04ed0..49cb09a9f82bc6fea29b575caa2c98167437dcd6 100644 --- a/keyboards/3w6/rev2/matrix.c +++ b/keyboards/3w6/rev2/matrix.c @@ -24,7 +24,9 @@ along with this program. If not, see . * to repeating that information all over the place. */ -#include QMK_KEYBOARD_H +#include "matrix.h" +#include "debug.h" +#include "wait.h" #include "i2c_master.h" extern i2c_status_t tca9555_status; diff --git a/keyboards/adm42/rev4/rev4.c b/keyboards/adm42/rev4/rev4.c index 2e22004f96fceda46948ee1a9a05b8d605e9d1be..623b5cb5a381d6cef15ccb09376331b52aafbc12 100644 --- a/keyboards/adm42/rev4/rev4.c +++ b/keyboards/adm42/rev4/rev4.c @@ -14,7 +14,7 @@ * along with this program. If not, see . */ -#include QMK_KEYBOARD_H +#include "quantum.h" led_config_t g_led_config = { { diff --git a/keyboards/argo_works/ishi/80/mk0_avr_extra/mk0_avr_extra.c b/keyboards/argo_works/ishi/80/mk0_avr_extra/mk0_avr_extra.c index 83d591eb0acc72301cf03de7453d88dc883ceaf7..964d56bdfb22c3797f2b965560629c15652f5514 100644 --- a/keyboards/argo_works/ishi/80/mk0_avr_extra/mk0_avr_extra.c +++ b/keyboards/argo_works/ishi/80/mk0_avr_extra/mk0_avr_extra.c @@ -14,7 +14,7 @@ * along with this program. If not, see . */ -#include QMK_KEYBOARD_H +#include "quantum.h" #ifdef OLED_ENABLE static void render_logo(void) { diff --git a/keyboards/converter/palm_usb/matrix.c b/keyboards/converter/palm_usb/matrix.c index 4226dfa52c5186a368879d0e77d9bbd5caac9a49..016b5622541338b3ddd4808f832b6a2efd098c22 100644 --- a/keyboards/converter/palm_usb/matrix.c +++ b/keyboards/converter/palm_usb/matrix.c @@ -17,7 +17,9 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include QMK_KEYBOARD_H +#include "matrix.h" +#include "debug.h" +#include "wait.h" #include "uart.h" #include "timer.h" @@ -134,14 +136,14 @@ uint8_t rts_reset(void) { if (firstread) { writePinLow(RTS_PIN); } - _delay_ms(10); + wait_ms(10); writePinHigh(RTS_PIN); /* the future is Arm if (!palReadPad(RTS_PIN_IOPRT)) { - _delay_ms(10); + wait_ms(10); palSetPadMode(RTS_PINn_IOPORT, PinDirectionOutput_PUSHPULL); palSetPad(RTS_PORT, RTS_PIN); } @@ -150,13 +152,13 @@ uint8_t rts_reset(void) { palSetPadMode(RTS_PIN_RTS_PORT, PinDirectionOutput_PUSHPULL); palSetPad(RTS_PORT, RTS_PIN); palClearPad(RTS_PORT, RTS_PIN); - _delay_ms(10); + wait_ms(10); palSetPad(RTS_PORT, RTS_PIN); } */ - _delay_ms(5); + wait_ms(5); //print("rts\n"); return 1; } @@ -222,7 +224,7 @@ uint8_t handspring_handshake(void) { uint8_t handspring_reset(void) { writePinLow(VCC_PIN); - _delay_ms(5); + wait_ms(5); writePinHigh(VCC_PIN); if ( handspring_handshake() ) { @@ -257,7 +259,7 @@ void matrix_init(void) last_activity = timer_read(); } else { print("failed handshake"); - _delay_ms(1000); + wait_ms(1000); //BUG /should/ power cycle or toggle RTS & reset, but this usually works. } @@ -271,7 +273,7 @@ void matrix_init(void) last_activity = timer_read(); } else { print("failed handshake"); - _delay_ms(1000); + wait_ms(1000); //BUG /should/ power cycle or toggle RTS & reset, but this usually works. } diff --git a/keyboards/converter/sun_usb/command_extra.c b/keyboards/converter/sun_usb/command_extra.c deleted file mode 100644 index b15f9dc9bd7aa35de18edfe040480c0460530c4f..0000000000000000000000000000000000000000 --- a/keyboards/converter/sun_usb/command_extra.c +++ /dev/null @@ -1,64 +0,0 @@ -#include QMK_KEYBOARD_H -#include "uart.h" - -bool sun_bell = false; -bool sun_click = false; - - -bool command_extra(uint8_t code) -{ - switch (code) { - case KC_H: - case KC_SLASH: /* ? */ - print("\n\n----- Sun converter Help -----\n"); - print("Home: Toggle Bell\n"); - print("End: Toggle Click\n"); - print("PgUp: LED all On\n"); - print("PgDown: LED all Off\n"); - print("Insert: Layout\n"); - print("Delete: Reset\n"); - return false; - case KC_DEL: - print("Reset\n"); - uart_write(0x01); - break; - case KC_HOME: - sun_bell = !sun_bell; - if (sun_bell) { - print("Bell On\n"); - uart_write(0x02); - } else { - print("Bell Off\n"); - uart_write(0x03); - } - break; - case KC_END: - sun_click = !sun_click; - if (sun_click) { - print("Click On\n"); - uart_write(0x0A); - } else { - print("Click Off\n"); - uart_write(0x0B); - } - break; - case KC_PGUP: - print("LED all on\n"); - uart_write(0x0E); - uart_write(0xFF); - break; - case KC_PGDN: - print("LED all off\n"); - uart_write(0x0E); - uart_write(0x00); - break; - case KC_INSERT: - print("layout\n"); - uart_write(0x0F); - break; - default: - xprintf("Unknown extra command: %02X\n", code); - return false; - } - return true; -} diff --git a/keyboards/converter/sun_usb/led.c b/keyboards/converter/sun_usb/led.c index f8d183fd4895ba36d328de3d8f32af205e30088c..493825bac8d9187dc12a240688e089c2f0396552 100644 --- a/keyboards/converter/sun_usb/led.c +++ b/keyboards/converter/sun_usb/led.c @@ -15,7 +15,8 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include QMK_KEYBOARD_H +#include "led.h" +#include "print.h" #include "uart.h" void led_set(uint8_t usb_led) diff --git a/keyboards/converter/sun_usb/matrix.c b/keyboards/converter/sun_usb/matrix.c index 9f22eca1eb4fe074cb4616a791f43e1461b5c38f..bf1d5f807fdbd37747285ea9edffc2926ea903d9 100644 --- a/keyboards/converter/sun_usb/matrix.c +++ b/keyboards/converter/sun_usb/matrix.c @@ -15,7 +15,11 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include QMK_KEYBOARD_H +#include "matrix.h" +#include "host.h" +#include "led.h" +#include "debug.h" +#include "wait.h" #include "uart.h" /* @@ -86,9 +90,9 @@ void matrix_init(void) /* print("."); */ /* while (uart_read()); */ /* uart_write(0x01); */ - /* _delay_ms(500); */ + /* wait_ms(500); */ /* if (uart_read() == 0xFF) { */ - /* _delay_ms(500); */ + /* wait_ms(500); */ /* if (uart_read() == 0x04) */ /* break; */ /* } */ @@ -112,7 +116,7 @@ uint8_t matrix_scan(void) switch (code) { case 0xFF: // reset success: FF 04 print("reset: "); - _delay_ms(500); + wait_ms(500); code = uart_read(); xprintf("%02X\n", code); if (code == 0x04) { @@ -122,12 +126,12 @@ uint8_t matrix_scan(void) return 0; case 0xFE: // layout: FE print("layout: "); - _delay_ms(500); + wait_ms(500); xprintf("%02X\n", uart_read()); return 0; case 0x7E: // reset fail: 7E 01 print("reset fail: "); - _delay_ms(500); + wait_ms(500); xprintf("%02X\n", uart_read()); return 0; case 0x7F: diff --git a/keyboards/converter/xmk/xmk.c b/keyboards/converter/xmk/xmk.c index a0426e95dc8d2469fec2cae1919127b75eaba365..e0df96fc2d2aa05ecc3e546c744a84a5cc88cccc 100644 --- a/keyboards/converter/xmk/xmk.c +++ b/keyboards/converter/xmk/xmk.c @@ -3,7 +3,7 @@ // SPDX-License-Identifier: GPL-2.0-or-later -#include QMK_KEYBOARD_H +#include "quantum.h" #if defined (XMK_DEBUG) void keyboard_post_init_kb(void) { diff --git a/keyboards/converter/xmk/xmk_matrix.c b/keyboards/converter/xmk/xmk_matrix.c index 7327ad5cfe3c1911bee8ebac10fb8b92a016d52a..41eca9fe46a77f176576b020f8fbd77f0337bcfb 100644 --- a/keyboards/converter/xmk/xmk_matrix.c +++ b/keyboards/converter/xmk/xmk_matrix.c @@ -4,6 +4,8 @@ // SPDX-License-Identifier: GPL-2.0-or-later #include "xmk_matrix.h" +#include "matrix.h" +#include "debug.h" bool xmk_changed = false; matrix_row_t xmk_rows[MATRIX_ROWS]; diff --git a/keyboards/converter/xmk/xmk_matrix.h b/keyboards/converter/xmk/xmk_matrix.h index 45514dea04462bfcc4b3a2c01dd5fbcf098ec6e5..2a988253f918eec41fd34084bbbf4ec02ba8773c 100644 --- a/keyboards/converter/xmk/xmk_matrix.h +++ b/keyboards/converter/xmk/xmk_matrix.h @@ -5,6 +5,7 @@ #pragma once -#include QMK_KEYBOARD_H +#include +#include void xmk_matrix_key(bool press, uint8_t key); diff --git a/keyboards/crkbd/lib/layer_state_reader.c b/keyboards/crkbd/lib/layer_state_reader.c index 601fd719580c4145571fc3acd55b2c43938fd1df..7dd17024859de10b4b2e959cffc3b513873da7b3 100644 --- a/keyboards/crkbd/lib/layer_state_reader.c +++ b/keyboards/crkbd/lib/layer_state_reader.c @@ -1,7 +1,5 @@ - -#include QMK_KEYBOARD_H +#include "quantum.h" #include -#include "crkbd.h" // in the future, should use (1U<<_LAYER_NAME) instead, but needs to be moved to keymap,c #define L_BASE 0 diff --git a/keyboards/crkbd/lib/rgb_state_reader.c b/keyboards/crkbd/lib/rgb_state_reader.c index e0efe2e5288f1c3a4cec3a844dd5ae8bd7a8a8cd..3d74fb45e4e3550f1369adcd569b3434f1b1c84c 100644 --- a/keyboards/crkbd/lib/rgb_state_reader.c +++ b/keyboards/crkbd/lib/rgb_state_reader.c @@ -1,6 +1,5 @@ #ifdef RGBLIGHT_ENABLE -#include QMK_KEYBOARD_H #include extern rgblight_config_t rgblight_config; diff --git a/keyboards/cxt_studio/cxt_studio.c b/keyboards/cxt_studio/cxt_studio.c index 2e7622ff91133e187c9257a48c9f6ff791546ca9..2b36905340b5581f6f63f2c600400fd2627cde13 100644 --- a/keyboards/cxt_studio/cxt_studio.c +++ b/keyboards/cxt_studio/cxt_studio.c @@ -1,7 +1,7 @@ // Copyright 2023 Colin Kinloch (@ColinKinloch) // SPDX-License-Identifier: GPL-2.0-or-later -#include QMK_KEYBOARD_H +#include "quantum.h" static uint8_t anim = 0; diff --git a/keyboards/ergodox_stm32/ergodox_stm32.c b/keyboards/ergodox_stm32/ergodox_stm32.c index 8419b40f4180f70b9fb09bf42907f970d7d33625..2a919506dc58c6a7a6f75aaa5e37ae16ba236f9c 100644 --- a/keyboards/ergodox_stm32/ergodox_stm32.c +++ b/keyboards/ergodox_stm32/ergodox_stm32.c @@ -1,5 +1,5 @@ +#include "ergodox_stm32.h" #include "i2c_master.h" -#include QMK_KEYBOARD_H extern inline void ergodox_board_led_1_on(void); extern inline void ergodox_board_led_2_on(void); diff --git a/keyboards/ergodox_stm32/matrix.c b/keyboards/ergodox_stm32/matrix.c index 2046e39c1f046863e9dca4f867eb2d8e2d2e01e4..3eb35cd7bbe9aeba39f75437bcb5a10081b43bd1 100644 --- a/keyboards/ergodox_stm32/matrix.c +++ b/keyboards/ergodox_stm32/matrix.c @@ -1,13 +1,10 @@ -#include -#include +#include "matrix.h" #include -#include #include "timer.h" #include "wait.h" -#include "print.h" -#include "matrix.h" +#include "debug.h" #include "i2c_master.h" -#include QMK_KEYBOARD_H +#include "ergodox_stm32.h" #ifndef DEBOUNCE #define DEBOUNCE 10 diff --git a/keyboards/fc980c/matrix.c b/keyboards/fc980c/matrix.c index f5c3ec08c726a7df15908b0de7412aa19a2112a1..6ea605600d10e7a6b0cdc2edf689619f2d7ef087 100644 --- a/keyboards/fc980c/matrix.c +++ b/keyboards/fc980c/matrix.c @@ -29,8 +29,6 @@ along with this program. If not, see . #include "matrix.h" #include "led.h" #include "avr/timer_avr.h" -// #include QMK_KEYBOARD_H - // Timer resolution check #if (1000000/TIMER_RAW_FREQ > 20) diff --git a/keyboards/ferris/0_1/matrix.c b/keyboards/ferris/0_1/matrix.c index 0dfb150b6c70857339ba31991c510acb67cd9521..154a275d7a03716f90583406a905ca493bf24ff4 100644 --- a/keyboards/ferris/0_1/matrix.c +++ b/keyboards/ferris/0_1/matrix.c @@ -23,7 +23,9 @@ along with this program. If not, see . * to repeating that information all over the place. */ -#include QMK_KEYBOARD_H +#include "matrix.h" +#include "debug.h" +#include "wait.h" #include "i2c_master.h" extern i2c_status_t mcp23017_status; diff --git a/keyboards/ferris/0_2/matrix.c b/keyboards/ferris/0_2/matrix.c index ff0e66d65cd9d570198f1d147a679d68157cbebd..af4b045eb8cbb1afbd9d8bbe351599ad42f28feb 100644 --- a/keyboards/ferris/0_2/matrix.c +++ b/keyboards/ferris/0_2/matrix.c @@ -23,9 +23,10 @@ along with this program. If not, see . * to repeating that information all over the place. */ -#include QMK_KEYBOARD_H +#include "matrix.h" +#include "debug.h" +#include "wait.h" #include "i2c_master.h" -#include extern i2c_status_t mcp23017_status; #define MCP23017_I2C_TIMEOUT 1000 diff --git a/keyboards/gboards/butterstick/sten.h b/keyboards/gboards/butterstick/sten.h index 84c54c9e2e54fdb310ed94cc128546b167c19ac9..39740ac3d3ebe171a74bf57f01496102fcc5af5b 100644 --- a/keyboards/gboards/butterstick/sten.h +++ b/keyboards/gboards/butterstick/sten.h @@ -7,7 +7,7 @@ #pragma once -#include QMK_KEYBOARD_H +#include "butterstick.h" #include "mousekey.h" #include "keymap_steno.h" #include "wait.h" diff --git a/keyboards/gboards/engine/engine.h b/keyboards/gboards/engine/engine.h index 5b2da811d8dfb683795cd26a933e20b9a675f75c..005dd730b8d980228745c310e667330a10ddf0fa 100644 --- a/keyboards/gboards/engine/engine.h +++ b/keyboards/gboards/engine/engine.h @@ -11,13 +11,11 @@ */ #pragma once -#include QMK_KEYBOARD_H + +#include "quantum.h" #include -#include #include #include "config_engine.h" -#include -#include "wait.h" // Maximum values for combos #define COMBO_END 0x00 diff --git a/keyboards/gboards/ergotaco/ergotaco.c b/keyboards/gboards/ergotaco/ergotaco.c index ecab74b3a26af51550cc4129d7b801e5e0fc985e..daeba1e0a62fcacb4368ff5a56930789aae549ae 100644 --- a/keyboards/gboards/ergotaco/ergotaco.c +++ b/keyboards/gboards/ergotaco/ergotaco.c @@ -1,4 +1,4 @@ -#include QMK_KEYBOARD_H +#include "ergotaco.h" bool i2c_initialized = 0; i2c_status_t mcp23018_status = 0x20; diff --git a/keyboards/gboards/ergotaco/matrix.c b/keyboards/gboards/ergotaco/matrix.c index 1bab5e89812ffa94162ba6ee32ddeaa31ac08da1..63d4c4f5f31906def21d834e2b67ea8467fa3b7e 100644 --- a/keyboards/gboards/ergotaco/matrix.c +++ b/keyboards/gboards/ergotaco/matrix.c @@ -17,15 +17,10 @@ along with this program. If not, see . */ #include "matrix.h" -#include -#include -#include #include "wait.h" -#include "action_layer.h" -#include "print.h" #include "debug.h" #include "util.h" -#include QMK_KEYBOARD_H +#include "ergotaco.h" #ifndef DEBOUNCE # define DEBOUNCE 5 diff --git a/keyboards/gboards/g/engine.h b/keyboards/gboards/g/engine.h index e166ba37d2f0c473515b626fee253e2880e69d1a..a78ddc96ff0e711d1873628e8a0978a34cd6e27e 100644 --- a/keyboards/gboards/g/engine.h +++ b/keyboards/gboards/g/engine.h @@ -12,16 +12,10 @@ #pragma once -#include QMK_KEYBOARD_H +#include "quantum.h" #include -#include #include #include "config_engine.h" -#include -#include "wait.h" -#ifdef MOUSEKEY_ENABLE -# include "mousekey.h" -#endif // Set defaults #ifndef IN_CHORD_MASK diff --git a/keyboards/gboards/georgi/georgi.c b/keyboards/gboards/georgi/georgi.c index 8866886ce7c7d40c47583f57428106914ba72e01..dd95b593f11fde94c858f7244836b04746d16209 100644 --- a/keyboards/gboards/georgi/georgi.c +++ b/keyboards/gboards/georgi/georgi.c @@ -1,4 +1,4 @@ -#include QMK_KEYBOARD_H +#include "georgi.h" bool i2c_initialized = 0; i2c_status_t mcp23018_status = 0x20; diff --git a/keyboards/gboards/georgi/matrix.c b/keyboards/gboards/georgi/matrix.c index 5ac696fd31941484060e6431be8cdeb87e0efc4f..b66b1a194c69e4c266b203998e4f93228e5858ee 100644 --- a/keyboards/gboards/georgi/matrix.c +++ b/keyboards/gboards/georgi/matrix.c @@ -17,16 +17,10 @@ along with this program. If not, see . */ #include "matrix.h" -#include -#include -#include #include "wait.h" -#include "action_layer.h" -#include "print.h" #include "debug.h" #include "util.h" -#include "keymap_steno.h" -#include QMK_KEYBOARD_H +#include "georgi.h" #ifndef DEBOUNCE # define DEBOUNCE 5 diff --git a/keyboards/gboards/georgi/sten.h b/keyboards/gboards/georgi/sten.h index 05d518efac7b5cd84cced38b1bc9968e02e744e7..b5aa79893eec52980e996ea6aa9a7e542ea481b5 100644 --- a/keyboards/gboards/georgi/sten.h +++ b/keyboards/gboards/georgi/sten.h @@ -6,7 +6,7 @@ // Amen. #pragma once -#include QMK_KEYBOARD_H +#include "georgi.h" #include "mousekey.h" #include "keymap_steno.h" #include "wait.h" diff --git a/keyboards/gboards/gergo/gergo.c b/keyboards/gboards/gergo/gergo.c index ba359f81455d4c3d202b2f979ff55feef46a4337..da2a3007a8afd3c1a44d9c12b9b5131002aeb959 100644 --- a/keyboards/gboards/gergo/gergo.c +++ b/keyboards/gboards/gergo/gergo.c @@ -1,4 +1,4 @@ -#include QMK_KEYBOARD_H +#include "gergo.h" bool i2c_initialized = 0; i2c_status_t mcp23018_status = 0x20; diff --git a/keyboards/gboards/gergo/matrix.c b/keyboards/gboards/gergo/matrix.c index c352be24e1dab6b526ffddfcfcaa9d214add8355..8a6b38bf73ba0d5d8b6a6537a8225a6a54967e2b 100644 --- a/keyboards/gboards/gergo/matrix.c +++ b/keyboards/gboards/gergo/matrix.c @@ -17,16 +17,11 @@ along with this program. If not, see . */ #include "matrix.h" -#include -#include -#include #include "wait.h" -#include "action_layer.h" -#include "print.h" #include "debug.h" #include "util.h" #include "debounce.h" -#include QMK_KEYBOARD_H +#include "gergo.h" #ifdef BALLER #include diff --git a/keyboards/gl516/xr63gl/xr63gl.c b/keyboards/gl516/xr63gl/xr63gl.c index 4817f07a9256ade5c6cb05b50075abf184225353..b2aa43c4569b6b2ed65a6336423e83f000eb6ed9 100644 --- a/keyboards/gl516/xr63gl/xr63gl.c +++ b/keyboards/gl516/xr63gl/xr63gl.c @@ -1,7 +1,7 @@ // Copyright 2022 gachiham (@gachiham) // SPDX-License-Identifier: GPL-2.0-or-later -#include QMK_KEYBOARD_H +#include "quantum.h" const matrix_row_t matrix_mask[MATRIX_ROWS] = { 0b1111111111111110, diff --git a/keyboards/hardwareabstraction/handwire/handwire.c b/keyboards/hardwareabstraction/handwire/handwire.c index c61e4c762685e16b753ac148d7d32e4cf56369d9..4981e703e402e49cfde16288cf38f8fe42481cc7 100644 --- a/keyboards/hardwareabstraction/handwire/handwire.c +++ b/keyboards/hardwareabstraction/handwire/handwire.c @@ -1,7 +1,8 @@ // Copyright 2022 Andy Tsai (@atsai) // SPDX-License-Identifier: GPL-2.0-or-later -#include QMK_KEYBOARD_H +#include "quantum.h" + static uint16_t buzzer_timer = 0; static uint8_t buzzer_dwell = 15; static uint8_t buzzer_dwell_change = 1; diff --git a/keyboards/hotdox76v2/hotdox76v2.c b/keyboards/hotdox76v2/hotdox76v2.c index 1465e96138b12737fcbde0e2cb22b1bd454b0b4b..57ed81b128aa4bd8cce70cdfc301270dbf06e2ef 100644 --- a/keyboards/hotdox76v2/hotdox76v2.c +++ b/keyboards/hotdox76v2/hotdox76v2.c @@ -2,7 +2,7 @@ // Copyright 2022 Drashna Jael're (@Drashna Jael're) // SPDX-License-Identifier: GPL-2.0-or-later -#include QMK_KEYBOARD_H +#include "hotdox76v2.h" #include #include #include "oled_font_lib/logo2.h" diff --git a/keyboards/ingrained/matrix.c b/keyboards/ingrained/matrix.c index 0dfb150b6c70857339ba31991c510acb67cd9521..154a275d7a03716f90583406a905ca493bf24ff4 100644 --- a/keyboards/ingrained/matrix.c +++ b/keyboards/ingrained/matrix.c @@ -23,7 +23,9 @@ along with this program. If not, see . * to repeating that information all over the place. */ -#include QMK_KEYBOARD_H +#include "matrix.h" +#include "debug.h" +#include "wait.h" #include "i2c_master.h" extern i2c_status_t mcp23017_status; diff --git a/keyboards/input_club/ergodox_infinity/ergodox_infinity.c b/keyboards/input_club/ergodox_infinity/ergodox_infinity.c index fbe1bdb77f718a7a228ee793ea8fb4c235acadda..b8f0d4ae13fc12901b52d8f2c19f7fdc9780a09f 100644 --- a/keyboards/input_club/ergodox_infinity/ergodox_infinity.c +++ b/keyboards/input_club/ergodox_infinity/ergodox_infinity.c @@ -1,4 +1,4 @@ -#include QMK_KEYBOARD_H +#include "ergodox_infinity.h" #include #include #include diff --git a/keyboards/kc60se/kc60se.c b/keyboards/kc60se/kc60se.c index e484d74db8d60f334eae286965bfb4f6d9565e34..7aa0ef9d7723779597435ad30bc2eb5eba84f7bd 100644 --- a/keyboards/kc60se/kc60se.c +++ b/keyboards/kc60se/kc60se.c @@ -14,7 +14,7 @@ * along with this program. If not, see . */ -#include QMK_KEYBOARD_H +#include "kc60se.h" void matrix_init_kb(void){ setPinOutput(B2); diff --git a/keyboards/keychron/common/keychron_common.c b/keyboards/keychron/common/keychron_common.c index a6250966f336bf94d4e839837932e339989396d9..9c7fc3ace572f2b8861f4d504d978cb0989b6697 100644 --- a/keyboards/keychron/common/keychron_common.c +++ b/keyboards/keychron/common/keychron_common.c @@ -14,8 +14,8 @@ * along with this program. If not, see . */ -#include QMK_KEYBOARD_H #include "keychron_common.h" +#include "sync_timer.h" bool is_siri_active = false; uint32_t siri_timer = 0; diff --git a/keyboards/keychron/common/keychron_common.h b/keyboards/keychron/common/keychron_common.h index 5e56a828c82ecf22d30cb45c03f4495d8f7f5784..648a5d3371a7ead24605b433c98747f0931ccd17 100644 --- a/keyboards/keychron/common/keychron_common.h +++ b/keyboards/keychron/common/keychron_common.h @@ -16,10 +16,14 @@ #pragma once -#include "stdint.h" +#include +#include +#include "action.h" + #ifdef VIA_ENABLE # include "via.h" #endif + #include "quantum_keycodes.h" enum custom_keycodes { diff --git a/keyboards/lily58/lib/layer_state_reader.c b/keyboards/lily58/lib/layer_state_reader.c index 68516c8df2874489f5657587e84e6841aab3f9e1..ffc2c4e2c679901013a04f69e4e58a00fae7c52c 100644 --- a/keyboards/lily58/lib/layer_state_reader.c +++ b/keyboards/lily58/lib/layer_state_reader.c @@ -1,5 +1,4 @@ - -#include QMK_KEYBOARD_H +#include "quantum.h" #include #define L_BASE 0 diff --git a/keyboards/lily58/lib/rgb_state_reader.c b/keyboards/lily58/lib/rgb_state_reader.c index e0efe2e5288f1c3a4cec3a844dd5ae8bd7a8a8cd..3d74fb45e4e3550f1369adcd569b3434f1b1c84c 100644 --- a/keyboards/lily58/lib/rgb_state_reader.c +++ b/keyboards/lily58/lib/rgb_state_reader.c @@ -1,6 +1,5 @@ #ifdef RGBLIGHT_ENABLE -#include QMK_KEYBOARD_H #include extern rgblight_config_t rgblight_config; diff --git a/keyboards/marksard/rhymestone/common/oled_helper.c b/keyboards/marksard/rhymestone/common/oled_helper.c index 354c1fb896698815a6e162bbf7ce1080a76445a2..613798c941e2334a2e54001057a19d08781650fd 100644 --- a/keyboards/marksard/rhymestone/common/oled_helper.c +++ b/keyboards/marksard/rhymestone/common/oled_helper.c @@ -1,8 +1,10 @@ -#ifdef OLED_ENABLE -#include QMK_KEYBOARD_H +#include "oled_helper.h" +#include "quantum.h" #include #include +#ifdef OLED_ENABLE + void render_logo(void) { static const char PROGMEM logo_buf[]={ diff --git a/keyboards/marksard/rhymestone/common/oled_helper.h b/keyboards/marksard/rhymestone/common/oled_helper.h index dc9a938f6c02a97878f3fabf914bd2cc0f5491b6..34bacc6a8987d70339fd72ba0aa16a70fc85c2fb 100644 --- a/keyboards/marksard/rhymestone/common/oled_helper.h +++ b/keyboards/marksard/rhymestone/common/oled_helper.h @@ -1,3 +1,6 @@ +#include +#include "action.h" + #ifdef OLED_ENABLE void render_logo(void); diff --git a/keyboards/marksard/treadstone48/common/oled_helper.c b/keyboards/marksard/treadstone48/common/oled_helper.c index 68adbe83a80e95dc8a83ffc5af010d753418137b..c3c8f23cbc515ae7f10b659b899e772c5885ff49 100644 --- a/keyboards/marksard/treadstone48/common/oled_helper.c +++ b/keyboards/marksard/treadstone48/common/oled_helper.c @@ -1,8 +1,10 @@ -#ifdef OLED_ENABLE -#include QMK_KEYBOARD_H +#include "oled_helper.h" +#include "quantum.h" #include #include +#ifdef OLED_ENABLE + void render_logo(void) { const char logo_buf[]={ diff --git a/keyboards/marksard/treadstone48/common/oled_helper.h b/keyboards/marksard/treadstone48/common/oled_helper.h index 56c2a5b2367afcc231b6b08fa239326e73916792..82c1feba4a3513a8d60522d680ce23e9a83767dc 100644 --- a/keyboards/marksard/treadstone48/common/oled_helper.h +++ b/keyboards/marksard/treadstone48/common/oled_helper.h @@ -1,5 +1,8 @@ #ifdef OLED_ENABLE +#include +#include "action.h" + void render_logo(void); void update_key_status(uint16_t keycode, keyrecord_t *record); void render_key_status(void); diff --git a/keyboards/mk65/mk65.c b/keyboards/mk65/mk65.c index 8afb0ac4154df424ed7ff77a4da096fbc3e36f0c..b05174eacdc3ebe5a46c9b8abe24e15a6f063ad2 100644 --- a/keyboards/mk65/mk65.c +++ b/keyboards/mk65/mk65.c @@ -14,7 +14,7 @@ * along with this program. If not, see . */ -#include QMK_KEYBOARD_H +#include "quantum.h" #ifdef ENCODER_ENABLE bool encoder_update_kb(uint8_t index, bool clockwise) { diff --git a/keyboards/mxss/mxss.c b/keyboards/mxss/mxss.c index 21beee232ce766da1dba1aecb12d91dbfb487783..3bd3e639c979aa43b23a9403695093376f919361 100644 --- a/keyboards/mxss/mxss.c +++ b/keyboards/mxss/mxss.c @@ -16,7 +16,7 @@ * EEPROM management code from ../cannonkeys/stm32f072/keyboard.c */ -#include QMK_KEYBOARD_H +#include "mxss.h" #include "eeprom.h" #include "action_layer.h" #include "rgblight.h" diff --git a/keyboards/nack/nack.c b/keyboards/nack/nack.c index 8433e551c481dffc85e74d79e88eba97689417f7..8f91ee3757975d566aa0c5967e7da95a9f6932ff 100644 --- a/keyboards/nack/nack.c +++ b/keyboards/nack/nack.c @@ -14,7 +14,7 @@ * along with this program. If not, see . */ -#include QMK_KEYBOARD_H +#include "nack.h" #ifdef RGB_MATRIX_ENABLE led_config_t g_led_config = { { diff --git a/keyboards/nullbitsco/nibble/nibble.c b/keyboards/nullbitsco/nibble/nibble.c index 8f462080f0fb35046441045a20066d554c71aa22..388d546a7ea2cb84a44f7146a8255ad7cc9ea360 100644 --- a/keyboards/nullbitsco/nibble/nibble.c +++ b/keyboards/nullbitsco/nibble/nibble.c @@ -13,7 +13,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -#include QMK_KEYBOARD_H +#include "nibble.h" // Use Bit-C LED to show CAPS LOCK status void led_update_ports(led_t led_state) { diff --git a/keyboards/nullbitsco/tidbit/tidbit.c b/keyboards/nullbitsco/tidbit/tidbit.c index fdfffaa933af3dde8b4a45938363ec70bf5cc110..356c580342eae3a62d186e2b832f38f53608c31d 100644 --- a/keyboards/nullbitsco/tidbit/tidbit.c +++ b/keyboards/nullbitsco/tidbit/tidbit.c @@ -14,7 +14,7 @@ * along with this program. If not, see . */ -#include QMK_KEYBOARD_H +#include "tidbit.h" typedef struct PACKED { uint8_t r; diff --git a/keyboards/omnikeyish/dynamic_macro.c b/keyboards/omnikeyish/dynamic_macro.c index 9dd034009941f7c754c27315455093cb55905e17..b990a09a1333a5ec8ef4c65c2f7d4e7a71f3b752 100644 --- a/keyboards/omnikeyish/dynamic_macro.c +++ b/keyboards/omnikeyish/dynamic_macro.c @@ -1,4 +1,4 @@ -#include QMK_KEYBOARD_H +#include "omnikeyish.h" #include dynamic_macro_t dynamic_macros[DYNAMIC_MACRO_COUNT]; diff --git a/keyboards/palette1202/lib/oled_helper.c b/keyboards/palette1202/lib/oled_helper.c index 5fb3cc7539c9f7a72fbbd9856b8856ed1d688545..38608e5a6c9ad1535b8d466709ee51b394a7768d 100644 --- a/keyboards/palette1202/lib/oled_helper.c +++ b/keyboards/palette1202/lib/oled_helper.c @@ -1,8 +1,10 @@ -#ifdef OLED_ENABLE -#include QMK_KEYBOARD_H +#include "oled_helper.h" +#include "quantum.h" #include #include +#ifdef OLED_ENABLE + // returns character cord of the logo by line number char *read_logo(int row) { static char logoLines[][18] = { diff --git a/keyboards/ploopyco/mouse/mouse.c b/keyboards/ploopyco/mouse/mouse.c index 275c02214e909b40219fa1b5f5d03c37c203f3db..e2dada4a155507179ded353d245045ee593eb432 100644 --- a/keyboards/ploopyco/mouse/mouse.c +++ b/keyboards/ploopyco/mouse/mouse.c @@ -16,7 +16,7 @@ * along with this program. If not, see . */ -#include QMK_KEYBOARD_H +#include "mouse.h" #ifndef OPT_DEBOUNCE # define OPT_DEBOUNCE 5 // (ms) Time between scroll events diff --git a/keyboards/rubi/lib/oled.c b/keyboards/rubi/lib/oled.c index 9534cdd9b79b0b98c88e80b972c6f151b17596a7..9297cddf0e86e994bd7d11780a37bd79282b26ff 100644 --- a/keyboards/rubi/lib/oled.c +++ b/keyboards/rubi/lib/oled.c @@ -15,8 +15,8 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#include QMK_KEYBOARD_H -#include "./lib/oled.h" +#include "oled.h" +#include "rubi.h" bool process_record_user_oled(uint16_t keycode, keyrecord_t *record) { return process_record_user(keycode, record); diff --git a/keyboards/rubi/lib/oled.h b/keyboards/rubi/lib/oled.h index 1737541c96c0286549e4e674dd20141981f62438..8af48c667bce9826a2bb5824e4fcc94ea93c52b4 100644 --- a/keyboards/rubi/lib/oled.h +++ b/keyboards/rubi/lib/oled.h @@ -17,6 +17,10 @@ along with this program. If not, see . #pragma once +#include +#include +#include "progmem.h" + #define OLED_FRAME_TIMEOUT (1000 / 30) // 30 fps #define OLED_LOGO_TIMEOUT 3000 // 3 sec diff --git a/keyboards/rura66/rev1/oled_display.c b/keyboards/rura66/rev1/oled_display.c index 137fd188c70863d0910e723909a72f9bb80bae61..d2e3422bf9eed565eb0c7a064f30314d6c01e8e5 100644 --- a/keyboards/rura66/rev1/oled_display.c +++ b/keyboards/rura66/rev1/oled_display.c @@ -14,7 +14,7 @@ * along with this program. If not, see . */ -#include QMK_KEYBOARD_H +#include "rev1.h" // Defines names for use in layer keycodes and the keymap enum layer_names { diff --git a/keyboards/splitkb/aurora/corne/rev1/rev1.c b/keyboards/splitkb/aurora/corne/rev1/rev1.c index 1fdbbf93f184067ac243447f88e8b0746cfbbb9f..31ea13fb53e4ca921baecbfb74fe1510bb91ebf3 100644 --- a/keyboards/splitkb/aurora/corne/rev1/rev1.c +++ b/keyboards/splitkb/aurora/corne/rev1/rev1.c @@ -14,7 +14,7 @@ * along with this program. If not, see . */ -#include QMK_KEYBOARD_H +#include "quantum.h" #ifdef SWAP_HANDS_ENABLE // clang-format off diff --git a/keyboards/splitkb/aurora/lily58/rev1/rev1.c b/keyboards/splitkb/aurora/lily58/rev1/rev1.c index d6f0a1153b77d2250fb12642294735902d5efb8c..34de643c1d736cc4b50d2bb06b574ac001829f38 100644 --- a/keyboards/splitkb/aurora/lily58/rev1/rev1.c +++ b/keyboards/splitkb/aurora/lily58/rev1/rev1.c @@ -14,7 +14,7 @@ * along with this program. If not, see . */ -#include QMK_KEYBOARD_H +#include "quantum.h" #ifdef SWAP_HANDS_ENABLE // clang-format off diff --git a/keyboards/splitkb/aurora/sweep/rev1/rev1.c b/keyboards/splitkb/aurora/sweep/rev1/rev1.c index 43c2d12a6758582b52bc6ac5e7f09129a125ce10..a6b1a6796d788d39f5cadba9cc1788bf77a79a42 100644 --- a/keyboards/splitkb/aurora/sweep/rev1/rev1.c +++ b/keyboards/splitkb/aurora/sweep/rev1/rev1.c @@ -14,7 +14,7 @@ * along with this program. If not, see . */ -#include QMK_KEYBOARD_H +#include "quantum.h" #ifdef SWAP_HANDS_ENABLE // clang-format off diff --git a/keyboards/teleport/native/ansi/ansi.c b/keyboards/teleport/native/ansi/ansi.c index 8b243d8a07b3bff1c8bca61a431a139fdcd30515..9c4ea99f40fd1f6820a67110c407668d1056bbe5 100644 --- a/keyboards/teleport/native/ansi/ansi.c +++ b/keyboards/teleport/native/ansi/ansi.c @@ -14,7 +14,7 @@ * along with this program. If not, see . */ -#include QMK_KEYBOARD_H +#include "quantum.h" #ifdef RGB_MATRIX_ENABLE led_config_t g_led_config = { { diff --git a/keyboards/teleport/native/iso/iso.c b/keyboards/teleport/native/iso/iso.c index f3bfbfb3a195dec6266e91287be5547ab9993bfd..5acbffe8f995d983e133189653122f0466d83915 100644 --- a/keyboards/teleport/native/iso/iso.c +++ b/keyboards/teleport/native/iso/iso.c @@ -14,7 +14,7 @@ * along with this program. If not, see . */ -#include QMK_KEYBOARD_H +#include "quantum.h" #ifdef RGB_MATRIX_ENABLE led_config_t g_led_config = { { diff --git a/keyboards/torn/bongocat.c b/keyboards/torn/bongocat.c index 9d6d9a85f5a7d208901d13085a3773bd3c7f7ed9..8ca5e512f84affb0e1cc10d09c791221e79ca291 100644 --- a/keyboards/torn/bongocat.c +++ b/keyboards/torn/bongocat.c @@ -14,7 +14,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -#include QMK_KEYBOARD_H +#include "torn.h" #ifdef OLED_ENABLE diff --git a/keyboards/torn/matrix.c b/keyboards/torn/matrix.c index dd7fa1e2e1c3f32868cac05705010f94a7741698..b674f21d57fdf182750ad14bac69efab65c29db5 100644 --- a/keyboards/torn/matrix.c +++ b/keyboards/torn/matrix.c @@ -16,7 +16,7 @@ * along with this program. If not, see . */ -#include QMK_KEYBOARD_H +#include "matrix.h" #include "mcp23018.h" #define SPLIT_MATRIX_COLS (MATRIX_COLS / 2) diff --git a/keyboards/torn/mcp23018.c b/keyboards/torn/mcp23018.c index c180f1dae5a3b65317dcea1150dd0a487e8fc54d..12c4f9bc7f3031588fd78d0f5856f33d0df1f064 100644 --- a/keyboards/torn/mcp23018.c +++ b/keyboards/torn/mcp23018.c @@ -16,7 +16,6 @@ * along with this program. If not, see . */ -#include QMK_KEYBOARD_H #include "i2c_master.h" #include "mcp23018.h" diff --git a/keyboards/torn/mcp23018.h b/keyboards/torn/mcp23018.h index 17ecaa5a7c3b152d7c1b0b2fb0c684d5b1e9c4b1..af5dbc7b257cc51ba608bf0416c4307b9b8de59e 100644 --- a/keyboards/torn/mcp23018.h +++ b/keyboards/torn/mcp23018.h @@ -17,6 +17,9 @@ #pragma once +#include +#include + #define IODIRA 0x00 #define IODIRB 0x01 #define GPPUA 0x0C diff --git a/keyboards/tzarc/djinn/graphics/theme_djinn_default.c b/keyboards/tzarc/djinn/graphics/theme_djinn_default.c index c9863f2285acc6a7544c71434f188a2e2d85d55d..f321308ac5d9a1599db83e838de10ce59d51cb41 100644 --- a/keyboards/tzarc/djinn/graphics/theme_djinn_default.c +++ b/keyboards/tzarc/djinn/graphics/theme_djinn_default.c @@ -1,6 +1,5 @@ // Copyright 2018-2022 Nick Brassel (@tzarc) // SPDX-License-Identifier: GPL-2.0-or-later -#include QMK_KEYBOARD_H #include #include #include diff --git a/keyboards/tzarc/ghoul/ghoul.c b/keyboards/tzarc/ghoul/ghoul.c index aceb24764bd4a6f94b9bb6a91792ee2f78c2aeca..a97399110c26c15b2837592fdcba79f99c818199 100644 --- a/keyboards/tzarc/ghoul/ghoul.c +++ b/keyboards/tzarc/ghoul/ghoul.c @@ -1,6 +1,6 @@ // Copyright 2018-2022 Nick Brassel (@tzarc) // SPDX-License-Identifier: GPL-3.0-or-later -#include QMK_KEYBOARD_H +#include "quantum.h" #include "analog.h" #include "spi_master.h" diff --git a/keyboards/work_louder/micro/matrix.c b/keyboards/work_louder/micro/matrix.c index d2ae16ad9c252386b3317131b4976353c3dc70bd..743c788662cb3984b3f40d91e34d517cc55babec 100644 --- a/keyboards/work_louder/micro/matrix.c +++ b/keyboards/work_louder/micro/matrix.c @@ -4,16 +4,13 @@ /* * scan matrix */ -#include -#include -#include +#include "matrix.h" +#include +#include "atomic_util.h" #include "wait.h" -#include "print.h" #include "debug.h" #include "util.h" -#include "matrix.h" #include "debounce.h" -#include QMK_KEYBOARD_H /* matrix state(1:on, 0:off) */ extern matrix_row_t matrix[MATRIX_ROWS]; // debounced values diff --git a/keyboards/work_louder/micro/micro.c b/keyboards/work_louder/micro/micro.c index 42bc2db5298074a2d0cf33369fa0ce88de3c6a30..d845a62250cd6a51358f95490e75767ba7cf5298 100644 --- a/keyboards/work_louder/micro/micro.c +++ b/keyboards/work_louder/micro/micro.c @@ -1,7 +1,7 @@ // Copyright 2022 Christopher Courtney, aka Drashna Jael're (@drashna) // SPDX-License-Identifier: GPL-2.0-or-later -#include QMK_KEYBOARD_H +#include "micro.h" #if defined(RGB_MATRIX_ENABLE) // clang-format off diff --git a/keyboards/work_louder/rgb_functions.c b/keyboards/work_louder/rgb_functions.c index d0cb93ccbcffe72403c13c43df08d7c23cca236b..cde435134a2c2ded472ffe5817777aed0374a032 100644 --- a/keyboards/work_louder/rgb_functions.c +++ b/keyboards/work_louder/rgb_functions.c @@ -14,7 +14,6 @@ * along with this program. If not, see . */ -#include QMK_KEYBOARD_H #include "rgb_functions.h" #ifdef RGBLIGHT_ENABLE diff --git a/keyboards/yosino58/lib/layer_state_reader.c b/keyboards/yosino58/lib/layer_state_reader.c index 2dec336b866930030a1e3ab08a0b6e242e7b10c9..f9cd9345685acc5df1364841ce56f2f4bcd06928 100644 --- a/keyboards/yosino58/lib/layer_state_reader.c +++ b/keyboards/yosino58/lib/layer_state_reader.c @@ -1,5 +1,5 @@ -#include QMK_KEYBOARD_H +#include "quantum.h" #include #define L_BASE 0 diff --git a/keyboards/yosino58/lib/rgb_state_reader.c b/keyboards/yosino58/lib/rgb_state_reader.c index e0efe2e5288f1c3a4cec3a844dd5ae8bd7a8a8cd..daa008d84998e7092e820508cb1487dbf2d3d5de 100644 --- a/keyboards/yosino58/lib/rgb_state_reader.c +++ b/keyboards/yosino58/lib/rgb_state_reader.c @@ -1,6 +1,6 @@ #ifdef RGBLIGHT_ENABLE -#include QMK_KEYBOARD_H +#include "quantum.h" #include extern rgblight_config_t rgblight_config; diff --git a/keyboards/yushakobo/navpad/navpad_prefs.c b/keyboards/yushakobo/navpad/navpad_prefs.c index fd2a7b07895027a1d69ba78bddf089dac07c3234..1ffd441674408ea2b5e86ad864f701438c53dddd 100644 --- a/keyboards/yushakobo/navpad/navpad_prefs.c +++ b/keyboards/yushakobo/navpad/navpad_prefs.c @@ -14,7 +14,7 @@ * along with this program. If not, see . */ -#include QMK_KEYBOARD_H +#include "navpad_prefs.h" bool process_record_kb(uint16_t keycode, keyrecord_t *record) { if (!process_record_user(keycode, record)) { return false; } diff --git a/keyboards/yushakobo/quick17/quick17_prefs.c b/keyboards/yushakobo/quick17/quick17_prefs.c index 1a546f4e35414fe7f637f11a6632cf4166d95b76..bf58f674118b56fc47e4b772d3dd906766828d16 100644 --- a/keyboards/yushakobo/quick17/quick17_prefs.c +++ b/keyboards/yushakobo/quick17/quick17_prefs.c @@ -14,7 +14,7 @@ * along with this program. If not, see . */ -#include QMK_KEYBOARD_H +#include "quick17_prefs.h" bool _INPUT_JP; diff --git a/keyboards/yushakobo/quick17/quick17_prefs.h b/keyboards/yushakobo/quick17/quick17_prefs.h index 4d81d163b99b5a8e73340b35fd36fc35e06d2506..a6096f0f268696f4c812336f233fa88040c43b96 100644 --- a/keyboards/yushakobo/quick17/quick17_prefs.h +++ b/keyboards/yushakobo/quick17/quick17_prefs.h @@ -14,6 +14,8 @@ * along with this program. If not, see . */ +#include "quantum.h" + enum layer_names { _CONTROL, _EDIT1,