Skip to content

Commit 499fc3b

Browse files
authored
Add some missing #pragma onces (#19902)
1 parent 9c0ce80 commit 499fc3b

File tree

65 files changed

+105
-31
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+105
-31
lines changed

keyboards/1upkeyboards/pi60/config.h

-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33

44
#pragma once
55

6-
#include "config_common.h"
7-
86
#define DYNAMIC_KEYMAP_LAYER_COUNT 10
97

108
#define RGB_DI_PIN GP17

keyboards/25keys/zinc/rev1/post_config.h

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ You should have received a copy of the GNU General Public License
1515
along with this program. If not, see <http://www.gnu.org/licenses/>.
1616
*/
1717

18+
#pragma once
19+
1820
// RGB LED support
1921
// see ./rules.mk: LED_ANIMATIONS = yes or no
2022
// see ./rules.mk: LED_BACK_ENABLE or LED_UNDERGLOW_ENABLE set yes

keyboards/25keys/zinc/reva/post_config.h

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ You should have received a copy of the GNU General Public License
1515
along with this program. If not, see <http://www.gnu.org/licenses/>.
1616
*/
1717

18+
#pragma once
19+
1820
// RGB LED support
1921
// see ./rules.mk: LED_ANIMATIONS = yes or no
2022
// see ./rules.mk: LED_BACK_ENABLE or LED_UNDERGLOW_ENABLE set yes

keyboards/adkb96/rev1/config.h

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ You should have received a copy of the GNU General Public License
1616
along with this program. If not, see <http://www.gnu.org/licenses/>.
1717
*/
1818

19+
#pragma once
20+
1921
// wiring of each half
2022
#define MATRIX_ROW_PINS { D4, C6, D7, E6, B4, B5 }
2123
#define MATRIX_COL_PINS { B6, B2, B3, B1, F7, F6, F5, F4 }

keyboards/adm42/rev4/config.h

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1515
*/
1616

17+
#pragma once
18+
1719
#define MATRIX_COL_PINS { C6, B6, B5, B4, D7, D6, F0, F1, F4, F5, F6, F7 }
1820
#define MATRIX_ROW_PINS { C7, D5, D3, D2 }
1921

keyboards/adpenrose/kintsugi/post_config.h

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ You should have received a copy of the GNU General Public License
1515
along with this program. If not, see <http://www.gnu.org/licenses/>.
1616
*/
1717

18+
#pragma once
19+
1820
#ifndef OLED_FONT_H
1921
# define OLED_FONT_H "lib/kintsugifont.c"
2022
# define OLED_TIMEOUT 120000

keyboards/akb/vero/mcuconf.h

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1515
*/
1616

17+
#pragma once
18+
1719
#include_next <mcuconf.h>
1820
/* Set PLL M divider from 4 (F411 GENERIC default) to 8, because of 16 MHz crystal on board */
1921
#undef STM32_PLLM_VALUE

keyboards/atlantis/encoder_actions.h

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1515
*/
1616

17+
#pragma once
18+
1719
#include "quantum.h"
1820

1921
void encoder_action_unregister(void);

keyboards/binepad/bnr1/v2/config.h

-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,5 @@
33

44
#pragma once
55

6-
#include "config_common.h"
7-
86
#define WEAR_LEVELING_LOGICAL_SIZE 1024
97
#define WEAR_LEVELING_BACKING_SIZE (WEAR_LEVELING_LOGICAL_SIZE * 2)

keyboards/cannonkeys/ortho60v2/mcuconf.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
#pragma once
55

6-
#include_next "mcuconf.h"
6+
#include_next <mcuconf.h>
77

88
#undef RP_PWM_USE_PWM6
99
#define RP_PWM_USE_PWM6 TRUE

keyboards/capsunlocked/cu80/v2_iso/rgb/config.h

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ You should have received a copy of the GNU General Public License
1515
along with this program. If not, see <http://www.gnu.org/licenses/>.
1616
*/
1717

18+
#pragma once
19+
1820
/* enable RGB matrix */
1921
#define CU80_RGB
2022

keyboards/clueboard/2x1800/2021/font.h

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
* OTHER DEALINGS IN THE SOFTWARE.
2525
*/
2626

