Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1e7007c

Browse files
wm-eisosfpistm
authored andcommitted
variant(WL): correct Oceanus-I module and EV I2C and SPI pins
1 parentdd46d9c commit1e7007c

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
#ifndefPIN_SPI_SS
65-
#definePIN_SPI_SSPA4
65+
#definePIN_SPI_SSPA15
6666
#endif
6767
#ifndefPIN_SPI_SS1
68-
#definePIN_SPI_SS1PB2
68+
#definePIN_SPI_SS1PNUM_NOT_DEFINED
6969
#endif
7070
#ifndefPIN_SPI_SS2
7171
#definePIN_SPI_SS2 PNUM_NOT_DEFINED
@@ -74,21 +74,21 @@
7474
#definePIN_SPI_SS3 PNUM_NOT_DEFINED
7575
#endif
7676
#ifndefPIN_SPI_MOSI
77-
#definePIN_SPI_MOSIPA7
77+
#definePIN_SPI_MOSIPB5
7878
#endif
79-
#ifndefPIN_SPI_MISOSPI1_SCK
80-
#definePIN_SPI_MISOPA6
79+
#ifndefPIN_SPI_MISO
80+
#definePIN_SPI_MISOPB4
8181
#endif
8282
#ifndefPIN_SPI_SCK
83-
#definePIN_SPI_SCKPA5
83+
#definePIN_SPI_SCKPB3
8484
#endif
8585

8686
// I2C definitions
8787
#ifndefPIN_WIRE_SDA
88-
#definePIN_WIRE_SDAPA11
88+
#definePIN_WIRE_SDAPB7
8989
#endif
9090
#ifndefPIN_WIRE_SCL
91-
#definePIN_WIRE_SCLPA12
91+
#definePIN_WIRE_SCLPB8
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-
#defineLED_BUILTIN PA7
19-
20-
// On-board user button
21-
#defineUSER_BTN PA0
17+
#ifndefLED_BUILTIN
18+
// On-board LED pin number
19+
#defineLED_BUILTIN PA7
20+
#endif
2221

22+
#ifndefUSER_BTN
23+
// On-board user button
24+
#defineUSER_BTN PA0
25+
#endif

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp