From 5699d3dc198005c3af1c9a7ec1e4ff67b9dc6faa Mon Sep 17 00:00:00 2001 From: jiaxin96 <572673807@qq.com> Date: Mon, 14 Jun 2021 20:33:37 +0800 Subject: [PATCH] simplify the r65 code --- keyboards/yandrstudio/rainbow65/config.h | 4 ++-- keyboards/yandrstudio/rainbow65/halconf.h | 5 +---- keyboards/yandrstudio/rainbow65/mcuconf.h | 12 ------------ 3 files changed, 3 insertions(+), 18 deletions(-) diff --git a/keyboards/yandrstudio/rainbow65/config.h b/keyboards/yandrstudio/rainbow65/config.h index d3aa2af18395..e108dc9af6b8 100755 --- a/keyboards/yandrstudio/rainbow65/config.h +++ b/keyboards/yandrstudio/rainbow65/config.h @@ -64,8 +64,8 @@ # define RGB_DI_PIN B15 # define RGBLED_NUM 68 # define DRIVER_LED_TOTAL RGBLED_NUM -#define WS2812_SPI SPID2 // default: SPID1 -#define WS2812_SPI_MOSI_PAL_MODE 5 +# define WS2812_SPI SPID2 // default: SPID1 +# define WS2812_SPI_MOSI_PAL_MODE 5 # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 180 # define RGBLIGHT_VAL_STEP 18 diff --git a/keyboards/yandrstudio/rainbow65/halconf.h b/keyboards/yandrstudio/rainbow65/halconf.h index af7fec1e28aa..08d3342b6ca7 100644 --- a/keyboards/yandrstudio/rainbow65/halconf.h +++ b/keyboards/yandrstudio/rainbow65/halconf.h @@ -23,11 +23,8 @@ #include_next -#undef HAL_USE_SERIAL -#define HAL_USE_SERIAL TRUE - #undef HAL_USE_I2C #define HAL_USE_I2C TRUE #undef HAL_USE_SPI -#define HAL_USE_SPI TRUE +#define HAL_USE_SPI TRUE diff --git a/keyboards/yandrstudio/rainbow65/mcuconf.h b/keyboards/yandrstudio/rainbow65/mcuconf.h index 57607f48009a..da0608e249ff 100755 --- a/keyboards/yandrstudio/rainbow65/mcuconf.h +++ b/keyboards/yandrstudio/rainbow65/mcuconf.h @@ -2,23 +2,11 @@ #include_next -#undef STM32_SPI_USE_SPI1 -#define STM32_SPI_USE_SPI1 FALSE - #undef STM32_SPI_USE_SPI2 #define STM32_SPI_USE_SPI2 TRUE #undef STM32_I2C_USE_I2C1 #define STM32_I2C_USE_I2C1 TRUE -#undef STM32_I2C_USE_I2C2 -#define STM32_I2C_USE_I2C2 FALSE - -/* - * UART driver system settings. - */ - -#undef STM32_SERIAL_USE_USART1 -#define STM32_SERIAL_USE_USART1 TRUE