27+
#pragma once
28+
2729
// Top row of keyboard, when shift held
2830
#define CHR_TILDE {0b00110000, 0b01000000, 0b00110000, 0b00001000, 0b00110000, 0b00000000}
2931
#define CHR_BANG {0b00000000, 0b00000000, 0b11111010, 0b10000000, 0b00000000, 0b00000000}

keyboards/doio/kb38/config.h

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// SPDX-License-Identifier: GPL-2.0-or-later
33

44
#pragma once
5-
#include "config_common.h"
65

76
#define RGB_DI_PIN F6
87
#define RGB_MATRIX_LED_COUNT 44
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
#pragma once
2+
13
void indicator_leds_set(bool leds[8]);
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
#pragma once
2+
13
void indicator_leds_set(bool leds[8]);

keyboards/duck/octagon/v2/indicator_leds.h

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#pragma once
2+
13
#include "duck_led/duck_led.h"
24

35
void indicator_leds_set(bool leds[7]);

keyboards/duck/tcv3/indicator_leds.h

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#pragma once
2+
13
#include "duck_led/duck_led.h"
24

35
void indicator_leds_set(bool leds[8]);

keyboards/ergodox_stm32/board.h

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ You should have received a copy of the GNU General Public License
1515
along with this program. If not, see <http://www.gnu.org/licenses/>.
1616
*/
1717

18+
#pragma once
19+
1820
#include_next <board.h>
1921

2022
#ifdef STM32_LSECLK

keyboards/gboards/engine/config.h

Whitespace-only changes.

keyboards/geekboards/macropad_v2/config.h

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1515
*/
1616

17+
#pragma once
18+
1719
#define RGBLED_NUM 42
1820
#define RGB_MATRIX_LED_COUNT 42
1921
#define RGB_DI_PIN A7

keyboards/handwired/onekey/bluepill_f103c6/board.h

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
// Copyright 2022 Sergey Vlasov (@sigprof)
22
// SPDX-License-Identifier: GPL-2.0-or-later
3+
4+
#pragma once
5+
36
#include_next <board.h>
47

58
#undef STM32F103xB

keyboards/hineybush/h87a/config.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ You should have received a copy of the GNU General Public License
1515
along with this program. If not, see <http://www.gnu.org/licenses/>.
1616
*/
1717

18-
#define CONFIG_H
19-
18+
#pragma once
2019

2120
/*
2221
* Keyboard Matrix Assignments

keyboards/horrortroll/handwired_k552/board.h

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1515
*/
1616

17+
#pragma once
18+
1719
#include_next <board.h>
1820

1921
#undef STM32F103xB

keyboards/jm60/board.h

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ You should have received a copy of the GNU General Public License
1515
along with this program. If not, see <http://www.gnu.org/licenses/>.
1616
*/
1717

18+
#pragma once
19+
1820
#include_next <board.h>
1921

2022
#ifdef STM32_LSECLK

keyboards/kakunpc/business_card/config.h

Whitespace-only changes.

keyboards/kbdfans/odin/rgb/config.h

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1515
*/
1616

17+
#pragma once
18+
1719
#define MATRIX_ROW_PINS { A10, A9, A8, B14, B13, A2 }
1820
#define MATRIX_COL_PINS { A3, A4, A5, A6, A7, B0, B1, B2, B12, A15, B3, B4, B5, B6, B7, B8, C13, C14, C15, A0}
1921

keyboards/kbdfans/odin/soldered/config.h

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1515
*/
1616

17+
#pragma once
18+
1719
#define MATRIX_ROW_PINS { A10, A9, A8, B14, B13, A2 }
1820
#define MATRIX_COL_PINS { A3, A4, A5, A6, A7, B0, B1, B2, B12, A15, B3, B4, B5, B6, B7, B8, C13, C14, C15, A0}
1921

keyboards/kbdfans/odin/v2/config.h

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1515
*/
1616

17+
#pragma once
1718

1819
#define MATRIX_ROW_PINS { A10, A9, A8, B14, B13, A2 }
1920
#define MATRIX_COL_PINS { A3, A4, A5, A6, A7, B0, B1, B2, B12, A15, B3, B4, B5, B6, B7, B8, C13, C14, C15, A0}

keyboards/kbdfans/odinmini/config.h

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1515
*/
1616

17+
#pragma once
18+
1719
#define RGBLIGHT_DEFAULT_MODE (RGBLIGHT_EFFECT_RAINBOW_MOOD + 8)
1820

