Skip to content

Commit ac4874f

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

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-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

0 commit comments

Comments
 (0)