From 70cfb12a5c29484875b0c76d4dfa70a1b4452f9c Mon Sep 17 00:00:00 2001 From: wm-eisos Date: Fri, 20 Jun 2025 11:13:34 +0200 Subject: [PATCH] variant(WL): correct Oceanus-I module and EV I2C and SPI pins --- .../variant_WE_OCEANUS1.h | 16 ++++++++-------- .../variant_WE_OCEANUS1_EV.h | 13 ++++++++----- 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/variants/STM32WLxx/WL54CCU_WL55CCU_WLE4C(8-B-C)U_WLE5C(8-B-C)U/variant_WE_OCEANUS1.h b/variants/STM32WLxx/WL54CCU_WL55CCU_WLE4C(8-B-C)U_WLE5C(8-B-C)U/variant_WE_OCEANUS1.h index d2097ac9bb..c0ac7ad528 100644 --- a/variants/STM32WLxx/WL54CCU_WL55CCU_WLE4C(8-B-C)U_WLE5C(8-B-C)U/variant_WE_OCEANUS1.h +++ b/variants/STM32WLxx/WL54CCU_WL55CCU_WLE4C(8-B-C)U_WLE5C(8-B-C)U/variant_WE_OCEANUS1.h @@ -62,10 +62,10 @@ // SPI definitions #ifndef PIN_SPI_SS - #define PIN_SPI_SS PA4 + #define PIN_SPI_SS PA15 #endif #ifndef PIN_SPI_SS1 - #define PIN_SPI_SS1 PB2 + #define PIN_SPI_SS1 PNUM_NOT_DEFINED #endif #ifndef PIN_SPI_SS2 #define PIN_SPI_SS2 PNUM_NOT_DEFINED @@ -74,21 +74,21 @@ #define PIN_SPI_SS3 PNUM_NOT_DEFINED #endif #ifndef PIN_SPI_MOSI - #define PIN_SPI_MOSI PA7 + #define PIN_SPI_MOSI PB5 #endif -#ifndef PIN_SPI_MISOSPI1_SCK - #define PIN_SPI_MISO PA6 +#ifndef PIN_SPI_MISO + #define PIN_SPI_MISO PB4 #endif #ifndef PIN_SPI_SCK - #define PIN_SPI_SCK PA5 + #define PIN_SPI_SCK PB3 #endif // I2C definitions #ifndef PIN_WIRE_SDA - #define PIN_WIRE_SDA PA11 + #define PIN_WIRE_SDA PB7 #endif #ifndef PIN_WIRE_SCL - #define PIN_WIRE_SCL PA12 + #define PIN_WIRE_SCL PB8 #endif // Timer Definitions diff --git a/variants/STM32WLxx/WL54CCU_WL55CCU_WLE4C(8-B-C)U_WLE5C(8-B-C)U/variant_WE_OCEANUS1_EV.h b/variants/STM32WLxx/WL54CCU_WL55CCU_WLE4C(8-B-C)U_WLE5C(8-B-C)U/variant_WE_OCEANUS1_EV.h index 439d23cce2..b359799ec1 100644 --- a/variants/STM32WLxx/WL54CCU_WL55CCU_WLE4C(8-B-C)U_WLE5C(8-B-C)U/variant_WE_OCEANUS1_EV.h +++ b/variants/STM32WLxx/WL54CCU_WL55CCU_WLE4C(8-B-C)U_WLE5C(8-B-C)U/variant_WE_OCEANUS1_EV.h @@ -14,9 +14,12 @@ #include "variant_WE_OCEANUS1.h" -// On-board LED pin number -#define LED_BUILTIN PA7 - -// On-board user button -#define USER_BTN PA0 +#ifndef LED_BUILTIN + // On-board LED pin number + #define LED_BUILTIN PA7 +#endif +#ifndef USER_BTN + // On-board user button + #define USER_BTN PA0 +#endif