diff options
| author | Joel Challis <git@zvecr.com> | 2022-08-03 21:06:54 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-03 21:06:54 +0100 |
| commit | 92bcbee22615114286916bbbc4df4256c2818f0d (patch) | |
| tree | aeb1e6eb45166d73d9c0b758786ca0e28355c102 | |
| parent | df8a538489414b1f0c0cdcb786a76cca763ae37a (diff) | |
Fix up splittest/bluepill (#17897)
20 files changed, 57 insertions, 45 deletions
diff --git a/keyboards/handwired/splittest/bluepill/chconf.h b/keyboards/handwired/splittest/bluepill/chconf.h deleted file mode 100644 index 73c7d64e3a..0000000000 --- a/keyboards/handwired/splittest/bluepill/chconf.h +++ /dev/null | |||
| @@ -1,23 +0,0 @@ | |||
| 1 | /* Copyright 2020 QMK | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | |||
| 17 | #pragma once | ||
| 18 | |||
| 19 | #define CH_CFG_ST_TIMEDELTA 0 | ||
| 20 | |||
| 21 | #define CH_CFG_USE_CONDVARS_TIMEOUT FALSE | ||
| 22 | |||
| 23 | #include_next <chconf.h> | ||
diff --git a/keyboards/handwired/splittest/bluepill/config.h b/keyboards/handwired/splittest/bluepill/config.h index 92766b3de4..b1315ee3c7 100644 --- a/keyboards/handwired/splittest/bluepill/config.h +++ b/keyboards/handwired/splittest/bluepill/config.h | |||
| @@ -13,4 +13,4 @@ | |||
| 13 | 13 | ||
| 14 | #if !(defined(USE_SDI1_ON_STANDARD_ROLE_PINS) || defined(USE_SDI1_ON_ALTERNATE_ROLE_PINS) || defined(USE_SDI2)) | 14 | #if !(defined(USE_SDI1_ON_STANDARD_ROLE_PINS) || defined(USE_SDI1_ON_ALTERNATE_ROLE_PINS) || defined(USE_SDI2)) |
| 15 | #define USE_SDI1_ON_STANDARD_ROLE_PINS | 15 | #define USE_SDI1_ON_STANDARD_ROLE_PINS |
| 16 | #endif \ No newline at end of file | 16 | #endif |
diff --git a/keyboards/handwired/splittest/bluepill/halconf.h b/keyboards/handwired/splittest/bluepill/halconf.h index d85c8b842e..e11e5b637a 100644 --- a/keyboards/handwired/splittest/bluepill/halconf.h +++ b/keyboards/handwired/splittest/bluepill/halconf.h | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | // Copyright 2022 dvermd (@dvermd) | ||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 3 | |||
| 4 | #pragma once | ||
| 5 | |||
| 1 | /* Needed for serial bitbang, half-duplex and full-duplex */ | 6 | /* Needed for serial bitbang, half-duplex and full-duplex */ |
| 2 | #define HAL_USE_PAL TRUE | 7 | #define HAL_USE_PAL TRUE |
| 3 | #define PAL_USE_WAIT TRUE | 8 | #define PAL_USE_WAIT TRUE |
diff --git a/keyboards/handwired/splittest/bluepill/mcuconf.h b/keyboards/handwired/splittest/bluepill/mcuconf.h index 875819537f..af2f14a9d3 100644 --- a/keyboards/handwired/splittest/bluepill/mcuconf.h +++ b/keyboards/handwired/splittest/bluepill/mcuconf.h | |||
| @@ -1,3 +1,6 @@ | |||
| 1 | // Copyright 2022 dvermd (@dvermd) | ||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 3 | |||
| 1 | #pragma once | 4 | #pragma once |
| 2 | 5 | ||
| 3 | #include_next <mcuconf.h> | 6 | #include_next <mcuconf.h> |
diff --git a/keyboards/handwired/splittest/bluepill/post_config.h b/keyboards/handwired/splittest/bluepill/post_config.h index b866805a64..be9dd398ff 100644 --- a/keyboards/handwired/splittest/bluepill/post_config.h +++ b/keyboards/handwired/splittest/bluepill/post_config.h | |||
| @@ -1,9 +1,9 @@ | |||
| 1 | // Copyright 2022 dvermd (@dvermd) | ||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 1 | 3 | ||
| 2 | #if defined(SPLIT_BITBANG) | 4 | #pragma once |
| 3 | 5 | ||
| 4 | #define SOFT_SERIAL_PIN B8 | 6 | #if defined(SPLIT_SERIAL_HALFDUPLEX) |
| 5 | |||
| 6 | #elif defined(SPLIT_SERIAL_HALFDUPLEX) | ||
| 7 | 7 | ||
| 8 | #if defined(USE_SDI1_ON_STANDARD_ROLE_PINS) | 8 | #if defined(USE_SDI1_ON_STANDARD_ROLE_PINS) |
| 9 | #define SOFT_SERIAL_PIN A9 | 9 | #define SOFT_SERIAL_PIN A9 |
| @@ -35,4 +35,9 @@ | |||
| 35 | #else | 35 | #else |
| 36 | #error "splittest serial_fullduplex keymap is missing a configuration (USE_SDI1_ON_STANDARD_ROLE_PINS, USE_SDI1_ON_ALTERNATE_ROLE_PINS, USE_SDI2)" | 36 | #error "splittest serial_fullduplex keymap is missing a configuration (USE_SDI1_ON_STANDARD_ROLE_PINS, USE_SDI1_ON_ALTERNATE_ROLE_PINS, USE_SDI2)" |
| 37 | #endif | 37 | #endif |
| 38 | |||
| 39 | #else // defined(SPLIT_BITBANG) | ||
| 40 | |||
| 41 | #define SOFT_SERIAL_PIN B8 | ||
| 42 | |||
| 38 | #endif | 43 | #endif |
diff --git a/keyboards/handwired/splittest/bluepill/rules.mk b/keyboards/handwired/splittest/bluepill/rules.mk index 1d2ff9419e..019b1130d9 100644 --- a/keyboards/handwired/splittest/bluepill/rules.mk +++ b/keyboards/handwired/splittest/bluepill/rules.mk | |||
| @@ -4,7 +4,5 @@ MCU = STM32F103 | |||
| 4 | # Bootloader selection | 4 | # Bootloader selection |
| 5 | BOOTLOADER = stm32duino | 5 | BOOTLOADER = stm32duino |
| 6 | 6 | ||
| 7 | CONSOLE_ENABLE = yes | ||
| 8 | |||
| 9 | # Enter lower-power sleep mode when on the ChibiOS idle thread | 7 | # Enter lower-power sleep mode when on the ChibiOS idle thread |
| 10 | OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE | 8 | OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE |
diff --git a/keyboards/handwired/splittest/keymaps/bitbang/config.h b/keyboards/handwired/splittest/keymaps/bitbang/config.h index c21a363855..fddd3d88b2 100644 --- a/keyboards/handwired/splittest/keymaps/bitbang/config.h +++ b/keyboards/handwired/splittest/keymaps/bitbang/config.h | |||
| @@ -3,8 +3,6 @@ | |||
| 3 | 3 | ||
| 4 | #pragma once | 4 | #pragma once |
| 5 | 5 | ||
| 6 | #include "config_common.h" | ||
| 7 | |||
| 8 | #define SPLIT_BITBANG | 6 | #define SPLIT_BITBANG |
| 9 | 7 | ||
| 10 | #define FORCED_SYNC_THROTTLE_MS 100 | 8 | #define FORCED_SYNC_THROTTLE_MS 100 |
diff --git a/keyboards/handwired/splittest/keymaps/bitbang/keymap.c b/keyboards/handwired/splittest/keymaps/bitbang/keymap.c index 9875000319..8a83e19850 100644 --- a/keyboards/handwired/splittest/keymaps/bitbang/keymap.c +++ b/keyboards/handwired/splittest/keymaps/bitbang/keymap.c | |||
| @@ -1,3 +1,6 @@ | |||
| 1 | // Copyright 2022 dvermd (@dvermd) | ||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 3 | |||
| 1 | #include QMK_KEYBOARD_H | 4 | #include QMK_KEYBOARD_H |
| 2 | 5 | ||
| 3 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {[0] = LAYOUT(KC_L, KC_R)}; | 6 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {[0] = LAYOUT(KC_L, KC_R)}; |
diff --git a/keyboards/handwired/splittest/keymaps/default/keymap.c b/keyboards/handwired/splittest/keymaps/default/keymap.c index 0057478c1c..fcef718983 100644 --- a/keyboards/handwired/splittest/keymaps/default/keymap.c +++ b/keyboards/handwired/splittest/keymaps/default/keymap.c | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | // Copyright 2022 QMK | ||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 3 | |||
| 1 | #include QMK_KEYBOARD_H | 4 | #include QMK_KEYBOARD_H |
| 2 | 5 | ||
| 3 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | 6 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { |
| 4 | [0] = LAYOUT(RGB_MOD, QK_BOOT) | 7 | [0] = LAYOUT(KC_L, KC_R) |
| 5 | }; | 8 | }; |
diff --git a/keyboards/handwired/splittest/keymaps/rgb/keymap.c b/keyboards/handwired/splittest/keymaps/rgb/keymap.c new file mode 100644 index 0000000000..1fa86057c9 --- /dev/null +++ b/keyboards/handwired/splittest/keymaps/rgb/keymap.c | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | // Copyright 2022 QMK | ||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 3 | |||
| 4 | #include QMK_KEYBOARD_H | ||
| 5 | |||
| 6 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 7 | [0] = LAYOUT(RGB_MOD, QK_BOOT) | ||
| 8 | }; | ||
diff --git a/keyboards/handwired/splittest/keymaps/rgb/rules.mk b/keyboards/handwired/splittest/keymaps/rgb/rules.mk new file mode 100644 index 0000000000..1e3cebb145 --- /dev/null +++ b/keyboards/handwired/splittest/keymaps/rgb/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| RGBLIGHT_ENABLE = yes | |||
diff --git a/keyboards/handwired/splittest/keymaps/serial_fullduplex/config.h b/keyboards/handwired/splittest/keymaps/serial_fullduplex/config.h index b83dc43a1f..1a2899751b 100644 --- a/keyboards/handwired/splittest/keymaps/serial_fullduplex/config.h +++ b/keyboards/handwired/splittest/keymaps/serial_fullduplex/config.h | |||
| @@ -3,6 +3,4 @@ | |||
| 3 | 3 | ||
| 4 | #pragma once | 4 | #pragma once |
| 5 | 5 | ||
| 6 | #include "config_common.h" | ||
| 7 | |||
| 8 | #define SPLIT_SERIAL_FULLDUPLEX | 6 | #define SPLIT_SERIAL_FULLDUPLEX |
diff --git a/keyboards/handwired/splittest/keymaps/serial_fullduplex/halconf.h b/keyboards/handwired/splittest/keymaps/serial_fullduplex/halconf.h index 35ae5bf214..58840c28a7 100644 --- a/keyboards/handwired/splittest/keymaps/serial_fullduplex/halconf.h +++ b/keyboards/handwired/splittest/keymaps/serial_fullduplex/halconf.h | |||
| @@ -1,2 +1,8 @@ | |||
| 1 | // Copyright 2022 dvermd (@dvermd) | ||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 3 | |||
| 4 | #pragma once | ||
| 5 | |||
| 1 | #define HAL_USE_SERIAL TRUE | 6 | #define HAL_USE_SERIAL TRUE |
| 7 | |||
| 2 | #include_next <halconf.h> | 8 | #include_next <halconf.h> |
diff --git a/keyboards/handwired/splittest/keymaps/serial_fullduplex/keymap.c b/keyboards/handwired/splittest/keymaps/serial_fullduplex/keymap.c index 84919f53a7..7535715da1 100644 --- a/keyboards/handwired/splittest/keymaps/serial_fullduplex/keymap.c +++ b/keyboards/handwired/splittest/keymaps/serial_fullduplex/keymap.c | |||
| @@ -1,3 +1,6 @@ | |||
| 1 | // Copyright 2022 dvermd (@dvermd) | ||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 3 | |||
| 1 | #include QMK_KEYBOARD_H | 4 | #include QMK_KEYBOARD_H |
| 2 | 5 | ||
| 3 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {[0] = LAYOUT(KC_L, KC_R)}; | 6 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {[0] = LAYOUT(KC_L, KC_R)}; |
diff --git a/keyboards/handwired/splittest/keymaps/serial_halfduplex/config.h b/keyboards/handwired/splittest/keymaps/serial_halfduplex/config.h index 96dcf0dc42..3cb68f6e7d 100644 --- a/keyboards/handwired/splittest/keymaps/serial_halfduplex/config.h +++ b/keyboards/handwired/splittest/keymaps/serial_halfduplex/config.h | |||
| @@ -3,6 +3,4 @@ | |||
| 3 | 3 | ||
| 4 | #pragma once | 4 | #pragma once |
| 5 | 5 | ||
| 6 | #include "config_common.h" | ||
| 7 | |||
| 8 | #define SPLIT_SERIAL_HALFDUPLEX | 6 | #define SPLIT_SERIAL_HALFDUPLEX |
diff --git a/keyboards/handwired/splittest/keymaps/serial_halfduplex/halconf.h b/keyboards/handwired/splittest/keymaps/serial_halfduplex/halconf.h index 35ae5bf214..58840c28a7 100644 --- a/keyboards/handwired/splittest/keymaps/serial_halfduplex/halconf.h +++ b/keyboards/handwired/splittest/keymaps/serial_halfduplex/halconf.h | |||
| @@ -1,2 +1,8 @@ | |||
| 1 | // Copyright 2022 dvermd (@dvermd) | ||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 3 | |||
| 4 | #pragma once | ||
| 5 | |||
| 1 | #define HAL_USE_SERIAL TRUE | 6 | #define HAL_USE_SERIAL TRUE |
| 7 | |||
| 2 | #include_next <halconf.h> | 8 | #include_next <halconf.h> |
diff --git a/keyboards/handwired/splittest/keymaps/serial_halfduplex/keymap.c b/keyboards/handwired/splittest/keymaps/serial_halfduplex/keymap.c index 84919f53a7..d65d04b623 100644 --- a/keyboards/handwired/splittest/keymaps/serial_halfduplex/keymap.c +++ b/keyboards/handwired/splittest/keymaps/serial_halfduplex/keymap.c | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | // Copyright 2022 dvermd (@dvermd) | ||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 3 | |||
| 4 | #pragma once | ||
| 5 | |||
| 1 | #include QMK_KEYBOARD_H | 6 | #include QMK_KEYBOARD_H |
| 2 | 7 | ||
| 3 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {[0] = LAYOUT(KC_L, KC_R)}; | 8 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {[0] = LAYOUT(KC_L, KC_R)}; |
diff --git a/keyboards/handwired/splittest/promicro/rules.mk b/keyboards/handwired/splittest/promicro/rules.mk index d29dbc8596..cf663a7ed6 100644 --- a/keyboards/handwired/splittest/promicro/rules.mk +++ b/keyboards/handwired/splittest/promicro/rules.mk | |||
| @@ -3,5 +3,3 @@ MCU = atmega32u4 | |||
| 3 | 3 | ||
| 4 | # Bootloader selection | 4 | # Bootloader selection |
| 5 | BOOTLOADER = caterina | 5 | BOOTLOADER = caterina |
| 6 | |||
| 7 | RGBLIGHT_ENABLE = yes | ||
diff --git a/keyboards/handwired/splittest/rules.mk b/keyboards/handwired/splittest/rules.mk index 18300431b2..cc924d61d8 100644 --- a/keyboards/handwired/splittest/rules.mk +++ b/keyboards/handwired/splittest/rules.mk | |||
| @@ -3,13 +3,12 @@ | |||
| 3 | # | 3 | # |
| 4 | BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite | 4 | BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite |
| 5 | MOUSEKEY_ENABLE = no # Mouse keys | 5 | MOUSEKEY_ENABLE = no # Mouse keys |
| 6 | EXTRAKEY_ENABLE = yes # Audio control and System control | 6 | EXTRAKEY_ENABLE = no # Audio control and System control |
| 7 | CONSOLE_ENABLE = no # Console for debug | 7 | CONSOLE_ENABLE = yes # Console for debug |
| 8 | COMMAND_ENABLE = yes # Commands for debug and configuration | 8 | COMMAND_ENABLE = no # Commands for debug and configuration |
| 9 | NKRO_ENABLE = no # Enable N-Key Rollover | 9 | NKRO_ENABLE = no # Enable N-Key Rollover |
| 10 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | 10 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality |
| 11 | AUDIO_ENABLE = no # Audio output | 11 | AUDIO_ENABLE = no # Audio output |
| 12 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
| 13 | 12 | ||
| 14 | SPLIT_KEYBOARD = yes | 13 | SPLIT_KEYBOARD = yes |
| 15 | 14 | ||
diff --git a/keyboards/handwired/splittest/teensy_2/rules.mk b/keyboards/handwired/splittest/teensy_2/rules.mk index a88fa054ee..320633f80f 100644 --- a/keyboards/handwired/splittest/teensy_2/rules.mk +++ b/keyboards/handwired/splittest/teensy_2/rules.mk | |||
| @@ -3,5 +3,3 @@ MCU = atmega32u4 | |||
| 3 | 3 | ||
| 4 | # Bootloader selection | 4 | # Bootloader selection |
| 5 | BOOTLOADER = halfkay | 5 | BOOTLOADER = halfkay |
| 6 | |||
| 7 | RGBLIGHT_ENABLE = yes | ||
