From 4032fba93ca0fbed11313c823d03224ae4add51e Mon Sep 17 00:00:00 2001 From: VeyPatch <126267034+VeyPatch@users.noreply.github.com> Date: Fri, 8 Nov 2024 12:51:31 +0100 Subject: [PATCH] Move options to config.h --- keyboards/splitkb/halcyon/kyria/rev4/config.h | 21 ++++++++++++++++++- .../splitkb/halcyon/kyria/rev4/halconf.h | 20 ++---------------- 2 files changed, 22 insertions(+), 19 deletions(-) diff --git a/keyboards/splitkb/halcyon/kyria/rev4/config.h b/keyboards/splitkb/halcyon/kyria/rev4/config.h index 5fbc2115200..5b3abb0fd81 100755 --- a/keyboards/splitkb/halcyon/kyria/rev4/config.h +++ b/keyboards/splitkb/halcyon/kyria/rev4/config.h @@ -14,4 +14,23 @@ #define SERIAL_PIO_USE_PIO1 // Use PIO1 as PIO0 is used for WS2812 driver // VBUS detection -#define USB_VBUS_PIN GP1 \ No newline at end of file +#define USB_VBUS_PIN GP1 + +//// VIK + +// GPIO1 = GP27 +// GPIO2 = GP26 +// CS = GP13 + +#if HAL_USE_I2C == TRUE +# define I2C_DRIVER I2C0 +# define I2C1_SDA_PIN GP16 +# define I2C1_SCL_PIN GP17 +#endif + +#if HAL_USE_SPI == TRUE +# define SPI_DRIVER SPID1 +# define SPI_SCK_PIN GP14 +# define SPI_MOSI_PIN GP15 +# define SPI_MISO_PIN GP12 +#endif \ No newline at end of file diff --git a/keyboards/splitkb/halcyon/kyria/rev4/halconf.h b/keyboards/splitkb/halcyon/kyria/rev4/halconf.h index d7d125d31d4..115727e14af 100644 --- a/keyboards/splitkb/halcyon/kyria/rev4/halconf.h +++ b/keyboards/splitkb/halcyon/kyria/rev4/halconf.h @@ -3,25 +3,9 @@ #pragma once -//// VIK - -// GPIO1 = GP27 -// GPIO2 = GP26 -// CS = GP13 - -#if HAL_USE_I2C == TRUE -# define I2C_DRIVER I2C0 -# define I2C1_SDA_PIN GP16 -# define I2C1_SCL_PIN GP17 -#endif - #if HAL_USE_SPI == TRUE -# define SPI_DRIVER SPID1 -# define SPI_SCK_PIN GP14 -# define SPI_MOSI_PIN GP15 -# define SPI_MISO_PIN GP12 -# define SPI_USE_WAIT TRUE -# define SPI_SELECT_MODE SPI_SELECT_MODE_PAD +# define SPI_USE_WAIT TRUE +# define SPI_SELECT_MODE SPI_SELECT_MODE_PAD #endif #include_next \ No newline at end of file