From 92bcbee22615114286916bbbc4df4256c2818f0d Mon Sep 17 00:00:00 2001 From: Joel Challis Date: Wed, 3 Aug 2022 21:06:54 +0100 Subject: Fix up splittest/bluepill (#17897) --- keyboards/handwired/splittest/bluepill/chconf.h | 23 ---------------------- keyboards/handwired/splittest/bluepill/config.h | 2 +- keyboards/handwired/splittest/bluepill/halconf.h | 5 +++++ keyboards/handwired/splittest/bluepill/mcuconf.h | 3 +++ .../handwired/splittest/bluepill/post_config.h | 13 ++++++++---- keyboards/handwired/splittest/bluepill/rules.mk | 2 -- 6 files changed, 18 insertions(+), 30 deletions(-) delete mode 100644 keyboards/handwired/splittest/bluepill/chconf.h (limited to 'keyboards/handwired/splittest/bluepill') 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 @@ -/* 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 2 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 . - */ - -#pragma once - -#define CH_CFG_ST_TIMEDELTA 0 - -#define CH_CFG_USE_CONDVARS_TIMEOUT FALSE - -#include_next 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 @@ #if !(defined(USE_SDI1_ON_STANDARD_ROLE_PINS) || defined(USE_SDI1_ON_ALTERNATE_ROLE_PINS) || defined(USE_SDI2)) #define USE_SDI1_ON_STANDARD_ROLE_PINS -#endif \ No newline at end of file +#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 @@ +// Copyright 2022 dvermd (@dvermd) +// SPDX-License-Identifier: GPL-2.0-or-later + +#pragma once + /* Needed for serial bitbang, half-duplex and full-duplex */ #define HAL_USE_PAL TRUE #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 @@ +// Copyright 2022 dvermd (@dvermd) +// SPDX-License-Identifier: GPL-2.0-or-later + #pragma once #include_next 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 @@ +// Copyright 2022 dvermd (@dvermd) +// SPDX-License-Identifier: GPL-2.0-or-later -#if defined(SPLIT_BITBANG) +#pragma once - #define SOFT_SERIAL_PIN B8 - -#elif defined(SPLIT_SERIAL_HALFDUPLEX) +#if defined(SPLIT_SERIAL_HALFDUPLEX) #if defined(USE_SDI1_ON_STANDARD_ROLE_PINS) #define SOFT_SERIAL_PIN A9 @@ -35,4 +35,9 @@ #else #error "splittest serial_fullduplex keymap is missing a configuration (USE_SDI1_ON_STANDARD_ROLE_PINS, USE_SDI1_ON_ALTERNATE_ROLE_PINS, USE_SDI2)" #endif + +#else // defined(SPLIT_BITBANG) + + #define SOFT_SERIAL_PIN B8 + #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 # Bootloader selection BOOTLOADER = stm32duino -CONSOLE_ENABLE = yes - # Enter lower-power sleep mode when on the ChibiOS idle thread OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE -- cgit v1.2.3