summaryrefslogtreecommitdiffstats
path: root/keyboards
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards')
-rw-r--r--keyboards/25keys/cassette42/common/oled_helper.c8
-rw-r--r--keyboards/3w6/rev1/matrix.c4
-rw-r--r--keyboards/3w6/rev2/matrix.c4
-rw-r--r--keyboards/adm42/rev4/rev4.c2
-rw-r--r--keyboards/argo_works/ishi/80/mk0_avr_extra/mk0_avr_extra.c2
-rw-r--r--keyboards/converter/palm_usb/matrix.c18
-rw-r--r--keyboards/converter/sun_usb/command_extra.c64
-rw-r--r--keyboards/converter/sun_usb/led.c3
-rw-r--r--keyboards/converter/sun_usb/matrix.c16
-rw-r--r--keyboards/converter/xmk/xmk.c2
-rw-r--r--keyboards/converter/xmk/xmk_matrix.c2
-rw-r--r--keyboards/converter/xmk/xmk_matrix.h3
-rw-r--r--keyboards/crkbd/lib/layer_state_reader.c4
-rw-r--r--keyboards/crkbd/lib/rgb_state_reader.c1
-rw-r--r--keyboards/cxt_studio/cxt_studio.c2
-rw-r--r--keyboards/ergodox_stm32/ergodox_stm32.c2
-rw-r--r--keyboards/ergodox_stm32/matrix.c9
-rw-r--r--keyboards/fc980c/matrix.c2
-rw-r--r--keyboards/ferris/0_1/matrix.c4
-rw-r--r--keyboards/ferris/0_2/matrix.c5
-rw-r--r--keyboards/gboards/butterstick/sten.h2
-rw-r--r--keyboards/gboards/engine/engine.h6
-rw-r--r--keyboards/gboards/ergotaco/ergotaco.c2
-rw-r--r--keyboards/gboards/ergotaco/matrix.c7
-rw-r--r--keyboards/gboards/g/engine.h8
-rw-r--r--keyboards/gboards/georgi/georgi.c2
-rw-r--r--keyboards/gboards/georgi/matrix.c8
-rw-r--r--keyboards/gboards/georgi/sten.h2
-rw-r--r--keyboards/gboards/gergo/gergo.c2
-rw-r--r--keyboards/gboards/gergo/matrix.c7
-rw-r--r--keyboards/gl516/xr63gl/xr63gl.c2
-rw-r--r--keyboards/hardwareabstraction/handwire/handwire.c3
-rw-r--r--keyboards/hotdox76v2/hotdox76v2.c2
-rw-r--r--keyboards/ingrained/matrix.c4
-rw-r--r--keyboards/input_club/ergodox_infinity/ergodox_infinity.c2
-rw-r--r--keyboards/kc60se/kc60se.c2
-rw-r--r--keyboards/keychron/common/keychron_common.c2
-rw-r--r--keyboards/keychron/common/keychron_common.h6
-rw-r--r--keyboards/lily58/lib/layer_state_reader.c3
-rw-r--r--keyboards/lily58/lib/rgb_state_reader.c1
-rw-r--r--keyboards/marksard/rhymestone/common/oled_helper.c6
-rw-r--r--keyboards/marksard/rhymestone/common/oled_helper.h3
-rw-r--r--keyboards/marksard/treadstone48/common/oled_helper.c6
-rw-r--r--keyboards/marksard/treadstone48/common/oled_helper.h3
-rw-r--r--keyboards/mk65/mk65.c2
-rw-r--r--keyboards/mxss/mxss.c2
-rw-r--r--keyboards/nack/nack.c2
-rw-r--r--keyboards/nullbitsco/nibble/nibble.c2
-rw-r--r--keyboards/nullbitsco/tidbit/tidbit.c2
-rw-r--r--keyboards/omnikeyish/dynamic_macro.c2
-rw-r--r--keyboards/palette1202/lib/oled_helper.c6
-rw-r--r--keyboards/ploopyco/mouse/mouse.c2
-rw-r--r--keyboards/rubi/lib/oled.c4
-rw-r--r--keyboards/rubi/lib/oled.h4
-rw-r--r--keyboards/rura66/rev1/oled_display.c2
-rw-r--r--keyboards/splitkb/aurora/corne/rev1/rev1.c2
-rw-r--r--keyboards/splitkb/aurora/lily58/rev1/rev1.c2
-rw-r--r--keyboards/splitkb/aurora/sweep/rev1/rev1.c2
-rw-r--r--keyboards/teleport/native/ansi/ansi.c2
-rw-r--r--keyboards/teleport/native/iso/iso.c2
-rw-r--r--keyboards/torn/bongocat.c2
-rw-r--r--keyboards/torn/matrix.c2
-rw-r--r--keyboards/torn/mcp23018.c1
-rw-r--r--keyboards/torn/mcp23018.h3
-rw-r--r--keyboards/tzarc/djinn/graphics/theme_djinn_default.c1
-rw-r--r--keyboards/tzarc/ghoul/ghoul.c2
-rw-r--r--keyboards/work_louder/micro/matrix.c9
-rw-r--r--keyboards/work_louder/micro/micro.c2
-rw-r--r--keyboards/work_louder/rgb_functions.c1
-rw-r--r--keyboards/yosino58/lib/layer_state_reader.c2
-rw-r--r--keyboards/yosino58/lib/rgb_state_reader.c2
-rw-r--r--keyboards/yushakobo/navpad/navpad_prefs.c2
-rw-r--r--keyboards/yushakobo/quick17/quick17_prefs.c2
-rw-r--r--keyboards/yushakobo/quick17/quick17_prefs.h2
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 @@
+#include "oled_helper.h"
+#include "quantum.h"
+#include <stdio.h>
+#include <string.h>
+
#ifdef OLED_ENABLE
-# include QMK_KEYBOARD_H
-# include <stdio.h>
-# include <string.h>
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 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/>.
* 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 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/>.
* 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 2e22004f96..623b5cb5a3 100644
--- a/keyboards/adm42/rev4/rev4.c
+++ b/keyboards/adm42/rev4/rev4.c
@@ -14,7 +14,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#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 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 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#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 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
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#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 b15f9dc9bd..0000000000
--- 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 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
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#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 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
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#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 <layout>
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 a0426e95dc..e0df96fc2d 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 7327ad5cfe..41eca9fe46 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 45514dea04..2a988253f9 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 <stdbool.h>
+#include <stdint.h>
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 @@
-
-#include QMK_KEYBOARD_H
+#include "quantum.h"
#include <stdio.h>
-#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 e0efe2e528..3d74fb45e4 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 <stdio.h>
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 @@
// 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 8419b40f41..2a919506dc 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 2046e39c1f..3eb35cd7bb 100644
--- a/keyboards/ergodox_stm32/matrix.c
+++ b/keyboards/ergodox_stm32/matrix.c
@@ -1,13 +1,10 @@
-#include <stdint.h>
-#include <stdbool.h>
+#include "matrix.h"
#include <string.h>
-#include <hal.h>
#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 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/>.
#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 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/>.
* 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 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/>.
* 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 <print.h>
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 84c54c9e2e..39740ac3d3 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 5b2da811d8..005dd730b8 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 <string.h>
-#include <stdint.h>
#include <stdio.h>
#include "config_engine.h"
-#include <avr/pgmspace.h>
-#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 ecab74b3a2..daeba1e0a6 100644
--- a/keyboards/gboards/ergotaco/ergotaco.c
+++ b/keyboards/gboards/ergotaco/ergotaco.c
@@ -1,4 +1,4 @@
-#include QMK_KEYBOARD_H