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

Fixup ChibiOS header inclusion search ordering. #19623

Merged
merged 10 commits into from
Jan 19, 2023
Merged
Show file tree
Hide file tree
Changes from 8 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: 1 addition & 1 deletion keyboards/akb/vero/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#include_next "mcuconf.h"
#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
#define STM32_PLLM_VALUE 8
2 changes: 1 addition & 1 deletion keyboards/bastardkb/charybdis/3x5/blackpill/halconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@
#define SPI_USE_WAIT TRUE
#define SPI_SELECT_MODE SPI_SELECT_MODE_PAD

#include_next "halconf.h"
#include_next <halconf.h>
2 changes: 1 addition & 1 deletion keyboards/bastardkb/charybdis/3x5/blackpill/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#pragma once

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

#undef STM32_PWM_USE_TIM2
#define STM32_PWM_USE_TIM2 TRUE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#pragma once

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

#if defined(KEYBOARD_bastardkb_charybdis_3x5_blackpill)
# undef STM32_I2C_USE_I2C1
Expand Down
2 changes: 1 addition & 1 deletion keyboards/bastardkb/charybdis/3x5/v2/splinky_2/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#pragma once

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

#undef RP_SPI_USE_SPI0
#define RP_SPI_USE_SPI0 TRUE
2 changes: 1 addition & 1 deletion keyboards/bastardkb/charybdis/3x5/v2/splinky_3/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#pragma once

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

#undef RP_SPI_USE_SPI0
#define RP_SPI_USE_SPI0 TRUE
2 changes: 1 addition & 1 deletion keyboards/bastardkb/charybdis/3x6/blackpill/halconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@
#define SPI_USE_WAIT TRUE
#define SPI_SELECT_MODE SPI_SELECT_MODE_PAD

#include_next "halconf.h"
#include_next <halconf.h>
2 changes: 1 addition & 1 deletion keyboards/bastardkb/charybdis/3x6/blackpill/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#pragma once

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

#undef STM32_PWM_USE_TIM2
#define STM32_PWM_USE_TIM2 TRUE
Expand Down
2 changes: 1 addition & 1 deletion keyboards/bastardkb/charybdis/3x6/v2/splinky_2/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#pragma once

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

#undef RP_SPI_USE_SPI0
#define RP_SPI_USE_SPI0 TRUE
2 changes: 1 addition & 1 deletion keyboards/bastardkb/charybdis/3x6/v2/splinky_3/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#pragma once

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

#undef RP_SPI_USE_SPI0
#define RP_SPI_USE_SPI0 TRUE
2 changes: 1 addition & 1 deletion keyboards/bastardkb/charybdis/4x6/blackpill/halconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@
#define SPI_USE_WAIT TRUE
#define SPI_SELECT_MODE SPI_SELECT_MODE_PAD

#include_next "halconf.h"
#include_next <halconf.h>
2 changes: 1 addition & 1 deletion keyboards/bastardkb/charybdis/4x6/blackpill/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#pragma once

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

#undef STM32_PWM_USE_TIM2
#define STM32_PWM_USE_TIM2 TRUE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#pragma once

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

#if defined(KEYBOARD_bastardkb_charybdis_4x6_blackpill)
# undef STM32_PWM_USE_ADVANCED
Expand Down
2 changes: 1 addition & 1 deletion keyboards/bastardkb/charybdis/4x6/v2/splinky_2/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#pragma once

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

#undef RP_SPI_USE_SPI0
#define RP_SPI_USE_SPI0 TRUE
2 changes: 1 addition & 1 deletion keyboards/bastardkb/charybdis/4x6/v2/splinky_3/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#pragma once

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

#undef RP_SPI_USE_SPI0
#define RP_SPI_USE_SPI0 TRUE
2 changes: 1 addition & 1 deletion keyboards/bastardkb/dilemma/3x5_2/assembled/halconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@

#define HAL_USE_SPI TRUE

#include_next "halconf.h"
#include_next <halconf.h>
2 changes: 1 addition & 1 deletion keyboards/bastardkb/dilemma/3x5_2/assembled/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#pragma once

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

#undef RP_SPI_USE_SPI1
#define RP_SPI_USE_SPI1 TRUE
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@
#define HAL_USE_SPI TRUE
#define HAL_USE_I2C TRUE

#include_next "halconf.h"
#include_next <halconf.h>
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#pragma once

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

#undef RP_SPI_USE_SPI1
#define RP_SPI_USE_SPI1 TRUE
Expand Down
2 changes: 1 addition & 1 deletion keyboards/bastardkb/dilemma/3x5_2/splinky/halconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@

#define HAL_USE_I2C TRUE

#include_next "halconf.h"
#include_next <halconf.h>
2 changes: 1 addition & 1 deletion keyboards/bastardkb/dilemma/3x5_2/splinky/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#pragma once

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

#undef RP_I2C_USE_I2C1
#define RP_I2C_USE_I2C1 TRUE
2 changes: 1 addition & 1 deletion keyboards/bastardkb/dilemma/3x5_3/halconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@
#define HAL_USE_I2C TRUE
#define HAL_USE_SPI TRUE

