Skip to content

Commit ed4ef2f

Browse files
zfieldsfpistm
authored andcommitted
chore: Incorporate feedback
1 parent e09fc2d commit ed4ef2f

File tree

1 file changed

+18
-10
lines changed

1 file changed

+18
-10
lines changed

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

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -222,16 +222,6 @@
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-
235225
// UART Definitions
236226
#ifndef SERIAL_UART_INSTANCE
237227
#define SERIAL_UART_INSTANCE 1
@@ -246,6 +236,24 @@
246236
#define PIN_SERIAL_TX PA9
247237
#endif
248238

239+
// LPUART1
240+
#ifndef PIN_SERIAL_LP1_RX
241+
#define PIN_SERIAL_LP1_RX PG8
242+
#endif
243+
#ifndef PIN_SERIAL_LP1_TX
244+
#define PIN_SERIAL_LP1_TX PG7
245+
#endif
246+
247+
// Virtual COM Port for Swans with a 14-pin STLink Connector mounted.
248+
// To use the STLINK's Virtual COM port, this would be added to an Arduino project:
249+
// HardwareSerial SerialVCP(PIN_VCP_RX, PIN_VCP_TX);
250+
#ifndef PIN_VCP_RX
251+
#define PIN_VCP_RX PIN_SERIAL_LP1_RX
252+
#endif
253+
#ifndef PIN_VCP_TX
254+
#define PIN_VCP_TX PIN_SERIAL_LP1_TX
255+
#endif
256+
249257
// Extra HAL modules
250258
#if !defined(HAL_DAC_MODULE_DISABLED)
251259
#define HAL_DAC_MODULE_ENABLED

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy