From 499fc3b85e99de725535eb73f653d77a71339e3f Mon Sep 17 00:00:00 2001 From: Ryan Date: Wed, 22 Feb 2023 02:55:23 +1100 Subject: Add some missing `#pragma once`s (#19902) --- keyboards/1upkeyboards/pi60/config.h | 2 -- keyboards/25keys/zinc/rev1/post_config.h | 2 ++ keyboards/25keys/zinc/reva/post_config.h | 2 ++ keyboards/adkb96/rev1/config.h | 2 ++ keyboards/adm42/rev4/config.h | 2 ++ keyboards/adpenrose/kintsugi/post_config.h | 2 ++ keyboards/akb/vero/mcuconf.h | 2 ++ keyboards/atlantis/encoder_actions.h | 2 ++ keyboards/binepad/bnr1/v2/config.h | 2 -- keyboards/cannonkeys/ortho60v2/mcuconf.h | 2 +- keyboards/capsunlocked/cu80/v2_iso/rgb/config.h | 2 ++ keyboards/clueboard/2x1800/2021/font.h | 2 ++ keyboards/doio/kb38/config.h | 1 - keyboards/duck/eagle_viper/v2/indicator_leds.h | 2 ++ keyboards/duck/lightsaver/indicator_leds.h | 2 ++ keyboards/duck/octagon/v2/indicator_leds.h | 2 ++ keyboards/duck/tcv3/indicator_leds.h | 2 ++ keyboards/ergodox_stm32/board.h | 2 ++ keyboards/gboards/engine/config.h | 0 keyboards/geekboards/macropad_v2/config.h | 2 ++ keyboards/handwired/onekey/bluepill_f103c6/board.h | 3 +++ keyboards/hineybush/h87a/config.h | 3 +-- keyboards/horrortroll/handwired_k552/board.h | 2 ++ keyboards/jm60/board.h | 2 ++ keyboards/kakunpc/business_card/config.h | 0 keyboards/kbdfans/odin/rgb/config.h | 2 ++ keyboards/kbdfans/odin/soldered/config.h | 2 ++ keyboards/kbdfans/odin/v2/config.h | 1 + keyboards/kbdfans/odinmini/config.h | 2 ++ keyboards/keebio/encoder_actions.h | 2 ++ keyboards/keychron/common/keychron_common.h | 2 ++ keyboards/keychron/v3/mcuconf.h | 2 ++ keyboards/keychron/v5/halconf.h | 2 ++ keyboards/keychron/v5/mcuconf.h | 2 ++ keyboards/keychron/v6/halconf.h | 2 ++ keyboards/keychron/v6/mcuconf.h | 2 ++ keyboards/linworks/whale75/chconf.h | 17 ----------------- keyboards/linworks/whale75/mcuconf.h | 2 ++ keyboards/lw75/config.h | 2 -- keyboards/macro3/post_config.h | 2 ++ keyboards/merge/uc1/config.h | 1 + keyboards/merge/um70/config.h | 1 + keyboards/merge/um80/config.h | 1 + keyboards/merge/uma/config.h | 1 + keyboards/mode/m80v1/config.h | 2 ++ keyboards/nightly_boards/adellein/encoder_action.h | 2 ++ keyboards/nightly_boards/n40_o/encoder_action.h | 2 ++ keyboards/nightly_boards/n60_s/encoder_action.h | 2 ++ keyboards/nightly_boards/octopad/encoder_action.h | 2 ++ keyboards/np12/config.h | 3 +-- keyboards/planck/rev6/mcuconf.h | 2 ++ keyboards/planck/rev6_drop/mcuconf.h | 2 ++ keyboards/preonic/rev3/mcuconf.h | 2 ++ keyboards/preonic/rev3_drop/mcuconf.h | 2 ++ keyboards/quarkeys/z67/hotswap/config.h | 1 - keyboards/quarkeys/z67/solder/config.h | 1 - keyboards/rmi_kb/squishyfrl/mcuconf.h | 2 ++ keyboards/rmi_kb/squishytkl/mcuconf.h | 2 ++ .../krush/krush65/hotswap/encoder_actions.h | 2 ++ .../krush/krush65/solder/encoder_actions.h | 2 ++ keyboards/spaceholdings/nebula68b/hs/config.h | 2 ++ keyboards/stello65/beta/encoder_actions.h | 2 ++ keyboards/teleport/native/mcuconf.h | 2 ++ keyboards/weirdo/geminate60/chconf.h | 2 ++ keyboards/wekey/we27/encoder_actions.h | 2 ++ 65 files changed, 105 insertions(+), 31 deletions(-) delete mode 100644 keyboards/gboards/engine/config.h delete mode 100644 keyboards/kakunpc/business_card/config.h delete mode 100644 keyboards/linworks/whale75/chconf.h (limited to 'keyboards') diff --git a/keyboards/1upkeyboards/pi60/config.h b/keyboards/1upkeyboards/pi60/config.h index 24a8d9218b..3ba6144e59 100644 --- a/keyboards/1upkeyboards/pi60/config.h +++ b/keyboards/1upkeyboards/pi60/config.h @@ -3,8 +3,6 @@ #pragma once -#include "config_common.h" - #define DYNAMIC_KEYMAP_LAYER_COUNT 10 #define RGB_DI_PIN GP17 diff --git a/keyboards/25keys/zinc/rev1/post_config.h b/keyboards/25keys/zinc/rev1/post_config.h index 54608f8f67..15857d3b0b 100644 --- a/keyboards/25keys/zinc/rev1/post_config.h +++ b/keyboards/25keys/zinc/rev1/post_config.h @@ -15,6 +15,8 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ +#pragma once + // RGB LED support // see ./rules.mk: LED_ANIMATIONS = yes or no // see ./rules.mk: LED_BACK_ENABLE or LED_UNDERGLOW_ENABLE set yes diff --git a/keyboards/25keys/zinc/reva/post_config.h b/keyboards/25keys/zinc/reva/post_config.h index 54608f8f67..15857d3b0b 100644 --- a/keyboards/25keys/zinc/reva/post_config.h +++ b/keyboards/25keys/zinc/reva/post_config.h @@ -15,6 +15,8 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ +#pragma once + // RGB LED support // see ./rules.mk: LED_ANIMATIONS = yes or no // see ./rules.mk: LED_BACK_ENABLE or LED_UNDERGLOW_ENABLE set yes diff --git a/keyboards/adkb96/rev1/config.h b/keyboards/adkb96/rev1/config.h index b8ab452acc..c5a9673671 100644 --- a/keyboards/adkb96/rev1/config.h +++ b/keyboards/adkb96/rev1/config.h @@ -16,6 +16,8 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ +#pragma once + // wiring of each half #define MATRIX_ROW_PINS { D4, C6, D7, E6, B4, B5 } #define MATRIX_COL_PINS { B6, B2, B3, B1, F7, F6, F5, F4 } diff --git a/keyboards/adm42/rev4/config.h b/keyboards/adm42/rev4/config.h index 9ad330d8f7..c03603b011 100644 --- a/keyboards/adm42/rev4/config.h +++ b/keyboards/adm42/rev4/config.h @@ -14,6 +14,8 @@ * along with this program. If not, see . */ +#pragma once + #define MATRIX_COL_PINS { C6, B6, B5, B4, D7, D6, F0, F1, F4, F5, F6, F7 } #define MATRIX_ROW_PINS { C7, D5, D3, D2 } diff --git a/keyboards/adpenrose/kintsugi/post_config.h b/keyboards/adpenrose/kintsugi/post_config.h index e1f92f9e60..36913903f7 100644 --- a/keyboards/adpenrose/kintsugi/post_config.h +++ b/keyboards/adpenrose/kintsugi/post_config.h @@ -15,6 +15,8 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ +#pragma once + #ifndef OLED_FONT_H # define OLED_FONT_H "lib/kintsugifont.c" # define OLED_TIMEOUT 120000 diff --git a/keyboards/akb/vero/mcuconf.h b/keyboards/akb/vero/mcuconf.h index bf2d83997c..e93fdc1d23 100644 --- a/keyboards/akb/vero/mcuconf.h +++ b/keyboards/akb/vero/mcuconf.h @@ -14,6 +14,8 @@ * along with this program. If not, see . */ +#pragma once + #include_next /* Set PLL M divider from 4 (F411 GENERIC default) to 8, because of 16 MHz crystal on board */ #undef STM32_PLLM_VALUE diff --git a/keyboards/atlantis/encoder_actions.h b/keyboards/atlantis/encoder_actions.h index 2484af52ae..1a7fb72014 100644 --- a/keyboards/atlantis/encoder_actions.h +++ b/keyboards/atlantis/encoder_actions.h @@ -14,6 +14,8 @@ * along with this program. If not, see . */ +#pragma once + #include "quantum.h" void encoder_action_unregister(void); diff --git a/keyboards/binepad/bnr1/v2/config.h b/keyboards/binepad/bnr1/v2/config.h index 7fbf1cfab1..c408f95d38 100644 --- a/keyboards/binepad/bnr1/v2/config.h +++ b/keyboards/binepad/bnr1/v2/config.h @@ -3,7 +3,5 @@ #pragma once -#include "config_common.h" - #define WEAR_LEVELING_LOGICAL_SIZE 1024 #define WEAR_LEVELING_BACKING_SIZE (WEAR_LEVELING_LOGICAL_SIZE * 2) diff --git a/keyboards/cannonkeys/ortho60v2/mcuconf.h b/keyboards/cannonkeys/ortho60v2/mcuconf.h index 533c3f1e23..75a6bb41ec 100644 --- a/keyboards/cannonkeys/ortho60v2/mcuconf.h +++ b/keyboards/cannonkeys/ortho60v2/mcuconf.h @@ -3,7 +3,7 @@ #pragma once -#include_next "mcuconf.h" +#include_next #undef RP_PWM_USE_PWM6 #define RP_PWM_USE_PWM6 TRUE diff --git a/keyboards/capsunlocked/cu80/v2_iso/rgb/config.h b/keyboards/capsunlocked/cu80/v2_iso/rgb/config.h index 4d15aca40c..3fe745d278 100644 --- a/keyboards/capsunlocked/cu80/v2_iso/rgb/config.h +++ b/keyboards/capsunlocked/cu80/v2_iso/rgb/config.h @@ -15,6 +15,8 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ +#pragma once + /* enable RGB matrix */ #define CU80_RGB diff --git a/keyboards/clueboard/2x1800/2021/font.h b/keyboards/clueboard/2x1800/2021/font.h index 5ddcbfba56..191d11dcee 100644 --- a/keyboards/clueboard/2x1800/2021/font.h +++ b/keyboards/clueboard/2x1800/2021/font.h @@ -24,6 +24,8 @@ * OTHER DEALINGS IN THE SOFTWARE. */ +#pragma once + // Top row of keyboard, when shift held #define CHR_TILDE {0b00110000, 0b01000000, 0b00110000, 0b00001000, 0b00110000, 0b00000000} #define CHR_BANG {0b00000000, 0b00000000, 0b11111010, 0b10000000, 0b00000000, 0b00000000} diff --git a/keyboards/doio/kb38/config.h b/keyboards/doio/kb38/config.h index ba8eb14a11..416219d5c7 100644 --- a/keyboards/doio/kb38/config.h +++ b/keyboards/doio/kb38/config.h @@ -2,7 +2,6 @@ // SPDX-License-Identifier: GPL-2.0-or-later #pragma once -#include "config_common.h" #define RGB_DI_PIN F6 #define RGB_MATRIX_LED_COUNT 44 diff --git a/keyboards/duck/eagle_viper/v2/indicator_leds.h b/keyboards/duck/eagle_viper/v2/indicator_leds.h index fe66eef6b2..2c6f13101d 100644 --- a/keyboards/duck/eagle_viper/v2/indicator_leds.h +++ b/keyboards/duck/eagle_viper/v2/indicator_leds.h @@ -1 +1,3 @@ +#pragma once + void indicator_leds_set(bool leds[8]); diff --git a/keyboards/duck/lightsaver/indicator_leds.h b/keyboards/duck/lightsaver/indicator_leds.h index fe66eef6b2..2c6f13101d 100644 --- a/keyboards/duck/lightsaver/indicator_leds.h +++ b/keyboards/duck/lightsaver/indicator_leds.h @@ -1 +1,3 @@ +#pragma once + void indicator_leds_set(bool leds[8]); diff --git a/keyboards/duck/octagon/v2/indicator_leds.h b/keyboards/duck/octagon/v2/indicator_leds.h index 2c1bfe5624..9d89e3e3d1 100644 --- a/keyboards/duck/octagon/v2/indicator_leds.h +++ b/keyboards/duck/octagon/v2/indicator_leds.h @@ -1,3 +1,5 @@ +#pragma once + #include "duck_led/duck_led.h" void indicator_leds_set(bool leds[7]); diff --git a/keyboards/duck/tcv3/indicator_leds.h b/keyboards/duck/tcv3/indicator_leds.h index ad3ec54f52..9bd437084d 100644 --- a/keyboards/duck/tcv3/indicator_leds.h +++ b/keyboards/duck/tcv3/indicator_leds.h @@ -1,3 +1,5 @@ +#pragma once + #include "duck_led/duck_led.h" void indicator_leds_set(bool leds[8]); diff --git a/keyboards/ergodox_stm32/board.h b/keyboards/ergodox_stm32/board.h index 23f9495789..c1c37c0659 100644 --- a/keyboards/ergodox_stm32/board.h +++ b/keyboards/ergodox_stm32/board.h @@ -15,6 +15,8 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ +#pragma once + #include_next #ifdef STM32_LSECLK diff --git a/keyboards/gboards/engine/config.h b/keyboards/gboards/engine/config.h deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/keyboards/geekboards/macropad_v2/config.h b/keyboards/geekboards/macropad_v2/config.h index eb9850804f..eb01b1ad13 100644 --- a/keyboards/geekboards/macropad_v2/config.h +++ b/keyboards/geekboards/macropad_v2/config.h @@ -14,6 +14,8 @@ * along with this program. If not, see . */ +#pragma once + #define RGBLED_NUM 42 #define RGB_MATRIX_LED_COUNT 42 #define RGB_DI_PIN A7 diff --git a/keyboards/handwired/onekey/bluepill_f103c6/board.h b/keyboards/handwired/onekey/bluepill_f103c6/board.h index 4889f351a6..7513db63ed 100644 --- a/keyboards/handwired/onekey/bluepill_f103c6/board.h +++ b/keyboards/handwired/onekey/bluepill_f103c6/board.h @@ -1,5 +1,8 @@ // Copyright 2022 Sergey Vlasov (@sigprof) // SPDX-License-Identifier: GPL-2.0-or-later + +#pragma once + #include_next #undef STM32F103xB diff --git a/keyboards/hineybush/h87a/config.h b/keyboards/hineybush/h87a/config.h index f15a2f499e..66255785f4 100644 --- a/keyboards/hineybush/h87a/config.h +++ b/keyboards/hineybush/h87a/config.h @@ -15,8 +15,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#define CONFIG_H - +#pragma once /* * Keyboard Matrix Assignments diff --git a/keyboards/horrortroll/handwired_k552/board.h b/keyboards/horrortroll/handwired_k552/board.h index edd68f15ae..bcea7cd793 100644 --- a/keyboards/horrortroll/handwired_k552/board.h +++ b/keyboards/horrortroll/handwired_k552/board.h @@ -14,6 +14,8 @@ * along with this program. If not, see . */ +#pragma once + #include_next #undef STM32F103xB diff --git a/keyboards/jm60/board.h b/keyboards/jm60/board.h index 23f9495789..c1c37c0659 100644 --- a/keyboards/jm60/board.h +++ b/keyboards/jm60/board.h @@ -15,6 +15,8 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ +#pragma once + #include_next #ifdef STM32_LSECLK diff --git a/keyboards/kakunpc/business_card/config.h b/keyboards/kakunpc/business_card/config.h deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/keyboards/kbdfans/odin/rgb/config.h b/keyboards/kbdfans/odin/rgb/config.h index 68c3539e02..12c5e539da 100644 --- a/keyboards/kbdfans/odin/rgb/config.h +++ b/keyboards/kbdfans/odin/rgb/config.h @@ -14,6 +14,8 @@ * along with this program. If not, see . */ +#pragma once + #define MATRIX_ROW_PINS { A10, A9, A8, B14, B13, A2 } #define MATRIX_COL_PINS { A3, A4, A5, A6, A7, B0, B1, B2, B12, A15, B3, B4, B5, B6, B7, B8, C13, C14, C15, A0} diff --git a/keyboards/kbdfans/odin/soldered/config.h b/keyboards/kbdfans/odin/soldered/config.h index b44ccbb40d..dcda05b8d0 100644 --- a/keyboards/kbdfans/odin/soldered/config.h +++ b/keyboards/kbdfans/odin/soldered/config.h @@ -14,6 +14,8 @@ * along with this program. If not, see . */ +#pragma once + #define MATRIX_ROW_PINS { A10, A9, A8, B14, B13, A2 } #define MATRIX_COL_PINS { A3, A4, A5, A6, A7, B0, B1, B2, B12, A15, B3, B4, B5, B6, B7, B8, C13, C14, C15, A0} diff --git a/keyboards/kbdfans/odin/v2/config.h b/keyboards/kbdfans/odin/v2/config.h index 160a8e96e7..5ed85f0b91 100644 --- a/keyboards/kbdfans/odin/v2/config.h +++ b/keyboards/kbdfans/odin/v2/config.h @@ -14,6 +14,7 @@ * along with this program. If not, see . */ +#pragma once #define MATRIX_ROW_PINS { A10, A9, A8, B14, B13, A2 } #define MATRIX_COL_PINS { A3, A4, A5, A6, A7, B0, B1, B2, B12, A15, B3, B4, B5, B6, B7, B8, C13, C14, C15, A0} diff --git a/keyboards/kbdfans/odinmini/config.h b/keyboards/kbdfans/odinmini/config.h index 55c82f43df..c189238244 100644 --- a/keyboards/kbdfans/odinmini/config.h +++ b/keyboards/kbdfans/odinmini/config.h @@ -14,6 +14,8 @@ * along with this program. If not, see . */ +#pragma once + #define RGBLIGHT_DEFAULT_MODE (RGBLIGHT_EFFECT_RAINBOW_MOOD + 8) #define RP2040_BOOTLOADER_DOUBLE_TAP_RESET diff --git a/keyboards/keebio/encoder_actions.h b/keyboards/keebio/encoder_actions.h index 2484af52ae..1a7fb72014 100644 --- a/keyboards/keebio/encoder_actions.h +++ b/keyboards/keebio/encoder_actions.h @@ -14,6 +14,8 @@ * along with this program. If not, see . */ +#pragma once + #include "quantum.h" void encoder_action_unregister(void); diff --git a/keyboards/keychron/common/keychron_common.h b/keyboards/keychron/common/keychron_common.h index 9f943b8986..b492cda88f 100644 --- a/keyboards/keychron/common/keychron_common.h +++ b/keyboards/keychron/common/keychron_common.h @@ -14,6 +14,8 @@ * along with this program. If not, see . */ +#pragma once + #include "stdint.h" #ifdef VIA_ENABLE # include "via.h" diff --git a/keyboards/keychron/v3/mcuconf.h b/keyboards/keychron/v3/mcuconf.h index ea7ac022d7..0ca8c64850 100644 --- a/keyboards/keychron/v3/mcuconf.h +++ b/keyboards/keychron/v3/mcuconf.h @@ -14,6 +14,8 @@ * along with this program. If not, see . */ +#pragma once + #include_next #undef STM32_I2C_USE_I2C1 diff --git a/keyboards/keychron/v5/halconf.h b/keyboards/keychron/v5/halconf.h index b74de4f0d4..41bddcb279 100644 --- a/keyboards/keychron/v5/halconf.h +++ b/keyboards/keychron/v5/halconf.h @@ -14,6 +14,8 @@ * along with this program. If not, see . */ +#pragma once + #define HAL_USE_I2C TRUE #include_next diff --git a/keyboards/keychron/v5/mcuconf.h b/keyboards/keychron/v5/mcuconf.h index ea7ac022d7..0ca8c64850 100644 --- a/keyboards/keychron/v5/mcuconf.h +++ b/keyboards/keychron/v5/mcuconf.h @@ -14,6 +14,8 @@ * along with this program. If not, see . */ +#pragma once + #include_next #undef STM32_I2C_USE_I2C1 diff --git a/keyboards/keychron/v6/halconf.h b/keyboards/keychron/v6/halconf.h index a7e5474b8c..e490b49e00 100644 --- a/keyboards/keychron/v6/halconf.h +++ b/keyboards/keychron/v6/halconf.h @@ -14,6 +14,8 @@ * along with this program. If not, see . */ +#pragma once + #define HAL_USE_I2C TRUE #define PAL_USE_CALLBACKS TRUE diff --git a/keyboards/keychron/v6/mcuconf.h b/keyboards/keychron/v6/mcuconf.h index ea7ac022d7..0ca8c64850 100644 --- a/keyboards/keychron/v6/mcuconf.h +++ b/keyboards/keychron/v6/mcuconf.h @@ -14,6 +14,8 @@ * along with this program. If not, see . */ +#pragma once + #include_next #undef STM32_I2C_USE_I2C1 diff --git a/keyboards/linworks/whale75/chconf.h b/keyboards/linworks/whale75/chconf.h deleted file mode 100644 index 156fcf1ee2..0000000000 --- a/keyboards/linworks/whale75/chconf.h +++ /dev/null @@ -1,17 +0,0 @@ -/* Copyright 2020 QMK Contributors - * - * 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 3 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 . - */ - -#include_next diff --git a/keyboards/linworks/whale75/mcuconf.h b/keyboards/linworks/whale75/mcuconf.h index f6dc94d2db..a89e1dd02b 100644 --- a/keyboards/linworks/whale75/mcuconf.h +++ b/keyboards/linworks/whale75/mcuconf.h @@ -14,6 +14,8 @@ * along with this program. If not, see . */ +#pragma once + #include_next // Underglow uses TIM4, Backlight TIM1, so both are enabled here. diff --git a/keyboards/lw75/config.h b/keyboards/lw75/config.h index eb2d9efc26..02e5be2413 100644 --- a/keyboards/lw75/config.h +++ b/keyboards/lw75/config.h @@ -3,8 +3,6 @@ #pragma once -#include "config_common.h" - /* key matrix pins */ #define MATRIX_ROW_PINS { E6, B7, D0, D1, D2, B1 } #define MATRIX_COL_PINS { D3, D5, D4, D6, D7, B4, B5, B6, C6, C7, F7, F6, F5, F4, B0, B2 } diff --git a/keyboards/macro3/post_config.h b/keyboards/macro3/post_config.h index 0f94fe19e1..4e2b6cf1b9 100644 --- a/keyboards/macro3/post_config.h +++ b/keyboards/macro3/post_config.h @@ -3,6 +3,8 @@ * SPDX-License-Identifier: GPL-2.0+ */ +#pragma once + /* Top right key */ #ifndef BOOTMAGIC_LITE_ROW # define BOOTMAGIC_LITE_ROW 0 diff --git a/keyboards/merge/uc1/config.h b/keyboards/merge/uc1/config.h index 4257b17beb..488b2cfed3 100644 --- a/keyboards/merge/uc1/config.h +++ b/keyboards/merge/uc1/config.h @@ -14,6 +14,7 @@ * along with this program. If not, see . */ +#pragma once #define MATRIX_ROW_PINS { B1, B2 } #define MATRIX_COL_PINS { B3, B4 } diff --git a/keyboards/merge/um70/config.h b/keyboards/merge/um70/config.h index 553b939ee2..69500ee603 100644 --- a/keyboards/merge/um70/config.h +++ b/keyboards/merge/um70/config.h @@ -14,6 +14,7 @@ * along with this program. If not, see . */ +#pragma once #define MATRIX_ROW_PINS { B0, B1, B2, B3, B7 } #define MATRIX_COL_PINS { F0, F1, F4, F5, F6, F7, D6, D4 } diff --git a/keyboards/merge/um80/config.h b/keyboards/merge/um80/config.h index 0dd371ddc2..bba359e02f 100644 --- a/keyboards/merge/um80/config.h +++ b/keyboards/merge/um80/config.h @@ -14,6 +14,7 @@ * along with this program. If not, see . */ +#pragma once #define MATRIX_ROW_PINS { B0, B1, B2, B3, B7, C7 } #define MATRIX_COL_PINS { F0, F1, F4, F5, F6, F7, D6, D4 } diff --git a/keyboards/merge/uma/config.h b/keyboards/merge/uma/config.h index 6e7d2b959c..8744fc0fd5 100644 --- a/keyboards/merge/uma/config.h +++ b/keyboards/merge/uma/config.h @@ -14,6 +14,7 @@ * along with this program. If not, see . */ +#pragma once #define MATRIX_ROW_PINS { B0, B1, B2, B3, B7 } #define MATRIX_COL_PINS { F0, F1, F4, F5, F6, F7, D6, D4 } diff --git a/keyboards/mode/m80v1/config.h b/keyboards/mode/m80v1/config.h index c50628ca54..6b59fc9872 100644 --- a/keyboards/mode/m80v1/config.h +++ b/keyboards/mode/m80v1/config.h @@ -15,6 +15,8 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ +#pragma once + /* * Keyboard Matrix Assignments * diff --git a/keyboards/nightly_boards/adellein/encoder_action.h b/keyboards/nightly_boards/adellein/encoder_action.h index 098210d40c..fb22632632 100644 --- a/keyboards/nightly_boards/adellein/encoder_action.h +++ b/keyboards/nightly_boards/adellein/encoder_action.h @@ -14,6 +14,8 @@ * along with this program. If not, see . */ +#pragma once + #include "quantum.h" void encoder_action_unregister(void); diff --git a/keyboards/nightly_boards/n40_o/encoder_action.h b/keyboards/nightly_boards/n40_o/encoder_action.h index 098210d40c..fb22632632 100644 --- a/keyboards/nightly_boards/n40_o/encoder_action.h +++ b/keyboards/nightly_boards/n40_o/encoder_action.h @@ -14,6 +14,8 @@ * along with this program. If not, see . */ +#pragma once + #include "quantum.h" void encoder_action_unregister(void); diff --git a/keyboards/nightly_boards/n60_s/encoder_action.h b/keyboards/nightly_boards/n60_s/encoder_action.h index 098210d40c..fb22632632 100644 --- a/keyboards/nightly_boards/n60_s/encoder_action.h +++ b/keyboards/nightly_boards/n60_s/encoder_action.h @@ -14,6 +14,8 @@ * along with this program. If not, see . */ +#pragma once + #include "quantum.h" void encoder_action_unregister(void); diff --git a/keyboards/nightly_boards/octopad/encoder_action.h b/keyboards/nightly_boards/octopad/encoder_action.h index 098210d40c..fb22632632 100644 --- a/keyboards/nightly_boards/octopad/encoder_action.h +++ b/keyboards/nightly_boards/octopad/encoder_action.h @@ -14,6 +14,8 @@ * along with this program. If not, see . */ +#pragma once + #include "quantum.h" void encoder_action_unregister(void); diff --git a/keyboards/np12/config.h b/keyboards/np12/config.h index ec1c0d34b5..cd4d98e943 100644 --- a/keyboards/np12/config.h +++ b/keyboards/np12/config.h @@ -14,8 +14,7 @@ * along with this program. If not, see . */ - - +#pragma once #define MATRIX_ROW_PINS { D7, E6, B4, F7 } #define MATRIX_COL_PINS { D1, D0, D4, C6, F6 } diff --git a/keyboards/planck/rev6/mcuconf.h b/keyboards/planck/rev6/mcuconf.h index 540e708a6e..3196b43ca4 100644 --- a/keyboards/planck/rev6/mcuconf.h +++ b/keyboards/planck/rev6/mcuconf.h @@ -14,6 +14,8 @@ * along with this program. If not, see . */ +#pragma once + #include_next // The SysTick timer from the normal quantum/stm32 uses TIM2 -- the WS2812 pin used diff --git a/keyboards/planck/rev6_drop/mcuconf.h b/keyboards/planck/rev6_drop/mcuconf.h index 20337afbb2..2837fb34ff 100644 --- a/keyboards/planck/rev6_drop/mcuconf.h +++ b/keyboards/planck/rev6_drop/mcuconf.h @@ -14,6 +14,8 @@ * along with this program. If not, see . */ +#pragma once + #include_next // The SysTick timer from the normal quantum/stm32 uses TIM2 -- the WS2812 pin used diff --git a/keyboards/preonic/rev3/mcuconf.h b/keyboards/preonic/rev3/mcuconf.h index f534faccaf..a8e3096b8a 100644 --- a/keyboards/preonic/rev3/mcuconf.h +++ b/keyboards/preonic/rev3/mcuconf.h @@ -14,6 +14,8 @@ * along with this program. If not, see . */ +#pragma once + #include_next // The SysTick timer from the normal quantum/stm32 uses TIM2 -- the WS2812 pin used diff --git a/keyboards/preonic/rev3_drop/mcuconf.h b/keyboards/preonic/rev3_drop/mcuconf.h index 838a3bb69e..32c615b3a2 100644 --- a/keyboards/preonic/rev3_drop/mcuconf.h +++ b/keyboards/preonic/rev3_drop/mcuconf.h @@ -14,6 +14,8 @@ * along with this program. If not, see . */ +#pragma once + #include_next // The SysTick timer from the normal quantum/stm32 uses TIM2 -- the WS2812 pin used diff --git a/keyboards/quarkeys/z67/hotswap/config.h b/keyboards/quarkeys/z67/hotswap/config.h index 21c7736d1e..3e3ce2b0a2 100644 --- a/keyboards/quarkeys/z67/hotswap/config.h +++ b/keyboards/quarkeys/z67/hotswap/config.h @@ -13,7 +13,6 @@ */ #pragma once -#include "config_common.h" #define DIODE_DIRECTION COL2ROW diff --git a/keyboards/quarkeys/z67/solder/config.h b/keyboards/quarkeys/z67/solder/config.h index e406b168ac..18ed997500 100644 --- a/keyboards/quarkeys/z67/solder/config.h +++ b/keyboards/quarkeys/z67/solder/config.h @@ -13,7 +13,6 @@ */ #pragma once -#include "config_common.h" #define DIODE_DIRECTION COL2ROW diff --git a/keyboards/rmi_kb/squishyfrl/mcuconf.h b/keyboards/rmi_kb/squishyfrl/mcuconf.h index b14bd32f80..5fd42d2c7a 100644 --- a/keyboards/rmi_kb/squishyfrl/mcuconf.h +++ b/keyboards/rmi_kb/squishyfrl/mcuconf.h @@ -14,6 +14,8 @@ * along with this program. If not, see . */ +#pragma once + #include_next #undef STM32_PWM_USE_TIM2 diff --git a/keyboards/rmi_kb/squishytkl/mcuconf.h b/keyboards/rmi_kb/squishytkl/mcuconf.h index b14bd32f80..5fd42d2c7a 100644 --- a/keyboards/rmi_kb/squishytkl/mcuconf.h +++ b/keyboards/rmi_kb/squishytkl/mcuconf.h @@ -14,6 +14,8 @@ * along with this program. If not, see . */ +#pragma once + #include_next #undef STM32_PWM_USE_TIM2 diff --git a/keyboards/sawnsprojects/krush/krush65/hotswap/encoder_actions.h b/keyboards/sawnsprojects/krush/krush65/hotswap/encoder_actions.h index 098210d40c..fb22632632 100644 --- a/keyboards/sawnsprojects/krush/krush65/hotswap/encoder_actions.h +++ b/keyboards/sawnsprojects/krush/krush65/hotswap/encoder_actions.h @@ -14,6 +14,8 @@ * along with this program. If not, see . */ +#pragma once + #include "quantum.h" void encoder_action_unregister(void); diff --git a/keyboards/sawnsprojects/krush/krush65/solder/encoder_actions.h b/keyboards/sawnsprojects/krush/krush65/solder/encoder_actions.h index 098210d40c..fb22632632 100644 --- a/keyboards/sawnsprojects/krush/krush65/solder/encoder_actions.h +++ b/keyboards/sawnsprojects/krush/krush65/solder/encoder_actions.h @@ -14,6 +14,8 @@ * along with this program. If not, see . */ +#pragma once + #include "quantum.h" void encoder_action_unregister(void); diff --git a/keyboards/spaceholdings/nebula68b/hs/config.h b/keyboards/spaceholdings/nebula68b/hs/config.h index b66344facc..472798f755 100755 --- a/keyboards/spaceholdings/nebula68b/hs/config.h +++ b/keyboards/spaceholdings/nebula68b/hs/config.h @@ -15,5 +15,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ +#pragma once + #undef RGB_MATRIX_LED_COUNT #define RGB_MATRIX_LED_COUNT 78 diff --git a/keyboards/stello65/beta/encoder_actions.h b/keyboards/stello65/beta/encoder_actions.h index 2484af52ae..1a7fb72014 100644 --- a/keyboards/stello65/beta/encoder_actions.h +++ b/keyboards/stello65/beta/encoder_actions.h @@ -14,6 +14,8 @@ * along with this program. If not, see . */ +#pragma once + #include "quantum.h" void encoder_action_unregister(void); diff --git a/keyboards/teleport/native/mcuconf.h b/keyboards/teleport/native/mcuconf.h index ff40f7ec9d..e12b906041 100644 --- a/keyboards/teleport/native/mcuconf.h +++ b/keyboards/teleport/native/mcuconf.h @@ -14,6 +14,8 @@ * along with this program. If not, see . */ +#pragma once + #include_next /* Set PLL M divider from 4 (F411 GENERIC default) to 8, because of 16 MHz crystal on board */ diff --git a/keyboards/weirdo/geminate60/chconf.h b/keyboards/weirdo/geminate60/chconf.h index a70b65c879..171f2f9bd0 100644 --- a/keyboards/weirdo/geminate60/chconf.h +++ b/keyboards/weirdo/geminate60/chconf.h @@ -14,6 +14,8 @@ * along with this program. If not, see . */ +#pragma once + // Need to override the SysTick timer to use TIM3 -- this is a 16-bit timer on F303 // so we need to change resolution and frequency to match. #define CH_CFG_ST_RESOLUTION 16 diff --git a/keyboards/wekey/we27/encoder_actions.h b/keyboards/wekey/we27/encoder_actions.h index 2484af52ae..1a7fb72014 100644 --- a/keyboards/wekey/we27/encoder_actions.h +++ b/keyboards/wekey/we27/encoder_actions.h @@ -14,6 +14,8 @@ * along with this program. If not, see . */ +#pragma once + #include "quantum.h" void encoder_action_unregister(void); -- cgit v1.2.3