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

Add some missing #pragma onces #19902

Merged
merged 1 commit into from
Feb 21, 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: 0 additions & 2 deletions keyboards/1upkeyboards/pi60/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

#pragma once

#include "config_common.h"

#define DYNAMIC_KEYMAP_LAYER_COUNT 10

#define RGB_DI_PIN GP17
Expand Down
2 changes: 2 additions & 0 deletions keyboards/25keys/zinc/rev1/post_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ 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

// RGB LED support
// see ./rules.mk: LED_ANIMATIONS = yes or no
// see ./rules.mk: LED_BACK_ENABLE or LED_UNDERGLOW_ENABLE set yes
Expand Down
2 changes: 2 additions & 0 deletions keyboards/25keys/zinc/reva/post_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ 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

// RGB LED support
// see ./rules.mk: LED_ANIMATIONS = yes or no
// see ./rules.mk: LED_BACK_ENABLE or LED_UNDERGLOW_ENABLE set yes
Expand Down
2 changes: 2 additions & 0 deletions keyboards/adkb96/rev1/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ 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

// 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 }
Expand Down
2 changes: 2 additions & 0 deletions keyboards/adm42/rev4/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#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 }

Expand Down
2 changes: 2 additions & 0 deletions keyboards/adpenrose/kintsugi/post_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ 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

#ifndef OLED_FONT_H
# define OLED_FONT_H "lib/kintsugifont.c"
# define OLED_TIMEOUT 120000
Expand Down
2 changes: 2 additions & 0 deletions keyboards/akb/vero/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#pragma once

#include_next <mcuconf.h>
/* Set PLL M divider from 4 (F411 GENERIC default) to 8, because of 16 MHz crystal on board */
#undef STM32_PLLM_VALUE
Expand Down
2 changes: 2 additions & 0 deletions keyboards/atlantis/encoder_actions.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#pragma once

#include "quantum.h"

void encoder_action_unregister(void);
Expand Down
2 changes: 0 additions & 2 deletions keyboards/binepad/bnr1/v2/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
2 changes: 1 addition & 1 deletion keyboards/cannonkeys/ortho60v2/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#pragma once

#include_next "mcuconf.h"
#include_next <mcuconf.h>

#undef RP_PWM_USE_PWM6
#define RP_PWM_USE_PWM6 TRUE
2 changes: 2 additions & 0 deletions keyboards/capsunlocked/cu80/v2_iso/rgb/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ 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

/* enable RGB matrix */
#define CU80_RGB

Expand Down
2 changes: 2 additions & 0 deletions keyboards/clueboard/2x1800/2021/font.h
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
1 change: 0 additions & 1 deletion keyboards/doio/kb38/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions keyboards/duck/eagle_viper/v2/indicator_leds.h
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
#pragma once

void indicator_leds_set(bool leds[8]);
2 changes: 2 additions & 0 deletions keyboards/duck/lightsaver/indicator_leds.h
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
#pragma once

void indicator_leds_set(bool leds[8]);
2 changes: 2 additions & 0 deletions keyboards/duck/octagon/v2/indicator_leds.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#pragma once

#include "duck_led/duck_led.h"

void indicator_leds_set(bool leds[7]);
Expand Down
2 changes: 2 additions & 0 deletions keyboards/duck/tcv3/indicator_leds.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#pragma once

#include "duck_led/duck_led.h"

void indicator_leds_set(bool leds[8]);
Expand Down
2 changes: 2 additions & 0 deletions keyboards/ergodox_stm32/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ 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_next <board.h>

#ifdef STM32_LSECLK
Expand Down
Empty file removed keyboards/gboards/engine/config.h
Empty file.
2 changes: 2 additions & 0 deletions keyboards/geekboards/macropad_v2/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#pragma once

#define RGBLED_NUM 42
#define RGB_MATRIX_LED_COUNT 42
#define RGB_DI_PIN A7
Expand Down
3 changes: 3 additions & 0 deletions keyboards/handwired/onekey/bluepill_f103c6/board.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
// Copyright 2022 Sergey Vlasov (@sigprof)
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

#include_next <board.h>

#undef STM32F103xB
Expand Down
3 changes: 1 addition & 2 deletions keyboards/hineybush/h87a/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,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/>.
*/

#define CONFIG_H

#pragma once

