Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some missing QMK_KEYBOARD_H includes in user keymaps #20417

Merged
merged 1 commit into from
Apr 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion keyboards/1upkeyboards/1up60rgb/keymaps/iso/keymap.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "1up60rgb.h"
#include QMK_KEYBOARD_H

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {

Expand Down
2 changes: 1 addition & 1 deletion keyboards/1upkeyboards/1up60rgb/keymaps/tsangan/keymap.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "1up60rgb.h"
#include QMK_KEYBOARD_H

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {

Expand Down
2 changes: 1 addition & 1 deletion keyboards/1upkeyboards/sweet16/keymaps/dlaroe/keymap.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "sweet16.h"
#include QMK_KEYBOARD_H

enum layers {
num,
Expand Down
2 changes: 1 addition & 1 deletion keyboards/bpiphany/hid_liber/keymaps/bakageta/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 "hid_liber.h"
#include QMK_KEYBOARD_H

// Helpful defines
#define FN_CAPS LT(_FL, KC_CAPS)
Expand Down
2 changes: 1 addition & 1 deletion keyboards/contra/keymaps/maxr1998/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#include "contra.h"
#include QMK_KEYBOARD_H
#include "keymap_german.h"

enum contra_layers {
Expand Down
2 changes: 1 addition & 1 deletion keyboards/contra/keymaps/ryanm101/keymap.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "contra.h"
#include QMK_KEYBOARD_H
#include "action_layer.h"

extern keymap_config_t keymap_config;
Expand Down
8 changes: 0 additions & 8 deletions keyboards/deltasplit75/keymaps/itsaferbie/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
// #define MASTER_RIGHT
// #define EE_HANDS


#ifdef SUBPROJECT_v2
#include "../../v2/config.h"
#endif
#ifdef SUBPROJECT_protosplit
#include "../../protosplit/config.h"
#endif

#undef RGBLED_NUM
#define RGBLIGHT_EFFECT_BREATHING
#define RGBLIGHT_EFFECT_RAINBOW_MOOD
Expand Down
8 changes: 0 additions & 8 deletions keyboards/deltasplit75/keymaps/mbsurfer/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define MASTER_LEFT
// #define MASTER_RIGHT
// #define EE_HANDS


#ifdef SUBPROJECT_v2
#include "../../v2/config.h"
#endif
#ifdef SUBPROJECT_protosplit
#include "../../protosplit/config.h"
#endif
4 changes: 1 addition & 3 deletions keyboards/deltasplit75/keymaps/mbsurfer/keymap.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#include "deltasplit75.h"
#include "action_layer.h"
#include "eeconfig.h"
#include QMK_KEYBOARD_H

extern keymap_config_t keymap_config;

Expand Down
8 changes: 0 additions & 8 deletions keyboards/deltasplit75/keymaps/protosplit/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define MASTER_LEFT
// #define MASTER_RIGHT
// #define EE_HANDS


#ifdef SUBPROJECT_v2
#include "../../v2/config.h"
#endif
#ifdef SUBPROJECT_protosplit
#include "../../protosplit/config.h"
#endif
2 changes: 1 addition & 1 deletion keyboards/donutcables/scrabblepad/keymaps/random/keymap.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "scrabblepad.h"
#include QMK_KEYBOARD_H
#include <stdlib.h>

static uint16_t keystroke;
Expand Down
2 changes: 1 addition & 1 deletion keyboards/ergodox_ez/keymaps/rmw/keymap.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "ergodox_ez.h"
#include QMK_KEYBOARD_H
#include "version.h"

#define LONGPRESS_DELAY 180
Expand Down
2 changes: 1 addition & 1 deletion keyboards/gboards/gergoplex/keymaps/colemak-dhm/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* https://github.com/qmk/qmk_firmware/blob/master/docs/keycodes.md
*/

#include "gergoplex.h"
#include QMK_KEYBOARD_H
#include "g/keymap_combo.h"

enum {
Expand Down
2 changes: 1 addition & 1 deletion keyboards/handwired/twig/twig50/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2022 Takeshi Noda (nodatk@gmail.com)
// SPDX-License-Identifier: GPL-2.0-or-later

#include "twig50.h"
#include QMK_KEYBOARD_H

#define LAL_NCV LALT_T(KC_LNG2)
#define RAL_CNV RALT_T(KC_LNG1)
Expand Down
1 change: 0 additions & 1 deletion keyboards/handwired/xealous/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
AUDIO_ENABLE = yes # Audio output
RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight.
SPLIT_KEYBOARD = yes # Use shared split_common code
SUBPROJECT_rev1 = yes

SRC += matrix.c
DEBOUNCE_TYPE = sym_eager_pk
Expand Down
2 changes: 1 addition & 1 deletion keyboards/keebio/chocopad/keymaps/khord/keymap.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "chocopad.h"
#include QMK_KEYBOARD_H

#define _BASE 0
#define _FN1 1
Expand Down
4 changes: 1 addition & 3 deletions keyboards/keebio/iris/keymaps/krusli/keymap.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#include "iris.h"
#include "action_layer.h"
#include "eeconfig.h"
#include QMK_KEYBOARD_H

extern keymap_config_t keymap_config;

Expand Down
4 changes: 0 additions & 4 deletions keyboards/keebio/nyquist/keymaps/danielhklein/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

#define TAPPING_TERM 150
#define EE_HANDS

#ifdef SUBPROJECT_rev1
#include "../../rev1/config.h"
#endif
4 changes: 1 addition & 3 deletions keyboards/lets_split/keymaps/adam/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef CONFIG_USER_H
#define CONFIG_USER_H

#include "../../config.h"

/* Select hand configuration */

// #define MASTER_LEFT
// #define MASTER_RIGHT
#define EE_HANDS

#ifdef SUBPROJECT_rev2
#ifdef KEYBOARD_lets_split_rev2
/* RGB Underglow */
#undef RGBLED_NUM
#define RGBLIGHT_EFFECT_BREATHING
Expand Down
11 changes: 0 additions & 11 deletions keyboards/lets_split/keymaps/fabian/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define MASTER_LEFT
// #define MASTER_RIGHT
// #define EE_HANDS


#ifdef SUBPROJECT_rev1
#include "../../rev1/config.h"
#endif
#ifdef SUBPROJECT_rev2
#include "../../rev2/config.h"
#endif
#ifdef SUBPROJECT_rev2fliphalf
#include "../../rev2fliphalf/config.h"
#endif
10 changes: 0 additions & 10 deletions keyboards/lets_split/keymaps/heartrobotninja/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#undef TAPPING_TOGGLE
#define TAPPING_TOGGLE 2

#ifdef SUBPROJECT_rev1
#include "../../rev1/config.h"
#endif
#ifdef SUBPROJECT_rev2
#include "../../rev2/config.h"
#endif
#ifdef SUBPROJECT_rev2fliphalf
#include "../../rev2fliphalf/config.h"
#endif

#endif
11 changes: 0 additions & 11 deletions keyboards/lets_split/keymaps/mjt/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
// #define MASTER_RIGHT
// #define EE_HANDS


#ifdef SUBPROJECT_rev1
#include "../../rev1/config.h"
#endif
#ifdef SUBPROJECT_rev2
#include "../../rev2/config.h"
#endif
#ifdef SUBPROJECT_rev2fliphalf
#include "../../rev2fliphalf/config.h"
#endif

#undef RGBLED_NUM
#define RGBLIGHT_EFFECT_BREATHING
#define RGBLIGHT_EFFECT_RAINBOW_MOOD
Expand Down
1 change: 0 additions & 1 deletion keyboards/lets_split/keymaps/piemod/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,3 @@ AUDIO_ENABLE = no # Audio output on port C6
UNICODE_ENABLE = yes # Unicode
BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight.
SUBPROJECT_rev1 = no
22 changes: 20 additions & 2 deletions keyboards/lets_split/keymaps/zer09/keymap.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,24 @@
#include "keymap.h"
#include "zer09.h"

extern keymap_config_t keymap_config;
#undef LAYOUT
#define LAYOUT( \
L00, L01, L02, L03, L04, R00, R01, R02, R03, R04, \
L10, L11, L12, L13, L14, R10, R11, R12, R13, R14, \
L20, L21, L22, L23, L24, R20, R21, R22, R23, R24, \
L30, L31, L32, L33, L34, R30, R31, R32, R33, R34, \
L40, L41, L42, L43, L44, R40, R41, R42, R43, R44 \
) { \
{ L00, L01, L02, L03, L04 }, \
{ L10, L11, L12, L13, L14 }, \
{ L20, L21, L22, L23, L24 }, \
{ L30, L31, L32, L33, L34 }, \
{ L40, L41, L42, L43, L44 }, \
{ R00, R01, R02, R03, R04 }, \
{ R10, R11, R12, R13, R14 }, \
{ R20, R21, R22, R23, R24 }, \
{ R30, R31, R32, R33, R34 }, \
{ R40, R41, R42, R43, R44 } \
}

#define _baseLayer LAYOUT( \
KC_QUOTE, KC_COMMA, KC_DOT, KC_P, KC_Y, /**/KC_F, KC_G, KC_C, KC_R, KC_L, \
Expand Down
32 changes: 0 additions & 32 deletions keyboards/lets_split/keymaps/zer09/keymap.h

This file was deleted.

40 changes: 39 additions & 1 deletion keyboards/massdrop/alt/keymaps/pregame/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,45 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#include "keymap.h"
#include QMK_KEYBOARD_H

#define MILLISECONDS_IN_SECOND 1000

// These are just to make it neater to use builtin HSV values in the keymap
#define RED {HSV_RED}
#define CORAL {HSV_CORAL}
#define ORANGE {HSV_ORANGE}
#define GOLDEN {HSV_GOLDENROD}
#define GOLD {HSV_GOLD}
#define YELLOW {HSV_YELLOW}
#define CHART {HSV_CHARTREUSE}
#define GREEN {HSV_GREEN}
#define SPRING {HSV_SPRINGGREEN}
#define TURQ {HSV_TURQUOISE}
#define TEAL {HSV_TEAL}
#define CYAN {HSV_CYAN}
#define AZURE {HSV_AZURE}
#define BLUE {HSV_BLUE}
#define PURPLE {HSV_PURPLE}
#define MAGENT {HSV_MAGENTA}
#define PINK {HSV_PINK}



//========================================================== CONFIGURABLE DEFAULTS ==========================================================
extern bool g_suspend_state;
extern rgb_config_t rgb_matrix_config;
bool disable_layer_color;

enum alt_keycodes {
U_T_AUTO = SAFE_RANGE, // USB Extra Port Toggle Auto Detect / Always Active
U_T_AGCR, // USB Toggle Automatic GCR control
DBG_TOG, // DEBUG Toggle On / Off
DBG_MTRX, // DEBUG Toggle Matrix Prints
DBG_KBD, // DEBUG Toggle Keyboard Prints
DBG_MOU, // DEBUG Toggle Mouse Prints
MD_BOOT, // Restart into bootloader after hold timeout
};

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {

Expand Down
58 changes: 0 additions & 58 deletions keyboards/massdrop/alt/keymaps/pregame/keymap.h

This file was deleted.

Loading