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

Add Serial3 for OPTA #714

Merged
merged 1 commit into from
Sep 1, 2023
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
12 changes: 6 additions & 6 deletions variants/OPTA/pins_arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,18 @@ static const uint8_t SCK = PIN_SPI_SCK;
#define PIN_WIRE_SDA (11u)
#define PIN_WIRE_SCL (12u)

#define SERIAL_HOWMANY 2
#define SERIAL_HOWMANY 3
#define SERIAL1_TX (digitalPinToPinName(PIN_SERIAL_TX))
#define SERIAL1_RX (digitalPinToPinName(PIN_SERIAL_RX))

#define SERIAL2_TX PB_10
#define SERIAL2_RX PB_11

#define SERIAL3_TX PB_9
#define SERIAL3_RX PH_14
#define SERIAL3_RTS PA_15
#define SERIAL3_CTS PB_15

#define SERIAL_CDC 1
#define HAS_UNIQUE_ISERIAL_DESCRIPTOR

Expand Down Expand Up @@ -184,11 +189,6 @@ void _ontouch1200bps_();
#define RS485_DEFAULT_DE_PIN PB_14
#define RS485_DEFAULT_RE_PIN PB_13

#define SerialLoRa Serial3
#define LORA_BOOT0 (PG_7)
#define LORA_RESET (PC_7)
#define LORA_IRQ_DUMB (PJ_11)

#define CRYPTO_WIRE Wire1

#define USB_MAX_POWER (500)
Expand Down