/*
* Keyboard Matrix Assignments
Expand Down
2 changes: 2 additions & 0 deletions keyboards/horrortroll/handwired_k552/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#pragma once

#include_next <board.h>

#undef STM32F103xB
Expand Down
2 changes: 2 additions & 0 deletions keyboards/jm60/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ 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_next <board.h>

#ifdef STM32_LSECLK
Expand Down
Empty file.
2 changes: 2 additions & 0 deletions keyboards/kbdfans/odin/rgb/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#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}

Expand Down
2 changes: 2 additions & 0 deletions keyboards/kbdfans/odin/soldered/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#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}

Expand Down
1 change: 1 addition & 0 deletions keyboards/kbdfans/odin/v2/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#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}
Expand Down
2 changes: 2 additions & 0 deletions keyboards/kbdfans/odinmini/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#pragma once

#define RGBLIGHT_DEFAULT_MODE (RGBLIGHT_EFFECT_RAINBOW_MOOD + 8)

#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET
Expand Down
2 changes: 2 additions & 0 deletions keyboards/keebio/encoder_actions.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#pragma once

#include "quantum.h"

void encoder_action_unregister(void);
Expand Down
2 changes: 2 additions & 0 deletions keyboards/keychron/common/keychron_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#pragma once

#include "stdint.h"
#ifdef VIA_ENABLE
# include "via.h"
Expand Down
2 changes: 2 additions & 0 deletions keyboards/keychron/v3/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#pragma once

#include_next <mcuconf.h>

#undef STM32_I2C_USE_I2C1
Expand Down
2 changes: 2 additions & 0 deletions keyboards/keychron/v5/halconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#pragma once

#define HAL_USE_I2C TRUE

#include_next <halconf.h>
2 changes: 2 additions & 0 deletions keyboards/keychron/v5/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#pragma once

#include_next <mcuconf.h>

#undef STM32_I2C_USE_I2C1
Expand Down
2 changes: 2 additions & 0 deletions keyboards/keychron/v6/halconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#pragma once

#define HAL_USE_I2C TRUE
#define PAL_USE_CALLBACKS TRUE

Expand Down
2 changes: 2 additions & 0 deletions keyboards/keychron/v6/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#pragma once

#include_next <mcuconf.h>

#undef STM32_I2C_USE_I2C1
Expand Down
17 changes: 0 additions & 17 deletions keyboards/linworks/whale75/chconf.h

This file was deleted.

2 changes: 2 additions & 0 deletions keyboards/linworks/whale75/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#pragma once

#include_next <mcuconf.h>

// Underglow uses TIM4, Backlight TIM1, so both are enabled here.
Expand Down
2 changes: 0 additions & 2 deletions keyboards/lw75/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
2 changes: 2 additions & 0 deletions keyboards/macro3/post_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* SPDX-License-Identifier: GPL-2.0+
*/

#pragma once

/* Top right key */
#ifndef BOOTMAGIC_LITE_ROW
# define BOOTMAGIC_LITE_ROW 0
Expand Down
1 change: 1 addition & 0 deletions keyboards/merge/uc1/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#pragma once

#define MATRIX_ROW_PINS { B1, B2 }
#define MATRIX_COL_PINS { B3, B4 }
Expand Down
1 change: 1 addition & 0 deletions keyboards/merge/um70/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#pragma once

#define MATRIX_ROW_PINS { B0, B1, B2, B3, B7 }
#define MATRIX_COL_PINS { F0, F1, F4, F5, F6, F7, D6, D4 }
Expand Down
1 change: 1 addition & 0 deletions keyboards/merge/um80/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#pragma once

#define MATRIX_ROW_PINS { B0, B1, B2, B3, B7, C7 }
#define MATRIX_COL_PINS { F0, F1, F4, F5, F6, F7, D6, D4 }
Expand Down
1 change: 1 addition & 0 deletions keyboards/merge/uma/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#pragma once

#define MATRIX_ROW_PINS { B0, B1, B2, B3, B7 }
#define MATRIX_COL_PINS { F0, F1, F4, F5, F6, F7, D6, D4 }
Expand Down
2 changes: 2 additions & 0 deletions keyboards/mode/m80v1/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ 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

/*
* Keyboard Matrix Assignments
*
Expand Down
2 changes: 2 additions & 0 deletions keyboards/nightly_boards/adellein/encoder_action.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#pragma once

#include "quantum.h"

void encoder_action_unregister(void);
Expand Down
2 changes: 2 additions & 0 deletions keyboards/nightly_boards/n40_o/encoder_action.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#pragma once

#include "quantum.h"

void encoder_action_unregister(void);
Expand Down
Loading