M keyboards/25keys/cassette42/common/oled_helper.c => keyboards/25keys/cassette42/common/oled_helper.c +5 -3
@@ 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};
M keyboards/3w6/rev1/matrix.c => keyboards/3w6/rev1/matrix.c +3 -1
@@ 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;
M keyboards/3w6/rev2/matrix.c => keyboards/3w6/rev2/matrix.c +3 -1
@@ 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;
M keyboards/adm42/rev4/rev4.c => keyboards/adm42/rev4/rev4.c +1 -1
@@ 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 = {
{
M => +1 -1
@@ 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) {
M keyboards/converter/palm_usb/matrix.c => keyboards/converter/palm_usb/matrix.c +10 -8
@@ 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.
}
D keyboards/converter/sun_usb/command_extra.c => keyboards/converter/sun_usb/command_extra.c +0 -64
@@ 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;
-}
M keyboards/converter/sun_usb/led.c => keyboards/converter/sun_usb/led.c +2 -1
@@ 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)
M keyboards/converter/sun_usb/matrix.c => keyboards/converter/sun_usb/matrix.c +10 -6
@@ 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:
M keyboards/converter/xmk/xmk.c => keyboards/converter/xmk/xmk.c +1 -1
@@ 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) {
M keyboards/converter/xmk/xmk_matrix.c => keyboards/converter/xmk/xmk_matrix.c +2 -0
@@ 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];
M keyboards/converter/xmk/xmk_matrix.h => keyboards/converter/xmk/xmk_matrix.h +2 -1
@@ 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);
M keyboards/crkbd/lib/layer_state_reader.c => keyboards/crkbd/lib/layer_state_reader.c +1 -3
@@ 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
M keyboards/crkbd/lib/rgb_state_reader.c => keyboards/crkbd/lib/rgb_state_reader.c +0 -1
@@ 1,6 1,5 @@
#ifdef RGBLIGHT_ENABLE
-#include QMK_KEYBOARD_H
#include <stdio.h>
extern rgblight_config_t rgblight_config;
M keyboards/cxt_studio/cxt_studio.c => keyboards/cxt_studio/cxt_studio.c +1 -1
@@ 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;
M keyboards/ergodox_stm32/ergodox_stm32.c => keyboards/ergodox_stm32/ergodox_stm32.c +1 -1
@@ 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);
M keyboards/ergodox_stm32/matrix.c => keyboards/ergodox_stm32/matrix.c +3 -6
@@ 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
M keyboards/fc980c/matrix.c => keyboards/fc980c/matrix.c +0 -2
@@ 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)
M keyboards/ferris/0_1/matrix.c => keyboards/ferris/0_1/matrix.c +3 -1
@@ 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;
M keyboards/ferris/0_2/matrix.c => keyboards/ferris/0_2/matrix.c +3 -2
@@ 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
M keyboards/gboards/butterstick/sten.h => keyboards/gboards/butterstick/sten.h +1 -1
@@ 7,7 7,7 @@
#pragma once
-#include QMK_KEYBOARD_H
+#include "butterstick.h"
#include "mousekey.h"
#include "keymap_steno.h"
#include "wait.h"
M keyboards/gboards/engine/engine.h => keyboards/gboards/engine/engine.h +2 -4
@@ 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
M keyboards/gboards/ergotaco/ergotaco.c => keyboards/gboards/ergotaco/ergotaco.c +1 -1
@@ 1,4 1,4 @@
-#include QMK_KEYBOARD_H
+#include "ergotaco.h"
bool i2c_initialized = 0;
i2c_status_t mcp23018_status = 0x20;
M keyboards/gboards/ergotaco/matrix.c => keyboards/gboards/ergotaco/matrix.c +1 -6
@@ 17,15 17,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "matrix.h"
-#include <stdint.h>
-#include <stdbool.h>
-#include <avr/io.h>
#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
M keyboards/gboards/g/engine.h => keyboards/gboards/g/engine.h +1 -7
@@ 12,16 12,10 @@
#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"
-#ifdef MOUSEKEY_ENABLE
-# include "mousekey.h"
-#endif
// Set defaults
#ifndef IN_CHORD_MASK
M keyboards/gboards/georgi/georgi.c => keyboards/gboards/georgi/georgi.c +1 -1
@@ 1,4 1,4 @@
-#include QMK_KEYBOARD_H
+#include "georgi.h"
bool i2c_initialized = 0;
i2c_status_t mcp23018_status = 0x20;
M keyboards/gboards/georgi/matrix.c => keyboards/gboards/georgi/matrix.c +1 -7
@@ 17,16 17,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "matrix.h"
-#include <stdint.h>
-#include <stdbool.h>
-#include <avr/io.h>
#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
M keyboards/gboards/georgi/sten.h => keyboards/gboards/georgi/sten.h +1 -1
@@ 6,7 6,7 @@
// Amen.
#pragma once
-#include QMK_KEYBOARD_H
+#include "georgi.h"
#include "mousekey.h"
#include "keymap_steno.h"
#include "wait.h"
M keyboards/gboards/gergo/gergo.c => keyboards/gboards/gergo/gergo.c +1 -1
@@ 1,4 1,4 @@
-#include QMK_KEYBOARD_H
+#include "gergo.h"
bool i2c_initialized = 0;
i2c_status_t mcp23018_status = 0x20;
M keyboards/gboards/gergo/matrix.c => keyboards/gboards/gergo/matrix.c +1 -6
@@ 17,16 17,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "matrix.h"
-#include <stdint.h>
-#include <stdbool.h>
-#include <avr/io.h>
#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 <avr/interrupt.h>
M keyboards/gl516/xr63gl/xr63gl.c => keyboards/gl516/xr63gl/xr63gl.c +1 -1
@@ 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,
M keyboards/hardwareabstraction/handwire/handwire.c => keyboards/hardwareabstraction/handwire/handwire.c +2 -1
@@ 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;
M keyboards/hotdox76v2/hotdox76v2.c => keyboards/hotdox76v2/hotdox76v2.c +1 -1
@@ 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 <string.h>
#include <transactions.h>
#include "oled_font_lib/logo2.h"
M keyboards/ingrained/matrix.c => keyboards/ingrained/matrix.c +3 -1
@@ 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;
M keyboards/input_club/ergodox_infinity/ergodox_infinity.c => keyboards/input_club/ergodox_infinity/ergodox_infinity.c +1 -1
@@ 1,4 1,4 @@
-#include QMK_KEYBOARD_H
+#include "ergodox_infinity.h"
#include <ch.h>
#include <hal.h>
#include <string.h>
M keyboards/kc60se/kc60se.c => keyboards/kc60se/kc60se.c +1 -1
@@ 14,7 14,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include QMK_KEYBOARD_H
+#include "kc60se.h"
void matrix_init_kb(void){
setPinOutput(B2);
M keyboards/keychron/common/keychron_common.c => keyboards/keychron/common/keychron_common.c +1 -1
@@ 14,8 14,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include QMK_KEYBOARD_H
#include "keychron_common.h"
+#include "sync_timer.h"
bool is_siri_active = false;
uint32_t siri_timer = 0;
M keyboards/keychron/common/keychron_common.h => keyboards/keychron/common/keychron_common.h +5 -1
@@ 16,10 16,14 @@
#pragma once
-#include "stdint.h"
+#include <stdint.h>
+#include <stdbool.h>
+#include "action.h"
+
#ifdef VIA_ENABLE
# include "via.h"
#endif
+
#include "quantum_keycodes.h"
enum custom_keycodes {
M keyboards/lily58/lib/layer_state_reader.c => keyboards/lily58/lib/layer_state_reader.c +1 -2
@@ 1,5 1,4 @@
-
-#include QMK_KEYBOARD_H
+#include "quantum.h"
#include <stdio.h>
#define L_BASE 0
M keyboards/lily58/lib/rgb_state_reader.c => keyboards/lily58/lib/rgb_state_reader.c +0 -1
@@ 1,6 1,5 @@
#ifdef RGBLIGHT_ENABLE
-#include QMK_KEYBOARD_H
#include <stdio.h>
extern rgblight_config_t rgblight_config;
M keyboards/marksard/rhymestone/common/oled_helper.c => keyboards/marksard/rhymestone/common/oled_helper.c +4 -2
@@ 1,8 1,10 @@
-#ifdef OLED_ENABLE
-#include QMK_KEYBOARD_H
+#include "oled_helper.h"
+#include "quantum.h"
#include <stdio.h>
#include <string.h>
+#ifdef OLED_ENABLE
+
void render_logo(void) {
static const char PROGMEM logo_buf[]={
M keyboards/marksard/rhymestone/common/oled_helper.h => keyboards/marksard/rhymestone/common/oled_helper.h +3 -0
@@ 1,3 1,6 @@
+#include <stdint.h>
+#include "action.h"
+
#ifdef OLED_ENABLE
void render_logo(void);
M keyboards/marksard/treadstone48/common/oled_helper.c => keyboards/marksard/treadstone48/common/oled_helper.c +4 -2
@@ 1,8 1,10 @@
-#ifdef OLED_ENABLE
-#include QMK_KEYBOARD_H
+#include "oled_helper.h"
+#include "quantum.h"
#include <stdio.h>
#include <string.h>
+#ifdef OLED_ENABLE
+
void render_logo(void) {
const char logo_buf[]={
M keyboards/marksard/treadstone48/common/oled_helper.h => keyboards/marksard/treadstone48/common/oled_helper.h +3 -0
@@ 1,5 1,8 @@
#ifdef OLED_ENABLE
+#include <stdint.h>
+#include "action.h"
+
void render_logo(void);
void update_key_status(uint16_t keycode, keyrecord_t *record);
void render_key_status(void);
M keyboards/mk65/mk65.c => keyboards/mk65/mk65.c +1 -1
@@ 14,7 14,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include QMK_KEYBOARD_H
+#include "quantum.h"
#ifdef ENCODER_ENABLE
bool encoder_update_kb(uint8_t index, bool clockwise) {
M keyboards/mxss/mxss.c => keyboards/mxss/mxss.c +1 -1
@@ 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"
M keyboards/nack/nack.c => keyboards/nack/nack.c +1 -1
@@ 14,7 14,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include QMK_KEYBOARD_H
+#include "nack.h"
#ifdef RGB_MATRIX_ENABLE
led_config_t g_led_config = { {
M keyboards/nullbitsco/nibble/nibble.c => keyboards/nullbitsco/nibble/nibble.c +1 -1
@@ 13,7 13,7 @@
* 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 "nibble.h"
// Use Bit-C LED to show CAPS LOCK status
void led_update_ports(led_t led_state) {
M keyboards/nullbitsco/tidbit/tidbit.c => keyboards/nullbitsco/tidbit/tidbit.c +1 -1
@@ 14,7 14,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include QMK_KEYBOARD_H
+#include "tidbit.h"
typedef struct PACKED {
uint8_t r;
M keyboards/omnikeyish/dynamic_macro.c => keyboards/omnikeyish/dynamic_macro.c +1 -1
@@ 1,4 1,4 @@
-#include QMK_KEYBOARD_H
+#include "omnikeyish.h"
#include <string.h>
dynamic_macro_t dynamic_macros[DYNAMIC_MACRO_COUNT];
M keyboards/palette1202/lib/oled_helper.c => keyboards/palette1202/lib/oled_helper.c +4 -2
@@ 1,8 1,10 @@
-#ifdef OLED_ENABLE
-#include QMK_KEYBOARD_H
+#include "oled_helper.h"
+#include "quantum.h"
#include <stdio.h>
#include <string.h>
+#ifdef OLED_ENABLE
+
// returns character cord of the logo by line number
char *read_logo(int row) {
static char logoLines[][18] = {
M keyboards/ploopyco/mouse/mouse.c => keyboards/ploopyco/mouse/mouse.c +1 -1
@@ 16,7 16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include QMK_KEYBOARD_H
+#include "mouse.h"
#ifndef OPT_DEBOUNCE
# define OPT_DEBOUNCE 5 // (ms) Time between scroll events
M keyboards/rubi/lib/oled.c => keyboards/rubi/lib/oled.c +2 -2
@@ 15,8 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 "./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);
M keyboards/rubi/lib/oled.h => keyboards/rubi/lib/oled.h +4 -0
@@ 17,6 17,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
+#include <stdbool.h>
+#include <stdint.h>
+#include "progmem.h"
+
#define OLED_FRAME_TIMEOUT (1000 / 30) // 30 fps
#define OLED_LOGO_TIMEOUT 3000 // 3 sec
M keyboards/rura66/rev1/oled_display.c => keyboards/rura66/rev1/oled_display.c +1 -1
@@ 14,7 14,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include QMK_KEYBOARD_H
+#include "rev1.h"
// Defines names for use in layer keycodes and the keymap
enum layer_names {
M keyboards/splitkb/aurora/corne/rev1/rev1.c => keyboards/splitkb/aurora/corne/rev1/rev1.c +1 -1
@@ 14,7 14,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include QMK_KEYBOARD_H
+#include "quantum.h"
#ifdef SWAP_HANDS_ENABLE
// clang-format off
M keyboards/splitkb/aurora/lily58/rev1/rev1.c => keyboards/splitkb/aurora/lily58/rev1/rev1.c +1 -1
@@ 14,7 14,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include QMK_KEYBOARD_H
+#include "quantum.h"
#ifdef SWAP_HANDS_ENABLE
// clang-format off
M keyboards/splitkb/aurora/sweep/rev1/rev1.c => keyboards/splitkb/aurora/sweep/rev1/rev1.c +1 -1
@@ 14,7 14,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include QMK_KEYBOARD_H
+#include "quantum.h"
#ifdef SWAP_HANDS_ENABLE
// clang-format off
M keyboards/teleport/native/ansi/ansi.c => keyboards/teleport/native/ansi/ansi.c +1 -1
@@ 14,7 14,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include QMK_KEYBOARD_H
+#include "quantum.h"
#ifdef RGB_MATRIX_ENABLE
led_config_t g_led_config = { {
M keyboards/teleport/native/iso/iso.c => keyboards/teleport/native/iso/iso.c +1 -1
@@ 14,7 14,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include QMK_KEYBOARD_H
+#include "quantum.h"
#ifdef RGB_MATRIX_ENABLE
led_config_t g_led_config = { {
M keyboards/torn/bongocat.c => keyboards/torn/bongocat.c +1 -1
@@ 14,7 14,7 @@
* 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 "torn.h"
#ifdef OLED_ENABLE
M keyboards/torn/matrix.c => keyboards/torn/matrix.c +1 -1
@@ 16,7 16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include QMK_KEYBOARD_H
+#include "matrix.h"
#include "mcp23018.h"
#define SPLIT_MATRIX_COLS (MATRIX_COLS / 2)
M keyboards/torn/mcp23018.c => keyboards/torn/mcp23018.c +0 -1
@@ 16,7 16,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include QMK_KEYBOARD_H
#include "i2c_master.h"
#include "mcp23018.h"
M keyboards/torn/mcp23018.h => keyboards/torn/mcp23018.h +3 -0
@@ 17,6 17,9 @@
#pragma once
+#include <stdbool.h>
+#include <stdint.h>
+
#define IODIRA 0x00
#define IODIRB 0x01
#define GPPUA 0x0C
M keyboards/tzarc/djinn/graphics/theme_djinn_default.c => keyboards/tzarc/djinn/graphics/theme_djinn_default.c +0 -1
@@ 1,6 1,5 @@
// Copyright 2018-2022 Nick Brassel (@tzarc)
// SPDX-License-Identifier: GPL-2.0-or-later
-#include QMK_KEYBOARD_H
#include <hal.h>
#include <string.h>
#include <ctype.h>
M keyboards/tzarc/ghoul/ghoul.c => keyboards/tzarc/ghoul/ghoul.c +1 -1
@@ 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"
M keyboards/work_louder/micro/matrix.c => keyboards/work_louder/micro/matrix.c +3 -6
@@ 4,16 4,13 @@
/*
* scan matrix
*/
-#include <stdint.h>
-#include <stdbool.h>
-#include <avr/io.h>
+#include "matrix.h"
+#include <string.h>
+#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
M keyboards/work_louder/micro/micro.c => keyboards/work_louder/micro/micro.c +1 -1
@@ 1,7 1,7 @@
// Copyright 2022 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com>
// SPDX-License-Identifier: GPL-2.0-or-later
-#include QMK_KEYBOARD_H
+#include "micro.h"
#if defined(RGB_MATRIX_ENABLE)
// clang-format off
M keyboards/work_louder/rgb_functions.c => keyboards/work_louder/rgb_functions.c +0 -1
@@ 14,7 14,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include QMK_KEYBOARD_H
#include "rgb_functions.h"
#ifdef RGBLIGHT_ENABLE
M keyboards/yosino58/lib/layer_state_reader.c => keyboards/yosino58/lib/layer_state_reader.c +1 -1
@@ 1,5 1,5 @@
-#include QMK_KEYBOARD_H
+#include "quantum.h"
#include <stdio.h>
#define L_BASE 0
M keyboards/yosino58/lib/rgb_state_reader.c => keyboards/yosino58/lib/rgb_state_reader.c +1 -1
@@ 1,6 1,6 @@
#ifdef RGBLIGHT_ENABLE
-#include QMK_KEYBOARD_H
+#include "quantum.h"
#include <stdio.h>
extern rgblight_config_t rgblight_config;
M keyboards/yushakobo/navpad/navpad_prefs.c => keyboards/yushakobo/navpad/navpad_prefs.c +1 -1
@@ 14,7 14,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#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; }
M keyboards/yushakobo/quick17/quick17_prefs.c => keyboards/yushakobo/quick17/quick17_prefs.c +1 -1
@@ 14,7 14,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include QMK_KEYBOARD_H
+#include "quick17_prefs.h"
bool _INPUT_JP;
M keyboards/yushakobo/quick17/quick17_prefs.h => keyboards/yushakobo/quick17/quick17_prefs.h +2 -0
@@ 14,6 14,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include "quantum.h"
+
enum layer_names {
_CONTROL,
_EDIT1,