Skip to content

Commit 1e7007c

Browse files
wm-eisosfpistm
authored andcommitted
variant(WL): correct Oceanus-I module and EV I2C and SPI pins
1 parent dd46d9c commit 1e7007c

File tree

2 files changed

+16
-13
lines changed

2 files changed

+16
-13
lines changed

variants/STM32WLxx/WL54CCU_WL55CCU_WLE4C(8-B-C)U_WLE5C(8-B-C)U/variant_WE_OCEANUS1.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@
6262

6363
// SPI definitions
6464
#ifndef PIN_SPI_SS
65-
#define PIN_SPI_SS PA4
65+
#define PIN_SPI_SS PA15
6666
#endif
6767
#ifndef PIN_SPI_SS1
68-
#define PIN_SPI_SS1 PB2
68+
#define PIN_SPI_SS1 PNUM_NOT_DEFINED
6969
#endif
7070
#ifndef PIN_SPI_SS2
7171
#define PIN_SPI_SS2 PNUM_NOT_DEFINED
@@ -74,21 +74,21 @@
7474
#define PIN_SPI_SS3 PNUM_NOT_DEFINED
7575
#endif
7676
#ifndef PIN_SPI_MOSI
77-
#define PIN_SPI_MOSI PA7
77+
#define PIN_SPI_MOSI PB5
7878
#endif
79-
#ifndef PIN_SPI_MISOSPI1_SCK
80-
#define PIN_SPI_MISO PA6
79+
#ifndef PIN_SPI_MISO
80+
#define PIN_SPI_MISO PB4
8181
#endif
8282
#ifndef PIN_SPI_SCK
83-
#define PIN_SPI_SCK PA5
83+
#define PIN_SPI_SCK PB3
8484
#endif
8585

8686
// I2C definitions
8787
#ifndef PIN_WIRE_SDA
88-
#define PIN_WIRE_SDA PA11
88+
#define PIN_WIRE_SDA PB7
8989
#endif
9090
#ifndef PIN_WIRE_SCL
91-
#define PIN_WIRE_SCL PA12
91+
#define PIN_WIRE_SCL PB8
9292
#endif
9393

9494
// Timer Definitions

variants/STM32WLxx/WL54CCU_WL55CCU_WLE4C(8-B-C)U_WLE5C(8-B-C)U/variant_WE_OCEANUS1_EV.h

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,12 @@
1414

1515
#include "variant_WE_OCEANUS1.h"
1616

17-
// On-board LED pin number
18-
#define LED_BUILTIN PA7
19-
20-
// On-board user button
21-
#define USER_BTN PA0
17+
#ifndef LED_BUILTIN
18+
// On-board LED pin number
19+
#define LED_BUILTIN PA7
20+
#endif
2221

22+
#ifndef USER_BTN
23+
// On-board user button
24+
#define USER_BTN PA0
25+
#endif

0 commit comments

Comments
 (0)