#include_next "halconf.h"
#include_next <halconf.h>
2 changes: 1 addition & 1 deletion keyboards/bastardkb/dilemma/3x5_3/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#pragma once

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

#undef RP_SPI_USE_SPI1
#define RP_SPI_USE_SPI1 TRUE
Expand Down
2 changes: 1 addition & 1 deletion keyboards/controllerworks/mini36/halconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@

#define HAL_USE_I2C TRUE

#include_next "halconf.h"
#include_next <halconf.h>
2 changes: 1 addition & 1 deletion keyboards/controllerworks/mini36/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#pragma once

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

#undef RP_I2C_USE_I2C0
#define RP_I2C_USE_I2C0 TRUE
2 changes: 1 addition & 1 deletion keyboards/controllerworks/mini42/halconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@

#define HAL_USE_I2C TRUE

#include_next "halconf.h"
#include_next <halconf.h>
2 changes: 1 addition & 1 deletion keyboards/controllerworks/mini42/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#pragma once

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

#undef RP_I2C_USE_I2C0
#define RP_I2C_USE_I2C0 TRUE
2 changes: 1 addition & 1 deletion keyboards/drop/sense75/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once

#include_next "board.h"
#include_next <board.h>

#undef STM32_HSECLK
#define STM32_HSECLK 16000000U
2 changes: 1 addition & 1 deletion keyboards/halokeys/elemental75/chconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
// so we need to change resolution and frequency to match.
#define CH_CFG_ST_RESOLUTION 16
#define CH_CFG_ST_FREQUENCY 10000
#include_next "chconf.h"
#include_next <chconf.h>
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#pragma once

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

#undef STM32_SERIAL_USE_USART1
#define STM32_SERIAL_USE_USART1 TRUE
2 changes: 1 addition & 1 deletion keyboards/handwired/macroboard/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
#pragma once

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

#undef STM32_PWM_USE_TIM2
#define STM32_PWM_USE_TIM2 TRUE
Expand Down
2 changes: 1 addition & 1 deletion keyboards/handwired/onekey/blackpill_f401/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#pragma once

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

#undef STM32_ADC_USE_ADC1
#define STM32_ADC_USE_ADC1 TRUE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#pragma once

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

#undef STM32_ADC_USE_ADC1
#define STM32_ADC_USE_ADC1 TRUE
Expand Down
2 changes: 1 addition & 1 deletion keyboards/handwired/onekey/blackpill_f411/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#pragma once

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

#undef STM32_ADC_USE_ADC1
#define STM32_ADC_USE_ADC1 TRUE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#pragma once

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

#undef STM32_ADC_USE_ADC1
#define STM32_ADC_USE_ADC1 TRUE
Expand Down
2 changes: 1 addition & 1 deletion keyboards/handwired/onekey/evb_wb32f3g71/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once

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

#undef WB32_ADC_USE_ADC1
#define WB32_ADC_USE_ADC1 TRUE
Expand Down
2 changes: 1 addition & 1 deletion keyboards/handwired/onekey/evb_wb32fq95/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once

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

#undef WB32_ADC_USE_ADC1
#define WB32_ADC_USE_ADC1 TRUE
Expand Down
15 changes: 15 additions & 0 deletions keyboards/handwired/onekey/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/* Copyright 2020 QMK
*
* 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 <https://www.gnu.org/licenses/>.
*/
tzarc marked this conversation as resolved.
Show resolved Hide resolved
#include QMK_KEYBOARD_H

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
Expand Down
9 changes: 9 additions & 0 deletions keyboards/handwired/onekey/nucleo_f446re/board.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2023 Nick Brassel (@tzarc)
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once

#include_next <board.h>

#undef STM32_HSECLK
#define STM32_HSECLK 8000000U
#define STM32_HSE_BYPASS
16 changes: 16 additions & 0 deletions keyboards/handwired/onekey/nucleo_f446re/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// Copyright 2021 Nick Brassel (@tzarc)
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once

#include "config_common.h"

#define BACKLIGHT_PWM_DRIVER PWMD4
#define BACKLIGHT_PWM_CHANNEL 3
#define BACKLIGHT_PAL_MODE 2

#define RGB_CI_PIN B13

#define ADC_PIN A0

#define SOLENOID_PINS { B12, B13, B14, B15 }
#define SOLENOID_PINS_ACTIVE_STATE { high, high, low }
10 changes: 10 additions & 0 deletions keyboards/handwired/onekey/nucleo_f446re/halconf.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Copyright 2023 Nick Brassel (@tzarc)
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once

#define HAL_USE_ADC TRUE
#define HAL_USE_SPI TRUE
#define HAL_USE_I2C TRUE
#define HAL_USE_PWM TRUE

#include_next <halconf.h>
15 changes: 15 additions & 0 deletions keyboards/handwired/onekey/nucleo_f446re/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"keyboard_name": "Onekey Nucleo F446RE",
"processor": "STM32F446",
"bootloader": "stm32-dfu",
"matrix_pins": {
"cols": ["A2"],
"rows": ["A1"]
},
"backlight": {
"pin": "B8"
},
"rgblight": {
"pin": "A0"
}
}
Loading