1921
#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET

keyboards/keebio/encoder_actions.h

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1515
*/
1616

17+
#pragma once
18+
1719
#include "quantum.h"
1820

1921
void encoder_action_unregister(void);

keyboards/keychron/common/keychron_common.h

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1515
*/
1616

17+
#pragma once
18+
1719
#include "stdint.h"
1820
#ifdef VIA_ENABLE
1921
# include "via.h"

keyboards/keychron/v3/mcuconf.h

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1515
*/
1616

17+
#pragma once
18+
1719
#include_next <mcuconf.h>
1820

1921
#undef STM32_I2C_USE_I2C1

keyboards/keychron/v5/halconf.h

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1515
*/
1616

17+
#pragma once
18+
1719
#define HAL_USE_I2C TRUE
1820

1921
#include_next <halconf.h>

keyboards/keychron/v5/mcuconf.h

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1515
*/
1616

17+
#pragma once
18+
1719
#include_next <mcuconf.h>
1820

1921
#undef STM32_I2C_USE_I2C1

keyboards/keychron/v6/halconf.h

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1515
*/
1616

17+
#pragma once
18+
1719
#define HAL_USE_I2C TRUE
1820
#define PAL_USE_CALLBACKS TRUE
1921

keyboards/keychron/v6/mcuconf.h

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1515
*/
1616

17+
#pragma once
18+
1719
#include_next <mcuconf.h>
1820

1921
#undef STM32_I2C_USE_I2C1

keyboards/linworks/whale75/chconf.h

-17
This file was deleted.

keyboards/linworks/whale75/mcuconf.h

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1515
*/
1616

17+
#pragma once
18+
1719
#include_next <mcuconf.h>
1820

1921
// Underglow uses TIM4, Backlight TIM1, so both are enabled here.

keyboards/lw75/config.h

-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33

44
#pragma once
55

6-
#include "config_common.h"
7-
86
/* key matrix pins */
97
#define MATRIX_ROW_PINS { E6, B7, D0, D1, D2, B1 }
108
#define MATRIX_COL_PINS { D3, D5, D4, D6, D7, B4, B5, B6, C6, C7, F7, F6, F5, F4, B0, B2 }

keyboards/macro3/post_config.h

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* SPDX-License-Identifier: GPL-2.0+
44
*/
55

6+
#pragma once
7+
68
/* Top right key */
79
#ifndef BOOTMAGIC_LITE_ROW
810
# define BOOTMAGIC_LITE_ROW 0

keyboards/merge/uc1/config.h

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1515
*/
1616

17+
#pragma once
1718

1819
#define MATRIX_ROW_PINS { B1, B2 }
1920
#define MATRIX_COL_PINS { B3, B4 }

keyboards/merge/um70/config.h

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1515
*/
1616

17+
#pragma once
1718

1819
#define MATRIX_ROW_PINS { B0, B1, B2, B3, B7 }
1920
#define MATRIX_COL_PINS { F0, F1, F4, F5, F6, F7, D6, D4 }

keyboards/merge/um80/config.h

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1515
*/
1616

17+
#pragma once
1718

1819
#define MATRIX_ROW_PINS { B0, B1, B2, B3, B7, C7 }
1920
#define MATRIX_COL_PINS { F0, F1, F4, F5, F6, F7, D6, D4 }

keyboards/merge/uma/config.h

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1515
*/
1616

17+
#pragma once
1718

1819
#define MATRIX_ROW_PINS { B0, B1, B2, B3, B7 }
1920
#define MATRIX_COL_PINS { F0, F1, F4, F5, F6, F7, D6, D4 }

keyboards/mode/m80v1/config.h

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ You should have received a copy of the GNU General Public License
1515
along with this program. If not, see <http://www.gnu.org/licenses/>.
1616
*/
1717

18+
#pragma once
19+
1820
/*
1921
* Keyboard Matrix Assignments
2022
*

keyboards/nightly_boards/adellein/encoder_action.h

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1515
*/
1616

17+
#pragma once
18+
1719
#include "quantum.h"
1820

1921
void encoder_action_unregister(void);

keyboards/nightly_boards/n40_o/encoder_action.h

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1515
*/
1616

17+
#pragma once
18+
1719
#include "quantum.h"
1820

1921
void encoder_action_unregister(void);

0 commit comments

Comments
 (0)