File tree Expand file tree Collapse file tree 1 file changed +18
-10
lines changed
variants/STM32L4xx/L4R5Z(G-I)Y_L4R9Z(G-I)Y_L4S5ZIY_L4S9ZIY Expand file tree Collapse file tree 1 file changed +18
-10
lines changed Original file line number Diff line number Diff line change 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
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
You can’t perform that action at this time.
0 commit comments