Parcourir la source

Remove redundant keyboard headers (#25208)

Joel Challis il y a 1 an
Parent
commit
4fb3cf0712

+ 14 - 1
keyboards/4pplet/perk60_iso/rev_a/rev_a.c

@@ -14,7 +14,20 @@ GNU General Public License for more details.
 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 "rev_a.h"
+#include "quantum.h"
+
+#ifndef CAPS_LOCK_ENABLE
+#    define CAPS_LOCK_ENABLE true
+#endif
+
+#ifndef CAPS_LOCK_COLOR
+#    define CAPS_LOCK_COLOR RGB_RED
+#endif
+
+#ifndef CAPS_LED_GROUP
+// change what leds to target, for example LED_FLAG_KEYLIGHT for alpas or LED_FLAG_MODIFIER for modifiers
+#    define CAPS_LED_GROUP LED_FLAG_INDICATOR
+#endif
 
 #ifdef RGB_MATRIX_ENABLE
 const is31fl3733_led_t PROGMEM g_is31fl3733_leds[IS31FL3733_LED_COUNT] = {

+ 0 - 23
keyboards/4pplet/perk60_iso/rev_a/rev_a.h

@@ -1,23 +0,0 @@
-/*
-Copyright 2022 Stefan Sundin "4pplet" <4pplet@protonmail.com>
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 2 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program.  If not, see <http://www.gnu.org/licenses/>.
-*/
-#pragma once
-
-#define CAPS_LOCK_ENABLE true
-#define CAPS_LOCK_COLOR RGB_RED
-#define CAPS_LED_GROUP LED_FLAG_INDICATOR // change what leds to target, for example LED_FLAG_KEYLIGHT for alpas or LED_FLAG_MODIFIER for modifiers
-
-#include "quantum.h"

+ 5 - 1
keyboards/4pplet/waffling60/rev_b/rev_b.c

@@ -14,7 +14,11 @@ GNU General Public License for more details.
 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 "rev_b.h"
+#include "quantum.h"
+
+#ifndef CAPS_LOCK_ENABLE
+#    define CAPS_LOCK_ENABLE true
+#endif
 
 bool led_update_kb(led_t led_state) {
     bool res = led_update_user(led_state);

+ 0 - 22
keyboards/4pplet/waffling60/rev_b/rev_b.h

@@ -1,22 +0,0 @@
-/*
-Copyright 2020 Stefan Sundin "4pplet" <4pplet@protonmail.com>
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 2 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program.  If not, see <http://www.gnu.org/licenses/>.
-*/
-#pragma once
-
-#define CAPS_LOCK_ENABLE true
-//#define CAPS_LOCK_COLOR HSV_ORANGE
-
-#include "quantum.h"

+ 5 - 1
keyboards/4pplet/waffling60/rev_c/rev_c.c

@@ -14,7 +14,11 @@ GNU General Public License for more details.
 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 "rev_c.h"
+#include "quantum.h"
+
+#ifndef CAPS_LOCK_ENABLE
+#    define CAPS_LOCK_ENABLE true
+#endif
 
 bool led_update_kb(led_t led_state) {
     bool res = led_update_user(led_state);

+ 0 - 22
keyboards/4pplet/waffling60/rev_c/rev_c.h

@@ -1,22 +0,0 @@
-/*
-Copyright 2022 Stefan Sundin "4pplet" <mail@4pplet.com>
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 2 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program.  If not, see <http://www.gnu.org/licenses/>.
-*/
-#pragma once
-
-#define CAPS_LOCK_ENABLE true
-//#define CAPS_LOCK_COLOR HSV_ORANGE
-
-#include "quantum.h"

+ 5 - 1
keyboards/4pplet/waffling60/rev_d/rev_d.c

@@ -14,7 +14,11 @@ GNU General Public License for more details.
 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 "rev_d.h"
+#include "quantum.h"
+
+#ifndef CAPS_LOCK_ENABLE
+#    define CAPS_LOCK_ENABLE true
+#endif
 
 bool led_update_kb(led_t led_state) {
     bool res = led_update_user(led_state);

+ 0 - 22
keyboards/4pplet/waffling60/rev_d/rev_d.h

@@ -1,22 +0,0 @@
-/*
-Copyright 2022 Stefan Sundin "4pplet" <mail@4pplet.com>
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 2 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program.  If not, see <http://www.gnu.org/licenses/>.
-*/
-#pragma once
-
-#define CAPS_LOCK_ENABLE true
-//#define CAPS_LOCK_COLOR HSV_ORANGE
-
-#include "quantum.h"

+ 9 - 1
keyboards/4pplet/waffling60/rev_e/rev_e.c

@@ -14,7 +14,15 @@ GNU General Public License for more details.
 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 "rev_e.h"
+#include "quantum.h"
+
+#ifndef CAPS_LOCK_ENABLE
+#    define CAPS_LOCK_ENABLE true
+#endif
+
+#ifndef CAPS_LOCK_COLOR
+#    define CAPS_LOCK_COLOR HSV_GREEN
+#endif
 
 void keyboard_pre_init_kb(void) {
     rgblight_set_effect_range(0, 16);

+ 0 - 22
keyboards/4pplet/waffling60/rev_e/rev_e.h

@@ -1,22 +0,0 @@
-/*
-Copyright 2022 Stefan Sundin "4pplet" <mail@4pplet.com>
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 2 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program.  If not, see <http://www.gnu.org/licenses/>.
-*/
-#pragma once
-
-#include "quantum.h"
-
-#define CAPS_LOCK_ENABLE true
-#define CAPS_LOCK_COLOR HSV_GREEN

+ 13 - 1
keyboards/4pplet/waffling80/rev_a/rev_a.c

@@ -14,7 +14,19 @@ GNU General Public License for more details.
 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 "rev_a.h"
+#include "quantum.h"
+
+#ifndef CAPS_LOCK_ENABLE
+#    define CAPS_LOCK_ENABLE 1
+#endif
+
+#ifndef SCROLL_LOCK_ENABLE
+#    define SCROLL_LOCK_ENABLE 1
+#endif
+
+// If colors are defined, they will be static. If not defined, color for indicators can be set in VIA.
+//#define CAPS_LOCK_COLOR HSV_GREEN
+//#define SCROLL_LOCK_COLOR HSV_GREEN
 
 bool led_update_kb(led_t led_state) {
     bool res = led_update_user(led_state);

+ 0 - 26
keyboards/4pplet/waffling80/rev_a/rev_a.h

@@ -1,26 +0,0 @@
-/*
-Copyright 2022 Stefan Sundin "4pplet" <mail@4pplet.com>
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 2 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program.  If not, see <http://www.gnu.org/licenses/>.
-*/
-#pragma once
-
-#define CAPS_LOCK_ENABLE 1
-#define SCROLL_LOCK_ENABLE 1
-
-// If colors are defined, they will be static. If not defined, color for incicators can be set in VIA.
-//#define CAPS_LOCK_COLOR HSV_GREEN
-//#define SCROLL_LOCK_COLOR HSV_GREEN
-
-#include "quantum.h"

+ 13 - 1
keyboards/4pplet/waffling80/rev_b/rev_b.c

@@ -14,7 +14,19 @@ GNU General Public License for more details.
 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 "rev_b.h"
+#include "quantum.h"
+
+#ifndef CAPS_LOCK_ENABLE
+#    define CAPS_LOCK_ENABLE 1
+#endif
+
+#ifndef SCROLL_LOCK_ENABLE
+#    define SCROLL_LOCK_ENABLE 1
+#endif
+
+// If colors are defined, they will be static. If not defined, color for indicators can be set in VIA.
+//#define CAPS_LOCK_COLOR HSV_GREEN
+//#define SCROLL_LOCK_COLOR HSV_GREEN
 
 bool led_update_kb(led_t led_state) {
     bool res = led_update_user(led_state);

+ 0 - 26
keyboards/4pplet/waffling80/rev_b/rev_b.h

@@ -1,26 +0,0 @@
-/*
-Copyright 2022 Stefan Sundin "4pplet" <mail@4pplet.com>
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 2 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program.  If not, see <http://www.gnu.org/licenses/>.
-*/
-#pragma once
-
-#define CAPS_LOCK_ENABLE 1
-#define SCROLL_LOCK_ENABLE 1
-
-// If colors are defined, they will be static. If not defined, color for incicators can be set in VIA.
-//#define CAPS_LOCK_COLOR HSV_GREEN
-//#define SCROLL_LOCK_COLOR HSV_GREEN
-
-#include "quantum.h"

+ 13 - 1
keyboards/4pplet/waffling80/rev_b_ansi/rev_b_ansi.c

@@ -14,7 +14,19 @@ GNU General Public License for more details.
 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 "rev_b_ansi.h"
+#include "quantum.h"
+
+#ifndef CAPS_LOCK_ENABLE
+#    define CAPS_LOCK_ENABLE 1
+#endif
+
+#ifndef SCROLL_LOCK_ENABLE
+#    define SCROLL_LOCK_ENABLE 1
+#endif
+
+// If colors are defined, they will be static. If not defined, color for indicators can be set in VIA.
+//#define CAPS_LOCK_COLOR HSV_GREEN
+//#define SCROLL_LOCK_COLOR HSV_GREEN
 
 bool led_update_kb(led_t led_state) {
     bool res = led_update_user(led_state);

+ 0 - 26
keyboards/4pplet/waffling80/rev_b_ansi/rev_b_ansi.h

@@ -1,26 +0,0 @@
-/*
-Copyright 2022 Stefan Sundin "4pplet" <mail@4pplet.com>
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 2 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program.  If not, see <http://www.gnu.org/licenses/>.
-*/
-#pragma once
-
-#define CAPS_LOCK_ENABLE 1
-#define SCROLL_LOCK_ENABLE 1
-
-// If colors are defined, they will be static. If not defined, color for incicators can be set in VIA.
-//#define CAPS_LOCK_COLOR HSV_GREEN
-//#define SCROLL_LOCK_COLOR HSV_GREEN
-
-#include "quantum.h"

+ 0 - 6
keyboards/lendunistus/rpneko65/rev1/config.h

@@ -1,6 +0,0 @@
-// Copyright 2023 lendunistus
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#pragma once
-
-#define CAPS_LOCK_ENABLE true

+ 4 - 0
keyboards/lendunistus/rpneko65/rev1/rev1.c

@@ -16,6 +16,10 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 #include "quantum.h"
 
+#ifndef CAPS_LOCK_ENABLE
+#    define CAPS_LOCK_ENABLE true
+#endif
+
 bool led_update_kb(led_t led_state) {
     bool res = led_update_user(led_state);
     if (CAPS_LOCK_ENABLE && res) {

+ 9 - 1
keyboards/umbra/solder/solder.c

@@ -14,7 +14,15 @@ GNU General Public License for more details.
 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 "solder.h"
+#include "quantum.h"
+
+#ifndef CAPS_LOCK_ENABLE
+#    define CAPS_LOCK_ENABLE true
+#endif
+
+#ifndef CAPS_LOCK_COLOR
+#    define CAPS_LOCK_COLOR HSV_GREEN
+#endif
 
 void keyboard_pre_init_kb(void) {
     rgblight_set_effect_range(0, 16);

+ 0 - 22
keyboards/umbra/solder/solder.h

@@ -1,22 +0,0 @@
-/*
-Copyright 2024 Joseph Williams IV "IV Works" <josephawilliamsiv@gmail.com>
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 2 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program.  If not, see <http://www.gnu.org/licenses/>.
-*/
-#pragma once
-
-#include "quantum.h"
-
-#define CAPS_LOCK_ENABLE true
-#define CAPS_LOCK_COLOR HSV_GREEN