Skip to content

Commit 433f4fe

Browse files
zfieldsfpistm
authored andcommitted
feat: Name Swan Virtual COM Port pins
1 parent 5818d75 commit 433f4fe

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

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

+10
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,16 @@
222222
#define TIMER_SERVO TIM7
223223
#endif
224224

225+
// Pin used for Virtual COM Port
226+
// Note that a developer would add this to their Arduino project:
227+
// HardwareSerial SerialVCP(PIN_SERIAL_VCP_RX, PIN_SERIAL_VCP_TX);
228+
#ifndef PIN_SERIAL_VCP_RX
229+
#define PIN_SERIAL_VCP_RX PG8
230+
#endif
231+
#ifndef PIN_SERIAL_VCP_TX
232+
#define PIN_SERIAL_VCP_TX PG7
233+
#endif
234+
225235
// UART Definitions
226236
#ifndef SERIAL_UART_INSTANCE
227237
#define SERIAL_UART_INSTANCE 1

0 commit comments

Comments
 (0)