diff --git a/variants/STM32L4xx/L4R5Z(G-I)Y_L4R9Z(G-I)Y_L4S5ZIY_L4S9ZIY/variant_SWAN_R5.h b/variants/STM32L4xx/L4R5Z(G-I)Y_L4R9Z(G-I)Y_L4S5ZIY_L4S9ZIY/variant_SWAN_R5.h index f8cf443d60..c4c5b2de0b 100644 --- a/variants/STM32L4xx/L4R5Z(G-I)Y_L4R9Z(G-I)Y_L4S5ZIY_L4S9ZIY/variant_SWAN_R5.h +++ b/variants/STM32L4xx/L4R5Z(G-I)Y_L4R9Z(G-I)Y_L4S5ZIY_L4S9ZIY/variant_SWAN_R5.h @@ -222,16 +222,6 @@ #define TIMER_SERVO TIM7 #endif -// Pin used for Virtual COM Port -// Note that a developer would add this to their Arduino project: -// HardwareSerial SerialVCP(PIN_SERIAL_VCP_RX, PIN_SERIAL_VCP_TX); -#ifndef PIN_SERIAL_VCP_RX - #define PIN_SERIAL_VCP_RX PG8 -#endif -#ifndef PIN_SERIAL_VCP_TX - #define PIN_SERIAL_VCP_TX PG7 -#endif - // UART Definitions #ifndef SERIAL_UART_INSTANCE #define SERIAL_UART_INSTANCE 1 @@ -246,6 +236,24 @@ #define PIN_SERIAL_TX PA9 #endif +// LPUART1 +#ifndef PIN_SERIAL_LP1_RX + #define PIN_SERIAL_LP1_RX PG8 +#endif +#ifndef PIN_SERIAL_LP1_TX + #define PIN_SERIAL_LP1_TX PG7 +#endif + +// Virtual COM Port for Swans with a 14-pin STLink Connector mounted. +// To use the STLINK's Virtual COM port, this would be added to an Arduino project: +// HardwareSerial SerialVCP(PIN_VCP_RX, PIN_VCP_TX); +#ifndef PIN_VCP_RX + #define PIN_VCP_RX PIN_SERIAL_LP1_RX +#endif +#ifndef PIN_VCP_TX + #define PIN_VCP_TX PIN_SERIAL_LP1_TX +#endif + // Extra HAL modules #if !defined(HAL_DAC_MODULE_DISABLED) #define HAL_DAC_MODULE_ENABLED