Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Incorporate ST feedback #1844

Merged
merged 1 commit into from
Oct 5, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down