Remove useless "ifdef KEYBOARD_*" (#20078)
Co-authored-by: Nick Brassel <nick@tzarc.org>
This commit is contained in:
@@ -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 "convolution.h"
|
||||
#include "quantum.h"
|
||||
|
||||
#ifdef ENCODER_ENABLE
|
||||
bool encoder_update_kb(uint8_t index, bool clockwise) {
|
||||
|
@@ -1,22 +0,0 @@
|
||||
/* Copyright 2022 Danny Nguyen <danny@keeb.io>
|
||||
|
||||
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"
|
||||
|
||||
#ifdef KEYBOARD_keebio_convolution_rev1
|
||||
#include "rev1.h"
|
||||
#endif
|
@@ -16,7 +16,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "convolution.h"
|
||||
#include "quantum.h"
|
||||
|
||||
#define LAYOUT_65xt( \
|
||||
|
@@ -1,17 +0,0 @@
|
||||
/* Copyright 2021 Danny Nguyen <danny@keeb.io>
|
||||
|
||||
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/>.
|
||||
*/
|
||||
|
||||
#include "dsp40.h"
|
@@ -1,21 +0,0 @@
|
||||
/* Copyright 2021 Danny Nguyen <danny@keeb.io>
|
||||
|
||||
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
|
||||
|
||||
#ifdef KEYBOARD_keebio_dsp40_rev1
|
||||
#include "rev1.h"
|
||||
#endif
|
@@ -15,7 +15,6 @@
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include "dsp40.h"
|
||||
#include "quantum.h"
|
||||
|
||||
#define LAYOUT_ortho_4x12( \
|
||||
|
@@ -1,17 +0,0 @@
|
||||
/* Copyright 2021 Danny Nguyen <danny@keeb.io>
|
||||
|
||||
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/>.
|
||||
*/
|
||||
|
||||
#include "foldkb.h"
|
@@ -1,23 +0,0 @@
|
||||
/* Copyright 2021 Danny Nguyen <danny@keeb.io>
|
||||
|
||||
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"
|
||||
|
||||
#ifdef KEYBOARD_keebio_foldkb_rev1
|
||||
#include "rev1.h"
|
||||
#endif
|
@@ -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 "foldkb.h"
|
||||
#include "rev1.h"
|
||||
|
||||
void eeconfig_init_kb(void) {
|
||||
#ifdef BACKLIGHT_ENABLE
|
||||
|
@@ -16,7 +16,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "foldkb.h"
|
||||
#include "quantum.h"
|
||||
|
||||
#define LAYOUT( \
|
||||
|
@@ -1 +0,0 @@
|
||||
#include "fourier.h"
|
@@ -1,9 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#ifdef KEYBOARD_fourier_rev1
|
||||
#include "rev1.h"
|
||||
#endif
|
||||
|
||||
#include "quantum.h"
|
||||
|
||||
#define LAYOUT( \
|
||||
|
@@ -1 +0,0 @@
|
||||
#include "iris.h"
|
@@ -1,26 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#if defined(KEYBOARD_keebio_iris_rev1)
|
||||
#include "rev1.h"
|
||||
#elif defined(KEYBOARD_keebio_iris_rev1_led)
|
||||
#include "rev1_led.h"
|
||||
#elif defined(KEYBOARD_keebio_iris_rev2)
|
||||
#include "rev2.h"
|
||||
#elif defined(KEYBOARD_keebio_iris_rev3)
|
||||
#include "rev3.h"
|
||||
#elif defined(KEYBOARD_keebio_iris_rev4)
|
||||
#include "rev4.h"
|
||||
#elif defined(KEYBOARD_keebio_iris_rev5)
|
||||
#include "rev5.h"
|
||||
#elif defined(KEYBOARD_keebio_iris_rev6)
|
||||
#include "rev6.h"
|
||||
#elif defined(KEYBOARD_keebio_iris_rev6a)
|
||||
#include "rev6a.h"
|
||||
#elif defined(KEYBOARD_keebio_iris_rev6b)
|
||||
#include "rev6b.h"
|
||||
#elif defined(KEYBOARD_keebio_iris_rev7)
|
||||
#include "rev7.h"
|
||||
#endif
|
||||
|
||||
#include "quantum.h"
|
||||
#include "via.h"
|
@@ -1,7 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include "iris.h"
|
||||
|
||||
#include "quantum.h"
|
||||
|
||||
#define LAYOUT( \
|
||||
|
@@ -1,7 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include "iris.h"
|
||||
|
||||
#include "quantum.h"
|
||||
|
||||
#define LAYOUT( \
|
||||
|
@@ -1,7 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include "iris.h"
|
||||
|
||||
#include "quantum.h"
|
||||
|
||||
#define LAYOUT( \
|
||||
|
@@ -1,6 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include "iris.h"
|
||||
#include "quantum.h"
|
||||
|
||||
#define LAYOUT( \
|
||||
|
@@ -1,6 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include "iris.h"
|
||||
#include "quantum.h"
|
||||
|
||||
#define LAYOUT( \
|
||||
|
@@ -17,7 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "iris.h"
|
||||
#include "quantum.h"
|
||||
|
||||
|
||||
|
@@ -17,7 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "iris.h"
|
||||
#include "quantum.h"
|
||||
|
||||
|
||||
|
@@ -17,7 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "iris.h"
|
||||
#include "quantum.h"
|
||||
|
||||
|
||||
|
@@ -17,7 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "iris.h"
|
||||
#include "quantum.h"
|
||||
|
||||
|
||||
|
@@ -17,7 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "iris.h"
|
||||
#include "quantum.h"
|
||||
|
||||
|
||||
|
@@ -1 +0,0 @@
|
||||
#include "kbo5000.h"
|
@@ -1,7 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#include "quantum.h"
|
||||
|
||||
#ifdef KEYBOARD_keebio_kbo5000_rev1
|
||||
#include "rev1.h"
|
||||
#endif
|
@@ -1,4 +1,4 @@
|
||||
#include "kbo5000.h"
|
||||
#include "rev1.h"
|
||||
#include "split_util.h"
|
||||
|
||||
void matrix_init_kb(void) {
|
||||
|
@@ -1,6 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include "kbo5000.h"
|
||||
#include "quantum.h"
|
||||
|
||||
#define LAYOUT_ansi( \
|
||||
|
@@ -1,4 +1,4 @@
|
||||
#include "levinson.h"
|
||||
#include "quantum.h"
|
||||
|
||||
#ifdef SWAP_HANDS_ENABLE
|
||||
__attribute__ ((weak))
|
||||
|
@@ -1,11 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#include "quantum.h"
|
||||
|
||||
#ifdef KEYBOARD_keebio_levinson_rev1
|
||||
#include "rev1.h"
|
||||
#elif KEYBOARD_keebio_levinson_rev2
|
||||
#include "rev2.h"
|
||||
#elif KEYBOARD_keebio_levinson_rev3
|
||||
#include "rev3.h"
|
||||
#endif
|
@@ -1 +0,0 @@
|
||||
#include "levinson.h"
|
@@ -1,7 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include "levinson.h"
|
||||
|
||||
#include "quantum.h"
|
||||
|
||||
#ifndef FLIP_HALF
|
||||
|
@@ -1,4 +1,4 @@
|
||||
#include "levinson.h"
|
||||
#include "rev2.h"
|
||||
|
||||
void eeconfig_init_kb(void) {
|
||||
#ifdef BACKLIGHT_ENABLE
|
||||
|
@@ -1,7 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include "levinson.h"
|
||||
|
||||
#include "quantum.h"
|
||||
|
||||
#ifndef FLIP_HALF
|
||||
|
@@ -1,4 +1,4 @@
|
||||
#include "levinson.h"
|
||||
#include "rev3.h"
|
||||
|
||||
void eeconfig_init_kb(void) {
|
||||
#ifdef BACKLIGHT_ENABLE
|
||||
|
@@ -1,7 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include "levinson.h"
|
||||
|
||||
#include "quantum.h"
|
||||
|
||||
#define LAYOUT( \
|
||||
|
@@ -1 +0,0 @@
|
||||
#include "nyquist.h"
|
@@ -1,13 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#ifdef KEYBOARD_keebio_nyquist_rev1
|
||||
#include "rev1.h"
|
||||
#endif
|
||||
#ifdef KEYBOARD_keebio_nyquist_rev2
|
||||
#include "rev2.h"
|
||||
#endif
|
||||
#ifdef KEYBOARD_keebio_nyquist_rev3
|
||||
#include "rev3.h"
|
||||
#endif
|
||||
|
||||
#include "quantum.h"
|
@@ -1 +0,0 @@
|
||||
#include "rev1.h"
|
@@ -1,7 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include "nyquist.h"
|
||||
|
||||
#include "quantum.h"
|
||||
|
||||
#ifndef FLIP_HALF
|
||||
|
@@ -1,7 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include "nyquist.h"
|
||||
|
||||
#include "quantum.h"
|
||||
|
||||
#ifndef FLIP_HALF
|
||||
|
@@ -1,6 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include "nyquist.h"
|
||||
#include "quantum.h"
|
||||
|
||||
#define LAYOUT( \
|
||||
|
@@ -1 +0,0 @@
|
||||
#include "quefrency.h"
|
@@ -1,19 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#include "quantum.h"
|
||||
|
||||
#ifdef KEYBOARD_keebio_quefrency_rev1
|
||||
#include "rev1.h"
|
||||
#endif
|
||||
#ifdef KEYBOARD_keebio_quefrency_rev2
|
||||
#include "rev2.h"
|
||||
#endif
|
||||
#ifdef KEYBOARD_keebio_quefrency_rev3
|
||||
#include "rev3.h"
|
||||
#endif
|
||||
#ifdef KEYBOARD_keebio_quefrency_rev4
|
||||
#include "rev4.h"
|
||||
#endif
|
||||
#ifdef KEYBOARD_keebio_quefrency_rev5
|
||||
#include "rev5.h"
|
||||
#endif
|
@@ -1,4 +1,4 @@
|
||||
#include "quefrency.h"
|
||||
#include "rev1.h"
|
||||
|
||||
void eeconfig_init_kb(void) {
|
||||
#ifdef RGBLIGHT_ENABLE
|
||||
|
@@ -1,7 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include "quefrency.h"
|
||||
|
||||
#include "quantum.h"
|
||||
|
||||
#define LAYOUT( \
|
||||
|
@@ -1,4 +1,4 @@
|
||||
#include "quefrency.h"
|
||||
#include "rev2.h"
|
||||
#include "split_util.h"
|
||||
|
||||
void matrix_init_kb(void) {
|
||||
|
@@ -1,6 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include "quefrency.h"
|
||||
#include "quantum.h"
|
||||
|
||||
#define LAYOUT_60( \
|
||||
|
@@ -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 "quefrency.h"
|
||||
#include "rev3.h"
|
||||
#include "split_util.h"
|
||||
|
||||
void matrix_init_kb(void) {
|
||||
|
@@ -16,7 +16,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "quefrency.h"
|
||||
#include "quantum.h"
|
||||
|
||||
#define LAYOUT_60( \
|
||||
|
@@ -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 "quefrency.h"
|
||||
#include "rev4.h"
|
||||
|
||||
#ifdef ENCODER_ENABLE
|
||||
bool encoder_update_kb(uint8_t index, bool clockwise) {
|
||||
|
@@ -16,7 +16,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "quefrency.h"
|
||||
#include "quantum.h"
|
||||
|
||||
#define LAYOUT_60( \
|
||||
|
@@ -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 "quefrency.h"
|
||||
#include "rev5.h"
|
||||
|
||||
#ifdef ENCODER_ENABLE
|
||||
bool encoder_update_kb(uint8_t index, bool clockwise) {
|
||||
|
@@ -16,7 +16,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "quefrency.h"
|
||||
#include "quantum.h"
|
||||
|
||||
#define LAYOUT_60( \
|
||||
|
@@ -1 +0,0 @@
|
||||
#include "rev1.h"
|
@@ -1,7 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include "rorschach.h"
|
||||
|
||||
#include "quantum.h"
|
||||
|
||||
#define LAYOUT( \
|
||||
|
@@ -1 +0,0 @@
|
||||
#include "rorschach.h"
|
@@ -1,7 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#ifdef KEYBOARD_keebio_rorschach_rev1
|
||||
#include "rev1.h"
|
||||
#endif
|
||||
|
||||
#include "quantum.h"
|
@@ -1,6 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include "sinc.h"
|
||||
#include "quantum.h"
|
||||
|
||||
#define XXX KC_NO
|
||||
|
@@ -16,7 +16,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "sinc.h"
|
||||
#include "quantum.h"
|
||||
|
||||
#define LAYOUT_75( \
|
||||
|
@@ -16,7 +16,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "sinc.h"
|
||||
#include "quantum.h"
|
||||
|
||||
#define LAYOUT_75( \
|
||||
|
@@ -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 "sinc.h"
|
||||
#include "quantum.h"
|
||||
#include "split_util.h"
|
||||
|
||||
#ifdef BACKLIGHT_ENABLE
|
||||
|
@@ -1,28 +0,0 @@
|
||||
/* Copyright 2021 Danny Nguyen <danny@keeb.io>
|
||||
|
||||
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"
|
||||
|
||||
#ifdef KEYBOARD_keebio_sinc_rev1
|
||||
#include "rev1.h"
|
||||
#endif
|
||||
#ifdef KEYBOARD_keebio_sinc_rev2
|
||||
#include "rev2.h"
|
||||
#endif
|
||||
#ifdef KEYBOARD_keebio_sinc_rev3
|
||||
#include "rev3.h"
|
||||
#endif
|
@@ -1 +0,0 @@
|
||||
#include "viterbi.h"
|
@@ -1,6 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include "viterbi.h"
|
||||
#include "quantum.h"
|
||||
|
||||
#ifndef FLIP_HALF
|
||||
|
@@ -1,4 +1,4 @@
|
||||
#include "viterbi.h"
|
||||
#include "rev2.h"
|
||||
|
||||
void eeconfig_init_kb(void) {
|
||||
#ifdef BACKLIGHT_ENABLE
|
||||
|
@@ -1,6 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include "viterbi.h"
|
||||
#include "quantum.h"
|
||||
|
||||
#define LAYOUT( \
|
||||
|
@@ -1 +0,0 @@
|
||||
#include "viterbi.h"
|
@@ -1,12 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#include "quantum.h"
|
||||
|
||||
#ifdef KEYBOARD_keebio_viterbi_rev1
|
||||
#include "rev1.h"
|
||||
#elif KEYBOARD_keebio_viterbi_rev2
|
||||
#include "rev2.h"
|
||||
#endif
|
||||
|
||||
#define LAYOUT_ortho_5x14 LAYOUT
|
||||
|
Reference in New Issue
Block a user