Skip to content

Commit d5d3713

Browse files
authored
Merge pull request #714 from manchoz/opta_serial_3
Add Serial3 for OPTA
2 parents bf97c60 + da04523 commit d5d3713

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

variants/OPTA/pins_arduino.h

+6-6
Original file line numberDiff line numberDiff line change
@@ -130,13 +130,18 @@ static const uint8_t SCK = PIN_SPI_SCK;
130130
#define PIN_WIRE_SDA (11u)
131131
#define PIN_WIRE_SCL (12u)
132132

133-
#define SERIAL_HOWMANY 2
133+
#define SERIAL_HOWMANY 3
134134
#define SERIAL1_TX (digitalPinToPinName(PIN_SERIAL_TX))
135135
#define SERIAL1_RX (digitalPinToPinName(PIN_SERIAL_RX))
136136

137137
#define SERIAL2_TX PB_10
138138
#define SERIAL2_RX PB_11
139139

140+
#define SERIAL3_TX PB_9
141+
#define SERIAL3_RX PH_14
142+
#define SERIAL3_RTS PA_15
143+
#define SERIAL3_CTS PB_15
144+
140145
#define SERIAL_CDC 1
141146
#define HAS_UNIQUE_ISERIAL_DESCRIPTOR
142147

@@ -184,11 +189,6 @@ void _ontouch1200bps_();
184189
#define RS485_DEFAULT_DE_PIN PB_14
185190
#define RS485_DEFAULT_RE_PIN PB_13
186191

187-
#define SerialLoRa Serial3
188-
#define LORA_BOOT0 (PG_7)
189-
#define LORA_RESET (PC_7)
190-
#define LORA_IRQ_DUMB (PJ_11)
191-
192192
#define CRYPTO_WIRE Wire1
193193

194194
#define USB_MAX_POWER (500)

0 commit comments

Comments
 (0)