diff options
| author | Ryan <fauxpark@gmail.com> | 2023-03-20 08:12:05 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-20 08:12:05 +1100 |
| commit | 3c144fac5e2b634166f6b9cc0fc45029d63d3398 (patch) | |
| tree | c3e408ca9fa27721c19f4fc0ba8b4119798e5dd2 | |
| parent | 9d302f9b7fa7fc88766de322a52d1a1be38e723c (diff) | |
Clean up usage of `QMK_KEYBOARD_H` (#20167)
74 files changed, 132 insertions, 189 deletions
diff --git a/keyboards/25keys/cassette42/common/oled_helper.c b/keyboards/25keys/cassette42/common/oled_helper.c index 8800699a85..1c4148a7d9 100644 --- a/keyboards/25keys/cassette42/common/oled_helper.c +++ b/keyboards/25keys/cassette42/common/oled_helper.c | |||
| @@ -1,7 +1,9 @@ | |||
| 1 | #include "oled_helper.h" | ||
| 2 | #include "quantum.h" | ||
| 3 | #include <stdio.h> | ||
| 4 | #include <string.h> | ||
| 5 | |||
| 1 | #ifdef OLED_ENABLE | 6 | #ifdef OLED_ENABLE |
| 2 | # include QMK_KEYBOARD_H | ||
| 3 | # include <stdio.h> | ||
| 4 | # include <string.h> | ||
| 5 | 7 | ||
| 6 | void render_logo(void) { | 8 | void render_logo(void) { |
| 7 | 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}; | 9 | 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 ae2f96bfa1..8bb6c77aaa 100644 --- a/keyboards/3w6/rev1/matrix.c +++ b/keyboards/3w6/rev1/matrix.c | |||
| @@ -24,7 +24,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 24 | * to repeating that information all over the place. | 24 | * to repeating that information all over the place. |
| 25 | */ | 25 | */ |
| 26 | 26 | ||
| 27 | #include QMK_KEYBOARD_H | 27 | #include "matrix.h" |
| 28 | #include "debug.h" | ||
| 29 | #include "wait.h" | ||
| 28 | #include "i2c_master.h" | 30 | #include "i2c_master.h" |
| 29 | 31 | ||
| 30 | extern i2c_status_t tca9555_status; | 32 | extern i2c_status_t tca9555_status; |
diff --git a/keyboards/3w6/rev2/matrix.c b/keyboards/3w6/rev2/matrix.c index c47c24e1dc..49cb09a9f8 100644 --- a/keyboards/3w6/rev2/matrix.c +++ b/keyboards/3w6/rev2/matrix.c | |||
| @@ -24,7 +24,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 24 | * to repeating that information all over the place. | 24 | * to repeating that information all over the place. |
| 25 | */ | 25 | */ |
| 26 | 26 | ||
| 27 | #include QMK_KEYBOARD_H | 27 | #include "matrix.h" |
| 28 | #include "debug.h" | ||
| 29 | #include "wait.h" | ||
| 28 | #include "i2c_master.h" | 30 | #include "i2c_master.h" |
| 29 | 31 | ||
| 30 | extern i2c_status_t tca9555_status; | 32 | extern i2c_status_t tca9555_status; |
diff --git a/keyboards/adm42/rev4/rev4.c b/keyboards/adm42/rev4/rev4.c index 2e22004f96..623b5cb5a3 100644 --- a/keyboards/adm42/rev4/rev4.c +++ b/keyboards/adm42/rev4/rev4.c | |||
| @@ -14,7 +14,7 @@ | |||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ | 15 | */ |
| 16 | 16 | ||
| 17 | #include QMK_KEYBOARD_H | 17 | #include "quantum.h" |
| 18 | 18 | ||
| 19 | led_config_t g_led_config = { | 19 | led_config_t g_led_config = { |
| 20 | { | 20 | { |
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 83d591eb0a..964d56bdfb 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 @@ | |||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ | 15 | */ |
| 16 | 16 | ||
| 17 | #include QMK_KEYBOARD_H | 17 | #include "quantum.h" |
| 18 | 18 | ||
| 19 | #ifdef OLED_ENABLE | 19 | #ifdef OLED_ENABLE |
| 20 | static void render_logo(void) { | 20 | static void render_logo(void) { |
diff --git a/keyboards/converter/palm_usb/matrix.c b/keyboards/converter/palm_usb/matrix.c index 4226dfa52c..016b562254 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 | |||
| 17 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 17 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 18 | */ | 18 | */ |
| 19 | 19 | ||
| 20 | #include QMK_KEYBOARD_H | 20 | #include "matrix.h" |
| 21 | #include "debug.h" | ||
| 22 | #include "wait.h" | ||
| 21 | #include "uart.h" | 23 | #include "uart.h" |
| 22 | #include "timer.h" | 24 | #include "timer.h" |
| 23 | 25 | ||
| @@ -134,14 +136,14 @@ uint8_t rts_reset(void) { | |||
| 134 | if (firstread) { | 136 | if (firstread) { |
| 135 | writePinLow(RTS_PIN); | 137 | writePinLow(RTS_PIN); |
| 136 | } | 138 | } |
| 137 | _delay_ms(10); | 139 | wait_ms(10); |
| 138 | writePinHigh(RTS_PIN); | 140 | writePinHigh(RTS_PIN); |
| 139 | 141 | ||
| 140 | 142 | ||
| 141 | /* the future is Arm | 143 | /* the future is Arm |
| 142 | if (!palReadPad(RTS_PIN_IOPRT)) | 144 | if (!palReadPad(RTS_PIN_IOPRT)) |
| 143 | { | 145 | { |
| 144 | _delay_ms(10); | 146 | wait_ms(10); |
| 145 | palSetPadMode(RTS_PINn_IOPORT, PinDirectionOutput_PUSHPULL); | 147 | palSetPadMode(RTS_PINn_IOPORT, PinDirectionOutput_PUSHPULL); |
| 146 | palSetPad(RTS_PORT, RTS_PIN); | 148 | palSetPad(RTS_PORT, RTS_PIN); |
| 147 | } | 149 | } |
| @@ -150,13 +152,13 @@ uint8_t rts_reset(void) { | |||
| 150 | palSetPadMode(RTS_PIN_RTS_PORT, PinDirectionOutput_PUSHPULL); | 152 | palSetPadMode(RTS_PIN_RTS_PORT, PinDirectionOutput_PUSHPULL); |
| 151 | palSetPad(RTS_PORT, RTS_PIN); | 153 | palSetPad(RTS_PORT, RTS_PIN); |
| 152 | palClearPad(RTS_PORT, RTS_PIN); | 154 | palClearPad(RTS_PORT, RTS_PIN); |
| 153 | _delay_ms(10); | 155 | wait_ms(10); |
| 154 | palSetPad(RTS_PORT, RTS_PIN); | 156 | palSetPad(RTS_PORT, RTS_PIN); |
| 155 | } | 157 | } |
| 156 | */ | 158 | */ |
| 157 | 159 | ||
| 158 | 160 | ||
| 159 | _delay_ms(5); | 161 | wait_ms(5); |
| 160 | //print("rts\n"); | 162 | //print("rts\n"); |
| 161 | return 1; | 163 | return 1; |
| 162 | } | 164 | } |
| @@ -222,7 +224,7 @@ uint8_t handspring_handshake(void) { | |||
| 222 | 224 | ||
| 223 | uint8_t handspring_reset(void) { | 225 | uint8_t handspring_reset(void) { |
| 224 | writePinLow(VCC_PIN); | 226 | writePinLow(VCC_PIN); |
| 225 | _delay_ms(5); | 227 | wait_ms(5); |
| 226 | writePinHigh(VCC_PIN); | 228 | writePinHigh(VCC_PIN); |
| 227 | 229 | ||
| 228 | if ( handspring_handshake() ) { | 230 | if ( handspring_handshake() ) { |
| @@ -257,7 +259,7 @@ void matrix_init(void) | |||
| 257 | last_activity = timer_read(); | 259 | last_activity = timer_read(); |
| 258 | } else { | 260 | } else { |
| 259 | print("failed handshake"); | 261 | print("failed handshake"); |
| 260 | _delay_ms(1000); | 262 | wait_ms(1000); |
| 261 | //BUG /should/ power cycle or toggle RTS & reset, but this usually works. | 263 | //BUG /should/ power cycle or toggle RTS & reset, but this usually works. |
| 262 | } | 264 | } |
| 263 | 265 | ||
| @@ -271,7 +273,7 @@ void matrix_init(void) | |||
| 271 | last_activity = timer_read(); | 273 | last_activity = timer_read(); |
| 272 | } else { | 274 | } else { |
| 273 | print("failed handshake"); | 275 | print("failed handshake"); |
| 274 | _delay_ms(1000); | 276 | wait_ms(1000); |
| 275 | //BUG /should/ power cycle or toggle RTS & reset, but this usually works. | 277 | //BUG /should/ power cycle or toggle RTS & reset, but this usually works. |
| 276 | } | 278 | } |
| 277 | 279 | ||
diff --git a/keyboards/converter/sun_usb/command_extra.c b/keyboards/converter/sun_usb/command_extra.c deleted file mode 100644 index b15f9dc9bd..0000000000 --- a/keyboards/converter/sun_usb/command_extra.c +++ /dev/null | |||
| @@ -1,64 +0,0 @@ | |||
| 1 | #include QMK_KEYBOARD_H | ||
| 2 | #include "uart.h" | ||
| 3 | |||
| 4 | bool sun_bell = false; | ||
| 5 | bool sun_click = false; | ||
| 6 | |||
| 7 | |||
| 8 | bool command_extra(uint8_t code) | ||
| 9 | { | ||
| 10 | switch (code) { | ||
| 11 | case KC_H: | ||
| 12 | case KC_SLASH: /* ? */ | ||
| 13 | print("\n\n----- Sun converter Help -----\n"); | ||
| 14 | print("Home: Toggle Bell\n"); | ||
| 15 | print("End: Toggle Click\n"); | ||
| 16 | print("PgUp: LED all On\n"); | ||
| 17 | print("PgDown: LED all Off\n"); | ||
| 18 | print("Insert: Layout\n"); | ||
| 19 | print("Delete: Reset\n"); | ||
| 20 | return false; | ||
| 21 | case KC_DEL: | ||
| 22 | print("Reset\n"); | ||
| 23 | uart_write(0x01); | ||
| 24 | break; | ||
| 25 | case KC_HOME: | ||
| 26 | sun_bell = !sun_bell; | ||
| 27 | if (sun_bell) { | ||
| 28 | print("Bell On\n"); | ||
| 29 | uart_write(0x02); | ||
| 30 | } else { | ||
| 31 | print("Bell Off\n"); | ||
| 32 | uart_write(0x03); | ||
| 33 | } | ||
| 34 | break; | ||
| 35 | case KC_END: | ||
| 36 | sun_click = !sun_click; | ||
| 37 | if (sun_click) { | ||
| 38 | print("Click On\n"); | ||
| 39 | uart_write(0x0A); | ||
| 40 | } else { | ||
| 41 | print("Click Off\n"); | ||
| 42 | uart_write(0x0B); | ||
| 43 | } | ||
| 44 | break; | ||
| 45 | case KC_PGUP: | ||
| 46 | print("LED all on\n"); | ||
| 47 | uart_write(0x0E); | ||
| 48 | uart_write(0xFF); | ||
| 49 | break; | ||
| 50 | case KC_PGDN: | ||
| 51 | print("LED all off\n"); | ||
| 52 | uart_write(0x0E); | ||
| 53 | uart_write(0x00); | ||
| 54 | break; | ||
| 55 | case KC_INSERT: | ||
| 56 | print("layout\n"); | ||
| 57 | uart_write(0x0F); | ||
| 58 | break; | ||
| 59 | default: | ||
| 60 | xprintf("Unknown extra command: %02X\n", code); | ||
| 61 | return false; | ||
| 62 | } | ||
| 63 | return true; | ||
| 64 | } | ||
diff --git a/keyboards/converter/sun_usb/led.c b/keyboards/converter/sun_usb/led.c index f8d183fd48..493825bac8 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 | |||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 16 | */ | 16 | */ |
| 17 | 17 | ||
| 18 | #include QMK_KEYBOARD_H | 18 | #include "led.h" |
| 19 | #include "print.h" | ||
| 19 | #include "uart.h" | 20 | #include "uart.h" |
| 20 | 21 | ||
| 21 | void led_set(uint8_t usb_led) | 22 | void led_set(uint8_t usb_led) |
diff --git a/keyboards/converter/sun_usb/matrix.c b/keyboards/converter/sun_usb/matrix.c index 9f22eca1eb..bf1d5f807f 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 | |||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 16 | */ | 16 | */ |
| 17 | 17 | ||
| 18 | #include QMK_KEYBOARD_H | 18 | #include "matrix.h" |
| 19 | #include "host.h" | ||
| 20 | #include "led.h" | ||
| 21 | #include "debug.h" | ||
| 22 | #include "wait.h" | ||
| 19 | #include "uart.h" | 23 | #include "uart.h" |
| 20 | 24 | ||
| 21 | /* | 25 | /* |
| @@ -86,9 +90,9 @@ void matrix_init(void) | |||
| 86 | /* print("."); */ | 90 | /* print("."); */ |
| 87 | /* while (uart_read()); */ | 91 | /* while (uart_read()); */ |
| 88 | /* uart_write(0x01); */ | 92 | /* uart_write(0x01); */ |
| 89 | /* _delay_ms(500); */ | 93 | /* wait_ms(500); */ |
| 90 | /* if (uart_read() == 0xFF) { */ | 94 | /* if (uart_read() == 0xFF) { */ |
| 91 | /* _delay_ms(500); */ | 95 | /* wait_ms(500); */ |
| 92 | /* if (uart_read() == 0x04) */ | 96 | /* if (uart_read() == 0x04) */ |
| 93 | /* break; */ | 97 | /* break; */ |
| 94 | /* } */ | 98 | /* } */ |
| @@ -112,7 +116,7 @@ uint8_t matrix_scan(void) | |||
| 112 | switch (code) { | 116 | switch (code) { |
| 113 | case 0xFF: // reset success: FF 04 | 117 | case 0xFF: // reset success: FF 04 |
| 114 | print("reset: "); | 118 | print("reset: "); |
| 115 | _delay_ms(500); | 119 | wait_ms(500); |
| 116 | code = uart_read(); | 120 | code = uart_read(); |
| 117 | xprintf("%02X\n", code); | 121 | xprintf("%02X\n", code); |
| 118 | if (code == 0x04) { | 122 | if (code == 0x04) { |
| @@ -122,12 +126,12 @@ uint8_t matrix_scan(void) | |||
| 122 | return 0; | 126 | return 0; |
| 123 | case 0xFE: // layout: FE <layout> | 127 | case 0xFE: // layout: FE <layout> |
| 124 | print("layout: "); | 128 | print("layout: "); |
| 125 | _delay_ms(500); | 129 | wait_ms(500); |
| 126 | xprintf("%02X\n", uart_read()); | 130 | xprintf("%02X\n", uart_read()); |
| 127 | return 0; | 131 | return 0; |
| 128 | case 0x7E: // reset fail: 7E 01 | 132 | case 0x7E: // reset fail: 7E 01 |
| 129 | print("reset fail: "); | 133 | print("reset fail: "); |
| 130 | _delay_ms(500); | 134 | wait_ms(500); |
| 131 | xprintf("%02X\n", uart_read()); | 135 | xprintf("%02X\n", uart_read()); |
| 132 | return 0; | 136 | return 0; |
| 133 | case 0x7F: | 137 | case 0x7F: |
diff --git a/keyboards/converter/xmk/xmk.c b/keyboards/converter/xmk/xmk.c index a0426e95dc..e0df96fc2d 100644 --- a/keyboards/converter/xmk/xmk.c +++ b/keyboards/converter/xmk/xmk.c | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | 3 | ||
| 4 | // SPDX-License-Identifier: GPL-2.0-or-later | 4 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 5 | 5 | ||
| 6 | #include QMK_KEYBOARD_H | 6 | #include "quantum.h" |
| 7 | 7 | ||
| 8 | #if defined (XMK_DEBUG) | 8 | #if defined (XMK_DEBUG) |
| 9 | void keyboard_post_init_kb(void) { | 9 | void keyboard_post_init_kb(void) { |
diff --git a/keyboards/converter/xmk/xmk_matrix.c b/keyboards/converter/xmk/xmk_matrix.c index 7327ad5cfe..41eca9fe46 100644 --- a/keyboards/converter/xmk/xmk_matrix.c +++ b/keyboards/converter/xmk/xmk_matrix.c | |||
| @@ -4,6 +4,8 @@ | |||
| 4 | // SPDX-License-Identifier: GPL-2.0-or-later | 4 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 5 | 5 | ||
| 6 | #include "xmk_matrix.h" | 6 | #include "xmk_matrix.h" |
| 7 | #include "matrix.h" | ||
| 8 | #include "debug.h" | ||
| 7 | 9 | ||
| 8 | bool xmk_changed = false; | 10 | bool xmk_changed = false; |
| 9 | matrix_row_t xmk_rows[MATRIX_ROWS]; | 11 | matrix_row_t xmk_rows[MATRIX_ROWS]; |
diff --git a/keyboards/converter/xmk/xmk_matrix.h b/keyboards/converter/xmk/xmk_matrix.h index 45514dea04..2a988253f9 100644 --- a/keyboards/converter/xmk/xmk_matrix.h +++ b/keyboards/converter/xmk/xmk_matrix.h | |||
| @@ -5,6 +5,7 @@ | |||
| 5 | 5 | ||
| 6 | #pragma once | 6 | #pragma once |
| 7 | 7 | ||
| 8 | #include QMK_KEYBOARD_H | 8 | #include <stdbool.h> |
| 9 | #include <stdint.h> | ||
| 9 | 10 | ||
| 10 | void xmk_matrix_key(bool press, uint8_t key); | 11 | 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 601fd71958..7dd1702485 100644 --- a/keyboards/crkbd/lib/layer_state_reader.c +++ b/keyboards/crkbd/lib/layer_state_reader.c | |||
| @@ -1,7 +1,5 @@ | |||
| 1 | 1 | #include "quantum.h" | |
| 2 | #include QMK_KEYBOARD_H | ||
| 3 | #include <stdio.h> | 2 | #include <stdio.h> |
| 4 | #include "crkbd.h" | ||
| 5 | 3 | ||
| 6 | // in the future, should use (1U<<_LAYER_NAME) instead, but needs to be moved to keymap,c | 4 | // in the future, should use (1U<<_LAYER_NAME) instead, but needs to be moved to keymap,c |
| 7 | #define L_BASE 0 | 5 | #define L_BASE 0 |
diff --git a/keyboards/crkbd/lib/rgb_state_reader.c b/keyboards/crkbd/lib/rgb_state_reader.c index e0efe2e528..3d74fb45e4 100644 --- a/keyboards/crkbd/lib/rgb_state_reader.c +++ b/keyboards/crkbd/lib/rgb_state_reader.c | |||
| @@ -1,6 +1,5 @@ | |||
| 1 | #ifdef RGBLIGHT_ENABLE | 1 | #ifdef RGBLIGHT_ENABLE |
| 2 | 2 | ||
| 3 | #include QMK_KEYBOARD_H | ||
| 4 | #include <stdio.h> | 3 | #include <stdio.h> |
| 5 | 4 | ||
| 6 | extern rgblight_config_t rgblight_config; | 5 | extern rgblight_config_t rgblight_config; |
diff --git a/keyboards/cxt_studio/cxt_studio.c b/keyboards/cxt_studio/cxt_studio.c index 2e7622ff91..2b36905340 100644 --- a/keyboards/cxt_studio/cxt_studio.c +++ b/keyboards/cxt_studio/cxt_studio.c | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | // Copyright 2023 Colin Kinloch (@ColinKinloch) | 1 | // Copyright 2023 Colin Kinloch (@ColinKinloch) |
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | 2 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | 3 | ||
| 4 | #include QMK_KEYBOARD_H | 4 | #include "quantum.h" |
| 5 | 5 | ||
| 6 | static uint8_t anim = 0; | 6 | static uint8_t anim = 0; |
| 7 | 7 | ||
diff --git a/keyboards/ergodox_stm32/ergodox_stm32.c b/keyboards/ergodox_stm32/ergodox_stm32.c index 8419b40f41..2a919506dc 100644 --- a/keyboards/ergodox_stm32/ergodox_stm32.c +++ b/keyboards/ergodox_stm32/ergodox_stm32.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | #include "ergodox_stm32.h" | ||
| 1 | #include "i2c_master.h" | 2 | #include "i2c_master.h" |
| 2 | #include QMK_KEYBOARD_H | ||
| 3 | 3 | ||
| 4 | extern inline void ergodox_board_led_1_on(void); | 4 | extern inline void ergodox_board_led_1_on(void); |
| 5 | extern inline void ergodox_board_led_2_on(void); | 5 | extern inline void ergodox_board_led_2_on(void); |
diff --git a/keyboards/ergodox_stm32/matrix.c b/keyboards/ergodox_stm32/matrix.c index 2046e39c1f..3eb35cd7bb 100644 --- a/keyboards/ergodox_stm32/matrix.c +++ b/keyboards/ergodox_stm32/matrix.c | |||
| @@ -1,13 +1,10 @@ | |||
| 1 | #include <stdint.h> | 1 | #include "matrix.h" |
| 2 | #include <stdbool.h> | ||
| 3 | #include <string.h> | 2 | #include <string.h> |
| 4 | #include <hal.h> | ||
| 5 | #include "timer.h" | 3 | #include "timer.h" |
| 6 | #include "wait.h" | 4 | #include "wait.h" |
| 7 | #include "print.h" | 5 | #include "debug.h" |
| 8 | #include "matrix.h" | ||
| 9 | #include "i2c_master.h" | 6 | #include "i2c_master.h" |
| 10 | #include QMK_KEYBOARD_H | 7 | #include "ergodox_stm32.h" |
| 11 | 8 | ||
| 12 | #ifndef DEBOUNCE | 9 | #ifndef DEBOUNCE |
| 13 | #define DEBOUNCE 10 | 10 | #define DEBOUNCE 10 |
diff --git a/keyboards/fc980c/matrix.c b/keyboards/fc980c/matrix.c index f5c3ec08c7..6ea605600d 100644 --- a/keyboards/fc980c/matrix.c +++ b/keyboards/fc980c/matrix.c | |||
| @@ -29,8 +29,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 29 | #include "matrix.h" | 29 | #include "matrix.h" |
| 30 | #include "led.h" | 30 | #include "led.h" |
| 31 | #include "avr/timer_avr.h" | 31 | #include "avr/timer_avr.h" |
| 32 | // #include QMK_KEYBOARD_H | ||
| 33 | |||
| 34 | 32 | ||
| 35 | // Timer resolution check | 33 | // Timer resolution check |
| 36 | #if (1000000/TIMER_RAW_FREQ > 20) | 34 | #if (1000000/TIMER_RAW_FREQ > 20) |
diff --git a/keyboards/ferris/0_1/matrix.c b/keyboards/ferris/0_1/matrix.c index 0dfb150b6c..154a275d7a 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 <http://www.gnu.org/licenses/>. | |||
| 23 | * to repeating that information all over the place. | 23 | * to repeating that information all over the place. |
| 24 | */ | 24 | */ |
| 25 | 25 | ||
| 26 | #include QMK_KEYBOARD_H | 26 | #include "matrix.h" |
| 27 | #include "debug.h" | ||
| 28 | #include "wait.h" | ||
| 27 | #include "i2c_master.h" | 29 | #include "i2c_master.h" |
| 28 | 30 | ||
| 29 | extern i2c_status_t mcp23017_status; | 31 | extern i2c_status_t mcp23017_status; |
diff --git a/keyboards/ferris/0_2/matrix.c b/keyboards/ferris/0_2/matrix.c index ff0e66d65c..af4b045eb8 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 <http://www.gnu.org/licenses/>. | |||
| 23 | * to repeating that information all over the place. | 23 | * to repeating that information all over the place. |
| 24 | */ | 24 | */ |
| 25 | 25 | ||
| 26 | #include QMK_KEYBOARD_H | 26 | #include "matrix.h" |
| 27 | #include "debug.h" | ||
| 28 | #include "wait.h" | ||
| 27 | #include "i2c_master.h" | 29 | #include "i2c_master.h" |
| 28 | #include <print.h> | ||
| 29 | 30 | ||
| 30 | extern i2c_status_t mcp23017_status; | 31 | extern i2c_status_t mcp23017_status; |
| 31 | #define MCP23017_I2C_TIMEOUT 1000 | 32 | #define MCP23017_I2C_TIMEOUT 1000 |
diff --git a/keyboards/gboards/butterstick/sten.h b/keyboards/gboards/butterstick/sten.h index 84c54c9e2e..39740ac3d3 100644 --- a/keyboards/gboards/butterstick/sten.h +++ b/keyboards/gboards/butterstick/sten.h | |||
| @@ -7,7 +7,7 @@ | |||
| 7 | 7 | ||
| 8 | #pragma once | 8 | #pragma once |
| 9 | 9 | ||
| 10 | #include QMK_KEYBOARD_H | 10 | #include "butterstick.h" |
| 11 | #include "mousekey.h" | 11 | #include "mousekey.h" |
| 12 | #include "keymap_steno.h" | 12 | #include "keymap_steno.h" |
| 13 | #include "wait.h" | 13 | #include "wait.h" |
diff --git a/keyboards/gboards/engine/engine.h b/keyboards/gboards/engine/engine.h index 5b2da811d8..005dd730b8 100644 --- a/keyboards/gboards/engine/engine.h +++ b/keyboards/gboards/engine/engine.h | |||
| @@ -11,13 +11,11 @@ | |||
| 11 | */ | 11 | */ |
| 12 | 12 | ||
| 13 | #pragma once | 13 | #pragma once |
| 14 | #include QMK_KEYBOARD_H | 14 | |
| 15 | #include "quantum.h" | ||
| 15 | #include <string.h> | 16 | #include <string.h> |
| 16 | #include <stdint.h> | ||
| 17 | #include <stdio.h> | 17 | #include <stdio.h> |
| 18 | #include "config_engine.h" | 18 | #include "config_engine.h" |
| 19 | #include <avr/pgmspace.h> | ||
| 20 | #include "wait.h" | ||
| 21 | 19 | ||
| 22 | // Maximum values for combos | 20 | // Maximum values for combos |
| 23 | #define COMBO_END 0x00 | 21 | #define COMBO_END 0x00 |
diff --git a/keyboards/gboards/ergotaco/ergotaco.c b/keyboards/gboards/ergotaco/ergotaco.c index ecab74b3a2..daeba1e0a6 100644 --- a/keyboards/gboards/ergotaco/ergotaco.c +++ b/keyboards/gboards/ergotaco/ergotaco.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | #include QMK_KEYBOARD_H | 1 | #include "ergotaco.h" |
| 2 | 2 | ||
| 3 | bool i2c_initialized = 0; | 3 | bool i2c_initialized = 0; |
| 4 | i2c_status_t mcp23018_status = 0x20; | 4 | i2c_status_t mcp23018_status = 0x20; |
diff --git a/keyboards/gboards/ergotaco/matrix.c b/keyboards/gboards/ergotaco/matrix.c index 1bab5e8981..63d4c4f5f3 100644 --- a/keyboards/gboards/ergotaco/matrix.c +++ b/keyboards/gboards/ergotaco/matrix.c | |||
| @@ -17,15 +17,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 17 | */ | 17 | */ |
| 18 | 18 | ||
| 19 | #include "matrix.h" | 19 | #include "matrix.h" |
| 20 | #include <stdint.h> | ||
| 21 | #include <stdbool.h> | ||
| 22 | #include <avr/io.h> | ||
| 23 | #include "wait.h" | 20 | #include "wait.h" |
| 24 | #include "action_layer.h" | ||
| 25 | #include "print.h" | ||
| 26 | #include "debug.h" | 21 | #include "debug.h" |
| 27 | #include "util.h" | 22 | #include "util.h" |
| 28 | #include QMK_KEYBOARD_H | 23 | #include "ergotaco.h" |
| 29 | 24 | ||
| 30 | #ifndef DEBOUNCE | 25 | #ifndef DEBOUNCE |
| 31 | # define DEBOUNCE 5 | 26 | # define DEBOUNCE 5 |
diff --git a/keyboards/gboards/g/engine.h b/keyboards/gboards/g/engine.h index e166ba37d2..a78ddc96ff 100644 --- a/keyboards/gboards/g/engine.h +++ b/keyboards/gboards/g/engine.h | |||
| @@ -12,16 +12,10 @@ | |||
| 12 | 12 | ||
| 13 | #pragma once | 13 | #pragma once |
| 14 | 14 | ||
| 15 | #include QMK_KEYBOARD_H | 15 | #include "quantum.h" |
| 16 | #include <string.h> | 16 | #include <string.h> |
| 17 | #include <stdint.h> | ||
| 18 | #include <stdio.h> | 17 | #include <stdio.h> |
| 19 | #include "config_engine.h" | 18 | #include "config_engine.h" |
| 20 | #include <avr/pgmspace.h> | ||
| 21 | #include "wait.h" | ||
| 22 | #ifdef MOUSEKEY_ENABLE | ||
| 23 | # include "mousekey.h" | ||
| 24 | #endif | ||
| 25 | 19 | ||
| 26 | // Set defaults | 20 | // Set defaults |
| 27 | #ifndef IN_CHORD_MASK | 21 | #ifndef IN_CHORD_MASK |
diff --git a/keyboards/gboards/georgi/georgi.c b/keyboards/gboards/georgi/georgi.c index 8866886ce7..dd95b593f1 100644 --- a/keyboards/gboards/georgi/georgi.c +++ b/keyboards/gboards/georgi/georgi.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | #include QMK_KEYBOARD_H | 1 | #include "georgi.h" |
| 2 | 2 | ||
| 3 | bool i2c_initialized = 0; | 3 | bool i2c_initialized = 0; |
| 4 | i2c_status_t mcp23018_status = 0x20; | 4 | i2c_status_t mcp23018_status = 0x20; |
diff --git a/keyboards/gboards/georgi/matrix.c b/keyboards/gboards/georgi/matrix.c index 5ac696fd31..b66b1a194c 100644 --- a/keyboards/gboards/georgi/matrix.c +++ b/keyboards/gboards/georgi/matrix.c | |||
| @@ -17,16 +17,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 17 | */ | 17 | */ |
| 18 | 18 | ||
| 19 | #include "matrix.h" | 19 | #include "matrix.h" |
| 20 | #include <stdint.h> | ||
| 21 | #include <stdbool.h> | ||
| 22 | #include <avr/io.h> | ||
| 23 | #include "wait.h" | 20 | #include "wait.h" |
| 24 | #include "action_layer.h" | ||
| 25 | #include "print.h" | ||
| 26 | #include "debug.h" | 21 | #include "debug.h" |
| 27 | #include "util.h" | 22 | #include "util.h" |
| 28 | #include "keymap_steno.h" | 23 | #include "georgi.h" |
| 29 | #include QMK_KEYBOARD_H | ||
| 30 | 24 | ||
| 31 | #ifndef DEBOUNCE | 25 | #ifndef DEBOUNCE |
| 32 | # define DEBOUNCE 5 | 26 | # define DEBOUNCE 5 |
diff --git a/keyboards/gboards/georgi/sten.h b/keyboards/gboards/georgi/sten.h index 05d518efac..b5aa79893e 100644 --- a/keyboards/gboards/georgi/sten.h +++ b/keyboards/gboards/georgi/sten.h | |||
| @@ -6,7 +6,7 @@ | |||
| 6 | // Amen. | 6 | // Amen. |
| 7 | #pragma once | 7 | #pragma once |
| 8 | 8 | ||
| 9 | #include QMK_KEYBOARD_H | 9 | #include "georgi.h" |
| 10 | #include "mousekey.h" | 10 | #include "mousekey.h" |
| 11 | #include "keymap_steno.h" | 11 | #include "keymap_steno.h" |
| 12 | #include "wait.h" | 12 | #include "wait.h" |
diff --git a/keyboards/gboards/gergo/gergo.c b/keyboards/gboards/gergo/gergo.c index ba359f8145..da2a3007a8 100644 --- a/keyboards/gboards/gergo/gergo.c +++ b/keyboards/gboards/gergo/gergo.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | #include QMK_KEYBOARD_H | 1 | #include "gergo.h" |
| 2 | 2 | ||
| 3 | bool i2c_initialized = 0; | 3 | bool i2c_initialized = 0; |
| 4 | i2c_status_t mcp23018_status = 0x20; | 4 | i2c_status_t mcp23018_status = 0x20; |
diff --git a/keyboards/gboards/gergo/matrix.c b/keyboards/gboards/gergo/matrix.c index c352be24e1..8a6b38bf73 100644 --- a/keyboards/gboards/gergo/matrix.c +++ b/keyboards/gboards/gergo/matrix.c | |||
| @@ -17,16 +17,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 17 | */ | 17 | */ |
| 18 | 18 | ||
| 19 | #include "matrix.h" | 19 | #include "matrix.h" |
| 20 | #include <stdint.h> | ||
| 21 | #include <stdbool.h> | ||
| 22 | #include <avr/io.h> | ||
| 23 | #include "wait.h" | 20 | #include "wait.h" |
| 24 | #include "action_layer.h" | ||
| 25 | #include "print.h" | ||
| 26 | #include "debug.h" | 21 | #include "debug.h" |
| 27 | #include "util.h" | 22 | #include "util.h" |
| 28 | #include "debounce.h" | 23 | #include "debounce.h" |
| 29 | #include QMK_KEYBOARD_H | 24 | #include "gergo.h" |
| 30 | 25 | ||
| 31 | #ifdef BALLER | 26 | #ifdef BALLER |
| 32 | #include <avr/interrupt.h> | 27 | #include <avr/interrupt.h> |
diff --git a/keyboards/gl516/xr63gl/xr63gl.c b/keyboards/gl516/xr63gl/xr63gl.c index 4817f07a92..b2aa43c456 100644 --- a/keyboards/gl516/xr63gl/xr63gl.c +++ b/keyboards/gl516/xr63gl/xr63gl.c | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | // Copyright 2022 gachiham (@gachiham) | 1 | // Copyright 2022 gachiham (@gachiham) |
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | 2 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | 3 | ||
| 4 | #include QMK_KEYBOARD_H | 4 | #include "quantum.h" |
| 5 | 5 | ||
| 6 | const matrix_row_t matrix_mask[MATRIX_ROWS] = { | 6 | const matrix_row_t matrix_mask[MATRIX_ROWS] = { |
| 7 | 0b1111111111111110, | 7 | 0b1111111111111110, |
diff --git a/keyboards/hardwareabstraction/handwire/handwire.c b/keyboards/hardwareabstraction/handwire/handwire.c index c61e4c7626..4981e703e4 100644 --- a/keyboards/hardwareabstraction/handwire/handwire.c +++ b/keyboards/hardwareabstraction/handwire/handwire.c | |||
| @@ -1,7 +1,8 @@ | |||
| 1 | // Copyright 2022 Andy Tsai (@atsai) | 1 | // Copyright 2022 Andy Tsai (@atsai) |
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | 2 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | 3 | ||
| 4 | #include QMK_KEYBOARD_H | 4 | #include "quantum.h" |
| 5 | |||
| 5 | static uint16_t buzzer_timer = 0; | 6 | static uint16_t buzzer_timer = 0; |
| 6 | static uint8_t buzzer_dwell = 15; | 7 | static uint8_t buzzer_dwell = 15; |
| 7 | static uint8_t buzzer_dwell_change = 1; | 8 | static uint8_t buzzer_dwell_change = 1; |
diff --git a/keyboards/hotdox76v2/hotdox76v2.c b/keyboards/hotdox76v2/hotdox76v2.c index 1465e96138..57ed81b128 100644 --- a/keyboards/hotdox76v2/hotdox76v2.c +++ b/keyboards/hotdox76v2/hotdox76v2.c | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | // Copyright 2022 Drashna Jael're (@Drashna Jael're) | 2 | // Copyright 2022 Drashna Jael're (@Drashna Jael're) |
| 3 | // SPDX-License-Identifier: GPL-2.0-or-later | 3 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 4 | 4 | ||
| 5 | #include QMK_KEYBOARD_H | 5 | #include "hotdox76v2.h" |
| 6 | #include <string.h> | 6 | #include <string.h> |
| 7 | #include <transactions.h> | 7 | #include <transactions.h> |
| 8 | #include "oled_font_lib/logo2.h" | 8 | #include "oled_font_lib/logo2.h" |
diff --git a/keyboards/ingrained/matrix.c b/keyboards/ingrained/matrix.c index 0dfb150b6c..154a275d7a 100644 --- a/keyboards/ingrained/matrix.c +++ b/keyboards/ingrained/matrix.c | |||
| @@ -23,7 +23,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 23 | * to repeating that information all over the place. | 23 | * to repeating that information all over the place. |
| 24 | */ | 24 | */ |
| 25 | 25 | ||
| 26 | #include QMK_KEYBOARD_H | 26 | #include "matrix.h" |
| 27 | #include "debug.h" | ||
| 28 | #include "wait.h" | ||
| 27 | #include "i2c_master.h" | 29 | #include "i2c_master.h" |
| 28 | 30 | ||
| 29 | extern i2c_status_t mcp23017_status; | 31 | 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 fbe1bdb77f..b8f0d4ae13 100644 --- a/keyboards/input_club/ergodox_infinity/ergodox_infinity.c +++ b/keyboards/input_club/ergodox_infinity/ergodox_infinity.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | #include QMK_KEYBOARD_H | 1 | #include "ergodox_infinity.h" |
| 2 | #include <ch.h> | 2 | #include <ch.h> |
| 3 | #include <hal.h> | 3 | #include <hal.h> |
| 4 | #include <string.h> | 4 | #include <string.h> |
diff --git a/keyboards/kc60se/kc60se.c b/keyboards/kc60se/kc60se.c index e484d74db8..7aa0ef9d77 100644 --- a/keyboards/kc60se/kc60se.c +++ b/keyboards/kc60se/kc60se.c | |||
| @@ -14,7 +14,7 @@ | |||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ | 15 | */ |
| 16 | 16 | ||
| 17 | #include QMK_KEYBOARD_H | 17 | #include "kc60se.h" |
| 18 | 18 | ||
| 19 | void matrix_init_kb(void){ | 19 | void matrix_init_kb(void){ |
| 20 | setPinOutput(B2); | 20 | setPinOutput(B2); |
diff --git a/keyboards/keychron/common/keychron_common.c b/keyboards/keychron/common/keychron_common.c index a6250966f3..9c7fc3ace5 100644 --- a/keyboards/keychron/common/keychron_common.c +++ b/keyboards/keychron/common/keychron_common.c | |||
| @@ -14,8 +14,8 @@ | |||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ | 15 | */ |
| 16 | 16 | ||
| 17 | #include QMK_KEYBOARD_H | ||
| 18 | #include "keychron_common.h" | 17 | #include "keychron_common.h" |
| 18 | #include "sync_timer.h" | ||
| 19 | 19 | ||
| 20 | bool is_siri_active = false; | 20 | bool is_siri_active = false; |
| 21 | uint32_t siri_timer = 0; | 21 | uint32_t siri_timer = 0; |
diff --git a/keyboards/keychron/common/keychron_common.h b/keyboards/keychron/common/keychron_common.h index 5e56a828c8..648a5d3371 100644 --- a/keyboards/keychron/common/keychron_common.h +++ b/keyboards/keychron/common/keychron_common.h | |||
| @@ -16,10 +16,14 @@ | |||
| 16 | 16 | ||
| 17 | #pragma once | 17 | #pragma once |
| 18 | 18 | ||
| 19 | #include "stdint.h" | 19 | #include <stdint.h> |
| 20 | #include <stdbool.h> | ||
| 21 | #include "action.h" | ||
| 22 | |||
| 20 | #ifdef VIA_ENABLE | 23 | #ifdef VIA_ENABLE |
| 21 | # include "via.h" | 24 | # include "via.h" |
| 22 | #endif | 25 | #endif |
| 26 | |||
| 23 | #include "quantum_keycodes.h" | 27 | #include "quantum_keycodes.h" |
| 24 | 28 | ||
| 25 | enum custom_keycodes { | 29 | enum custom_keycodes { |
diff --git a/keyboards/lily58/lib/layer_state_reader.c b/keyboards/lily58/lib/layer_state_reader.c index 68516c8df2..ffc2c4e2c6 100644 --- a/keyboards/lily58/lib/layer_state_reader.c +++ b/keyboards/lily58/lib/layer_state_reader.c | |||
| @@ -1,5 +1,4 @@ | |||
| 1 | 1 | #include "quantum.h" | |
| 2 | #include QMK_KEYBOARD_H | ||
| 3 | #include <stdio.h> | 2 | #include <stdio.h> |
| 4 | 3 | ||
| 5 | #define L_BASE 0 | 4 | #define L_BASE 0 |
diff --git a/keyboards/lily58/lib/rgb_state_reader.c b/keyboards/lily58/lib/rgb_state_reader.c index e0efe2e528..3d74fb45e4 100644 --- a/keyboards/lily58/lib/rgb_state_reader.c +++ b/keyboards/lily58/lib/rgb_state_reader.c | |||
| @@ -1,6 +1,5 @@ | |||
| 1 | #ifdef RGBLIGHT_ENABLE | 1 | #ifdef RGBLIGHT_ENABLE |
| 2 | 2 | ||
| 3 | #include QMK_KEYBOARD_H | ||
| 4 | #include <stdio.h> | 3 | #include <stdio.h> |
| 5 | 4 | ||
| 6 | extern rgblight_config_t rgblight_config; | 5 | 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 354c1fb896..613798c941 100644 --- a/keyboards/marksard/rhymestone/common/oled_helper.c +++ b/keyboards/marksard/rhymestone/common/oled_helper.c | |||
| @@ -1,8 +1,10 @@ | |||
| 1 | #ifdef OLED_ENABLE | 1 | #include "oled_helper.h" |
| 2 | #include QMK_KEYBOARD_H | 2 | #include "quantum.h" |
| 3 | #include <stdio.h> | 3 | #include <stdio.h> |
| 4 | #include <string.h> | 4 | #include <string.h> |
| 5 | 5 | ||
| 6 | #ifdef OLED_ENABLE | ||
| 7 | |||
| 6 | void render_logo(void) { | 8 | void render_logo(void) { |
| 7 | 9 | ||
| 8 | static const char PROGMEM logo_buf[]={ | 10 | 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 dc9a938f6c..34bacc6a89 100644 --- a/keyboards/marksard/rhymestone/common/oled_helper.h +++ b/keyboards/marksard/rhymestone/common/oled_helper.h | |||
| @@ -1,3 +1,6 @@ | |||
| 1 | #include <stdint.h> | ||
| 2 | #include "action.h" | ||
| 3 | |||
| 1 | #ifdef OLED_ENABLE | 4 | #ifdef OLED_ENABLE |
| 2 | 5 | ||
| 3 | void render_logo(void); | 6 | void render_logo(void); |
diff --git a/keyboards/marksard/treadstone48/common/oled_helper.c b/keyboards/marksard/treadstone48/common/oled_helper.c index 68adbe83a8..c3c8f23cbc 100644 --- a/keyboards/marksard/treadstone48/common/oled_helper.c +++ b/keyboards/marksard/treadstone48/common/oled_helper.c | |||
| @@ -1,8 +1,10 @@ | |||
| 1 | #ifdef OLED_ENABLE | 1 | #include "oled_helper.h" |
| 2 | #include QMK_KEYBOARD_H | 2 | #include "quantum.h" |
| 3 | #include <stdio.h> | 3 | #include <stdio.h> |
| 4 | #include <string.h> | 4 | #include <string.h> |
| 5 | 5 | ||
| 6 | #ifdef OLED_ENABLE | ||
| 7 | |||
| 6 | void render_logo(void) { | 8 | void render_logo(void) { |
| 7 | 9 | ||
| 8 | const char logo_buf[]={ | 10 | const char logo_buf[]={ |
diff --git a/keyboards/marksard/treadstone48/common/oled_helper.h b/keyboards/marksard/treadstone48/common/oled_helper.h index 56c2a5b236..82c1feba4a 100644 --- a/keyboards/marksard/treadstone48/common/oled_helper.h +++ b/keyboards/marksard/treadstone48/common/oled_helper.h | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | #ifdef OLED_ENABLE | 1 | #ifdef OLED_ENABLE |
| 2 | 2 | ||
| 3 | #include <stdint.h> | ||
| 4 | #include "action.h" | ||
| 5 | |||
| 3 | void render_logo(void); | 6 | void render_logo(void); |
| 4 | void update_key_status(uint16_t keycode, keyrecord_t *record); | 7 | void update_key_status(uint16_t keycode, keyrecord_t *record); |
| 5 | void render_key_status(void); | 8 | void render_key_status(void); |
diff --git a/keyboards/mk65/mk65.c b/keyboards/mk65/mk65.c index 8afb0ac415..b05174eacd 100644 --- a/keyboards/mk65/mk65.c +++ b/keyboards/mk65/mk65.c | |||
| @@ -14,7 +14,7 @@ | |||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ | 15 | */ |
| 16 | 16 | ||
| 17 | #include QMK_KEYBOARD_H | 17 | #include "quantum.h" |
| 18 | 18 | ||
| 19 | #ifdef ENCODER_ENABLE | 19 | #ifdef ENCODER_ENABLE |
| 20 | bool encoder_update_kb(uint8_t index, bool clockwise) { | 20 | bool encoder_update_kb(uint8_t index, bool clockwise) { |
diff --git a/keyboards/mxss/mxss.c b/keyboards/mxss/mxss.c index 21beee232c..3bd3e639c9 100644 --- a/keyboards/mxss/mxss.c +++ b/keyboards/mxss/mxss.c | |||
| @@ -16,7 +16,7 @@ | |||
| 16 | * EEPROM management code from ../cannonkeys/stm32f072/keyboard.c | 16 | * EEPROM management code from ../cannonkeys/stm32f072/keyboard.c |
| 17 | */ | 17 | */ |
| 18 | 18 | ||
| 19 | #include QMK_KEYBOARD_H | 19 | #include "mxss.h" |
| 20 | #include "eeprom.h" | 20 | #include "eeprom.h" |
| 21 | #include "action_layer.h" | 21 | #include "action_layer.h" |
| 22 | #include "rgblight.h" | 22 | #include "rgblight.h" |
diff --git a/keyboards/nack/nack.c b/keyboards/nack/nack.c index 8433e551c4..8f91ee3757 100644 --- a/keyboards/nack/nack.c +++ b/keyboards/nack/nack.c | |||
| @@ -14,7 +14,7 @@ | |||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ | 15 | */ |
| 16 | 16 | ||
| 17 | #include QMK_KEYBOARD_H | 17 | #include "nack.h" |
| 18 | 18 | ||
| 19 | #ifdef RGB_MATRIX_ENABLE | 19 | #ifdef RGB_MATRIX_ENABLE |
| 20 | led_config_t g_led_config = { { | 20 | led_config_t g_led_config = { { |
diff --git a/keyboards/nullbitsco/nibble/nibble.c b/keyboards/nullbitsco/nibble/nibble.c index 8f462080f0..388d546a7e 100644 --- a/keyboards/nullbitsco/nibble/nibble.c +++ b/keyboards/nullbitsco/nibble/nibble.c | |||
| @@ -13,7 +13,7 @@ | |||
| 13 | * You should have received a copy of the GNU General Public License | 13 | * You should have received a copy of the GNU General Public License |
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ | 15 | */ |
| 16 | #include QMK_KEYBOARD_H | 16 | #include "nibble.h" |
| 17 | 17 | ||
| 18 | // Use Bit-C LED to show CAPS LOCK status | 18 | // Use Bit-C LED to show CAPS LOCK status |
| 19 | void led_update_ports(led_t led_state) { | 19 | void led_update_ports(led_t led_state) { |
diff --git a/keyboards/nullbitsco/tidbit/tidbit.c b/keyboards/nullbitsco/tidbit/tidbit.c index fdfffaa933..356c580342 100644 --- a/keyboards/nullbitsco/tidbit/tidbit.c +++ b/keyboards/nullbitsco/tidbit/tidbit.c | |||
| @@ -14,7 +14,7 @@ | |||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ | 15 | */ |
| 16 | 16 | ||
| 17 | #include QMK_KEYBOARD_H | 17 | #include "tidbit.h" |
| 18 | 18 | ||
| 19 | typedef struct PACKED { | 19 | typedef struct PACKED { |
| 20 | uint8_t r; | 20 | uint8_t r; |
diff --git a/keyboards/omnikeyish/dynamic_macro.c b/keyboards/omnikeyish/dynamic_macro.c index 9dd0340099..b990a09a13 100644 --- a/keyboards/omnikeyish/dynamic_macro.c +++ b/keyboards/omnikeyish/dynamic_macro.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | #include QMK_KEYBOARD_H | 1 | #include "omnikeyish.h" |
| 2 | #include <string.h> | 2 | #include <string.h> |
| 3 | 3 | ||
| 4 | dynamic_macro_t dynamic_macros[DYNAMIC_MACRO_COUNT]; | 4 | 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 5fb3cc7539..38608e5a6c 100644 --- a/keyboards/palette1202/lib/oled_helper.c +++ b/keyboards/palette1202/lib/oled_helper.c | |||
| @@ -1,8 +1,10 @@ | |||
| 1 | #ifdef OLED_ENABLE | 1 | #include "oled_helper.h" |
| 2 | #include QMK_KEYBOARD_H | 2 | #include "quantum.h" |
| 3 | #include <stdio.h> | 3 | #include <stdio.h> |
| 4 | #include <string.h> | 4 | #include <string.h> |
| 5 | 5 | ||
| 6 | #ifdef OLED_ENABLE | ||
| 7 | |||
| 6 | // returns character cord of the logo by line number | 8 | // returns character cord of the logo by line number |
| 7 | char *read_logo(int row) { | 9 | char *read_logo(int row) { |
| 8 | static char logoLines[][18] = { | 10 | static char logoLines[][18] = { |
diff --git a/keyboards/ploopyco/mouse/mouse.c b/keyboards/ploopyco/mouse/mouse.c index 275c02214e..e2dada4a15 100644 --- a/keyboards/ploopyco/mouse/mouse.c +++ b/keyboards/ploopyco/mouse/mouse.c | |||
| @@ -16,7 +16,7 @@ | |||
| 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 | */ | 17 | */ |
| 18 | 18 | ||
| 19 | #include QMK_KEYBOARD_H | 19 | #include "mouse.h" |
| 20 | 20 | ||
| 21 | #ifndef OPT_DEBOUNCE | 21 | #ifndef OPT_DEBOUNCE |
| 22 | # define OPT_DEBOUNCE 5 // (ms) Time between scroll events | 22 | # define OPT_DEBOUNCE 5 // (ms) Time between scroll events |
diff --git a/keyboards/rubi/lib/oled.c b/keyboards/rubi/lib/oled.c index 9534cdd9b7..9297cddf0e 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 | |||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 16 | */ | 16 | */ |
| 17 | 17 | ||
| 18 | #include QMK_KEYBOARD_H | 18 | #include "oled.h" |
| 19 | #include "./lib/oled.h" | 19 | #include "rubi.h" |
| 20 | 20 | ||
| 21 | bool process_record_user_oled(uint16_t keycode, keyrecord_t *record) { | 21 | bool process_record_user_oled(uint16_t keycode, keyrecord_t *record) { |
| 22 | return process_record_user(keycode, record); | 22 | return process_record_user(keycode, record); |
diff --git a/keyboards/rubi/lib/oled.h b/keyboards/rubi/lib/oled.h index 1737541c96..8af48c667b 100644 --- a/keyboards/rubi/lib/oled.h +++ b/keyboards/rubi/lib/oled.h | |||
| @@ -17,6 +17,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 17 | 17 | ||
| 18 | #pragma once | 18 | #pragma once |
| 19 | 19 | ||
| 20 | #include <stdbool.h> | ||
| 21 | #include <stdint.h> | ||
| 22 | #include "progmem.h" | ||
| 23 | |||
| 20 | #define OLED_FRAME_TIMEOUT (1000 / 30) // 30 fps | 24 | #define OLED_FRAME_TIMEOUT (1000 / 30) // 30 fps |
| 21 | #define OLED_LOGO_TIMEOUT 3000 // 3 sec | 25 | #define OLED_LOGO_TIMEOUT 3000 // 3 sec |
| 22 | 26 | ||
diff --git a/keyboards/rura66/rev1/oled_display.c b/keyboards/rura66/rev1/oled_display.c index 137fd188c7..d2e3422bf9 100644 --- a/keyboards/rura66/rev1/oled_display.c +++ b/keyboards/rura66/rev1/oled_display.c | |||
| @@ -14,7 +14,7 @@ | |||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ | 15 | */ |
| 16 | 16 | ||
| 17 | #include QMK_KEYBOARD_H | 17 | #include "rev1.h" |
| 18 | 18 | ||
| 19 | // Defines names for use in layer keycodes and the keymap | 19 | // Defines names for use in layer keycodes and the keymap |
| 20 | enum layer_names { | 20 | enum layer_names { |
diff --git a/keyboards/splitkb/aurora/corne/rev1/rev1.c b/keyboards/splitkb/aurora/corne/rev1/rev1.c index 1fdbbf93f1..31ea13fb53 100644 --- a/keyboards/splitkb/aurora/corne/rev1/rev1.c +++ b/keyboards/splitkb/aurora/corne/rev1/rev1.c | |||
| @@ -14,7 +14,7 @@ | |||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ | 15 | */ |
| 16 | 16 | ||
| 17 | #include QMK_KEYBOARD_H | 17 | #include "quantum.h" |
| 18 | 18 | ||
| 19 | #ifdef SWAP_HANDS_ENABLE | 19 | #ifdef SWAP_HANDS_ENABLE |
| 20 | // clang-format off | 20 | // clang-format off |
diff --git a/keyboards/splitkb/aurora/lily58/rev1/rev1.c b/keyboards/splitkb/aurora/lily58/rev1/rev1.c index d6f0a1153b..34de643c1d 100644 --- a/keyboards/splitkb/aurora/lily58/rev1/rev1.c +++ b/keyboards/splitkb/aurora/lily58/rev1/rev1.c | |||
| @@ -14,7 +14,7 @@ | |||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ | 15 | */ |
| 16 | 16 | ||
| 17 | #include QMK_KEYBOARD_H | 17 | #include "quantum.h" |
| 18 | 18 | ||
| 19 | #ifdef SWAP_HANDS_ENABLE | 19 | #ifdef SWAP_HANDS_ENABLE |
| 20 | // clang-format off | 20 | // clang-format off |
diff --git a/keyboards/splitkb/aurora/sweep/rev1/rev1.c b/keyboards/splitkb/aurora/sweep/rev1/rev1.c index 43c2d12a67..a6b1a6796d 100644 --- a/keyboards/splitkb/aurora/sweep/rev1/rev1.c +++ b/keyboards/splitkb/aurora/sweep/rev1/rev1.c | |||
| @@ -14,7 +14,7 @@ | |||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ | 15 | */ |
| 16 | 16 | ||
| 17 | #include QMK_KEYBOARD_H | 17 | #include "quantum.h" |
| 18 | 18 | ||
| 19 | #ifdef SWAP_HANDS_ENABLE | 19 | #ifdef SWAP_HANDS_ENABLE |
| 20 | // clang-format off | 20 | // clang-format off |
diff --git a/keyboards/teleport/native/ansi/ansi.c b/keyboards/teleport/native/ansi/ansi.c index 8b243d8a07..9c4ea99f40 100644 --- a/keyboards/teleport/native/ansi/ansi.c +++ b/keyboards/teleport/native/ansi/ansi.c | |||
| @@ -14,7 +14,7 @@ | |||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ | 15 | */ |
| 16 | 16 | ||
| 17 | #include QMK_KEYBOARD_H | 17 | #include "quantum.h" |
| 18 | 18 | ||
| 19 | #ifdef RGB_MATRIX_ENABLE | 19 | #ifdef RGB_MATRIX_ENABLE |
| 20 | led_config_t g_led_config = { { | 20 | led_config_t g_led_config = { { |
diff --git a/keyboards/teleport/native/iso/iso.c b/keyboards/teleport/native/iso/iso.c index f3bfbfb3a1..5acbffe8f9 100644 --- a/keyboards/teleport/native/iso/iso.c +++ b/keyboards/teleport/native/iso/iso.c | |||
| @@ -14,7 +14,7 @@ | |||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ | 15 | */ |
| 16 | 16 | ||
| 17 | #include QMK_KEYBOARD_H | 17 | #include "quantum.h" |
| 18 | 18 | ||
| 19 | #ifdef RGB_MATRIX_ENABLE | 19 | #ifdef RGB_MATRIX_ENABLE |
| 20 | led_config_t g_led_config = { { | 20 | led_config_t g_led_config = { { |
diff --git a/keyboards/torn/bongocat.c b/keyboards/torn/bongocat.c index 9d6d9a85f5..8ca5e512f8 100644 --- a/keyboards/torn/bongocat.c +++ b/keyboards/torn/bongocat.c | |||
| @@ -14,7 +14,7 @@ | |||
| 14 | * You should have received a copy of the GNU General Public License | 14 | * You should have received a copy of the GNU General Public License |
| 15 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 15 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 16 | */ | 16 | */ |
| 17 | #include QMK_KEYBOARD_H | 17 | #include "torn.h" |
| 18 | 18 | ||
| 19 | #ifdef OLED_ENABLE | 19 | #ifdef OLED_ENABLE |
| 20 | 20 | ||
diff --git a/keyboards/torn/matrix.c b/keyboards/torn/matrix.c index dd7fa1e2e1..b674f21d57 100644 --- a/keyboards/torn/matrix.c +++ b/keyboards/torn/matrix.c | |||
| @@ -16,7 +16,7 @@ | |||
| 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 | */ | 17 | */ |
| 18 | 18 | ||
| 19 | #include QMK_KEYBOARD_H | 19 | #include "matrix.h" |
| 20 | #include "mcp23018.h" | 20 | #include "mcp23018.h" |
| 21 | 21 | ||
| 22 | #define SPLIT_MATRIX_COLS (MATRIX_COLS / 2) | 22 | #define SPLIT_MATRIX_COLS (MATRIX_COLS / 2) |
diff --git a/keyboards/torn/mcp23018.c b/keyboards/torn/mcp23018.c index c180f1dae5..12c4f9bc7f 100644 --- a/keyboards/torn/mcp23018.c +++ b/keyboards/torn/mcp23018.c | |||
| @@ -16,7 +16,6 @@ | |||
| 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 | */ | 17 | */ |
| 18 | 18 | ||
| 19 | #include QMK_KEYBOARD_H | ||
| 20 | #include "i2c_master.h" | 19 | #include "i2c_master.h" |
| 21 | #include "mcp23018.h" | 20 | #include "mcp23018.h" |
| 22 | 21 | ||
diff --git a/keyboards/torn/mcp23018.h b/keyboards/torn/mcp23018.h index 17ecaa5a7c..af5dbc7b25 100644 --- a/keyboards/torn/mcp23018.h +++ b/keyboards/torn/mcp23018.h | |||
| @@ -17,6 +17,9 @@ | |||
| 17 | 17 | ||
| 18 | #pragma once | 18 | #pragma once |
| 19 | 19 | ||
| 20 | #include <stdbool.h> | ||
| 21 | #include <stdint.h> | ||
| 22 | |||
| 20 | #define IODIRA 0x00 | 23 | #define IODIRA 0x00 |
| 21 | #define IODIRB 0x01 | 24 | #define IODIRB 0x01 |
| 22 | #define GPPUA 0x0C | 25 | #define GPPUA 0x0C |
diff --git a/keyboards/tzarc/djinn/graphics/theme_djinn_default.c b/keyboards/tzarc/djinn/graphics/theme_djinn_default.c index c9863f2285..f321308ac5 100644 --- a/keyboards/tzarc/djinn/graphics/theme_djinn_default.c +++ b/keyboards/tzarc/djinn/graphics/theme_djinn_default.c | |||
| @@ -1,6 +1,5 @@ | |||
| 1 | // Copyright 2018-2022 Nick Brassel (@tzarc) | 1 | // Copyright 2018-2022 Nick Brassel (@tzarc) |
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | 2 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | #include QMK_KEYBOARD_H | ||
| 4 | #include <hal.h> | 3 | #include <hal.h> |
| 5 | #include <string.h> | 4 | #include <string.h> |
| 6 | #include <ctype.h> | 5 | #include <ctype.h> |
diff --git a/keyboards/tzarc/ghoul/ghoul.c b/keyboards/tzarc/ghoul/ghoul.c index aceb24764b..a97399110c 100644 --- a/keyboards/tzarc/ghoul/ghoul.c +++ b/keyboards/tzarc/ghoul/ghoul.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | // Copyright 2018-2022 Nick Brassel (@tzarc) | 1 | // Copyright 2018-2022 Nick Brassel (@tzarc) |
| 2 | // SPDX-License-Identifier: GPL-3.0-or-later | 2 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 3 | #include QMK_KEYBOARD_H | 3 | #include "quantum.h" |
| 4 | #include "analog.h" | 4 | #include "analog.h" |
| 5 | #include "spi_master.h" | 5 | #include "spi_master.h" |
| 6 | 6 | ||
diff --git a/keyboards/work_louder/micro/matrix.c b/keyboards/work_louder/micro/matrix.c index d2ae16ad9c..743c788662 100644 --- a/keyboards/work_louder/micro/matrix.c +++ b/keyboards/work_louder/micro/matrix.c | |||
| @@ -4,16 +4,13 @@ | |||
| 4 | /* | 4 | /* |
| 5 | * scan matrix | 5 | * scan matrix |
| 6 | */ | 6 | */ |
| 7 | #include <stdint.h> | 7 | #include "matrix.h" |
| 8 | #include <stdbool.h> | 8 | #include <string.h> |
| 9 | #include <avr/io.h> | 9 | #include "atomic_util.h" |
| 10 | #include "wait.h" | 10 | #include "wait.h" |
| 11 | #include "print.h" | ||
| 12 | #include "debug.h" | 11 | #include "debug.h" |
| 13 | #include "util.h" | 12 | #include "util.h" |
| 14 | #include "matrix.h" | ||
| 15 | #include "debounce.h" | 13 | #include "debounce.h" |
| 16 | #include QMK_KEYBOARD_H | ||
| 17 | 14 | ||
| 18 | /* matrix state(1:on, 0:off) */ | 15 | /* matrix state(1:on, 0:off) */ |
| 19 | extern matrix_row_t matrix[MATRIX_ROWS]; // debounced values | 16 | 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 42bc2db529..d845a62250 100644 --- a/keyboards/work_louder/micro/micro.c +++ b/keyboards/work_louder/micro/micro.c | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | // Copyright 2022 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com> | 1 | // Copyright 2022 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com> |
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | 2 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | 3 | ||
| 4 | #include QMK_KEYBOARD_H | 4 | #include "micro.h" |
| 5 | 5 | ||
| 6 | #if defined(RGB_MATRIX_ENABLE) | 6 | #if defined(RGB_MATRIX_ENABLE) |
| 7 | // clang-format off | 7 | // clang-format off |
diff --git a/keyboards/work_louder/rgb_functions.c b/keyboards/work_louder/rgb_functions.c index d0cb93ccbc..cde435134a 100644 --- a/keyboards/work_louder/rgb_functions.c +++ b/keyboards/work_louder/rgb_functions.c | |||
| @@ -14,7 +14,6 @@ | |||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ | 15 | */ |
| 16 | 16 | ||
| 17 | #include QMK_KEYBOARD_H | ||
| 18 | #include "rgb_functions.h" | 17 | #include "rgb_functions.h" |
| 19 | 18 | ||
| 20 | #ifdef RGBLIGHT_ENABLE | 19 | #ifdef RGBLIGHT_ENABLE |
diff --git a/keyboards/yosino58/lib/layer_state_reader.c b/keyboards/yosino58/lib/layer_state_reader.c index 2dec336b86..f9cd934568 100644 --- a/keyboards/yosino58/lib/layer_state_reader.c +++ b/keyboards/yosino58/lib/layer_state_reader.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | 1 | ||
| 2 | #include QMK_KEYBOARD_H | 2 | #include "quantum.h" |
| 3 | #include <stdio.h> | 3 | #include <stdio.h> |
| 4 | 4 | ||
| 5 | #define L_BASE 0 | 5 | #define L_BASE 0 |
diff --git a/keyboards/yosino58/lib/rgb_state_reader.c b/keyboards/yosino58/lib/rgb_state_reader.c index e0efe2e528..daa008d849 100644 --- a/keyboards/yosino58/lib/rgb_state_reader.c +++ b/keyboards/yosino58/lib/rgb_state_reader.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | #ifdef RGBLIGHT_ENABLE | 1 | #ifdef RGBLIGHT_ENABLE |
| 2 | 2 | ||
| 3 | #include QMK_KEYBOARD_H | 3 | #include "quantum.h" |
| 4 | #include <stdio.h> | 4 | #include <stdio.h> |
| 5 | 5 | ||
| 6 | extern rgblight_config_t rgblight_config; | 6 | extern rgblight_config_t rgblight_config; |
diff --git a/keyboards/yushakobo/navpad/navpad_prefs.c b/keyboards/yushakobo/navpad/navpad_prefs.c index fd2a7b0789..1ffd441674 100644 --- a/keyboards/yushakobo/navpad/navpad_prefs.c +++ b/keyboards/yushakobo/navpad/navpad_prefs.c | |||
| @@ -14,7 +14,7 @@ | |||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ | 15 | */ |
| 16 | 16 | ||
| 17 | #include QMK_KEYBOARD_H | 17 | #include "navpad_prefs.h" |
| 18 | 18 | ||
| 19 | bool process_record_kb(uint16_t keycode, keyrecord_t *record) { | 19 | bool process_record_kb(uint16_t keycode, keyrecord_t *record) { |
| 20 | if (!process_record_user(keycode, record)) { return false; } | 20 | 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 1a546f4e35..bf58f67411 100644 --- a/keyboards/yushakobo/quick17/quick17_prefs.c +++ b/keyboards/yushakobo/quick17/quick17_prefs.c | |||
| @@ -14,7 +14,7 @@ | |||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ | 15 | */ |
| 16 | 16 | ||
| 17 | #include QMK_KEYBOARD_H | 17 | #include "quick17_prefs.h" |
| 18 | 18 | ||
| 19 | bool _INPUT_JP; | 19 | bool _INPUT_JP; |
| 20 | 20 | ||
diff --git a/keyboards/yushakobo/quick17/quick17_prefs.h b/keyboards/yushakobo/quick17/quick17_prefs.h index 4d81d163b9..a6096f0f26 100644 --- a/keyboards/yushakobo/quick17/quick17_prefs.h +++ b/keyboards/yushakobo/quick17/quick17_prefs.h | |||
| @@ -14,6 +14,8 @@ | |||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ | 15 | */ |
| 16 | 16 | ||
| 17 | #include "quantum.h" | ||
| 18 | |||
| 17 | enum layer_names { | 19 | enum layer_names { |
| 18 | _CONTROL, | 20 | _CONTROL, |
| 19 | _EDIT1, | 21 | _EDIT1, |
