Skip to content

Commit ddc8365

Browse files
committed
Define default pins for Cygnet/Swan Serial2
Add default pins for Serial2 instance. Signed-off-by: Zachary J. Fields <[email protected]>
1 parent f1432b0 commit ddc8365

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

variants/STM32L4xx/L433C(B-C)(T-U)_L443CC(T-U)/variant_CYGNET.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,14 @@
153153
#define PIN_SERIAL_TX PA9
154154
#endif
155155

156+
// Default pin used for generic `Serial2` instance
157+
#ifndef PIN_SERIAL2_RX
158+
#define PIN_SERIAL2_RX PA3
159+
#endif
160+
#ifndef PIN_SERIAL2_TX
161+
#define PIN_SERIAL2_TX PA2
162+
#endif
163+
156164
// LPUART1
157165
#ifndef PIN_SERIAL_LP1_RX
158166
#define PIN_SERIAL_LP1_RX PB10

variants/STM32L4xx/L4R5Z(G-I)Y_L4R9Z(G-I)Y_L4S5ZIY_L4S9ZIY/variant_SWAN_R5.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,14 @@
236236
#define PIN_SERIAL_TX PA9
237237
#endif
238238

239+
// Default pin used for generic 'Serial2' instance
240+
#ifndef PIN_SERIAL2_RX
241+
#define PIN_SERIAL2_RX PC5
242+
#endif
243+
#ifndef PIN_SERIAL2_TX
244+
#define PIN_SERIAL2_TX PC4
245+
#endif
246+
239247
// LPUART1
240248
#ifndef PIN_SERIAL_LP1_RX
241249
#define PIN_SERIAL_LP1_RX PG8

0 commit comments

Comments
 (0)