Skip to content

Commit 1303ef5

Browse files
authored
Add Serial3 for Arduino Nano Connect RP2040. Fix #807 (#838)
1 parent 85d39cf commit 1303ef5

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

cores/rp2040/SerialPIO.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,3 +370,8 @@ size_t SerialPIO::write(uint8_t c) {
370370
SerialPIO::operator bool() {
371371
return _running;
372372
}
373+
374+
#ifdef ARDUINO_NANO_RP2040_CONNECT
375+
// NINA updates
376+
SerialPIO Serial3(SERIAL3_TX, SERIAL3_RX);
377+
#endif

cores/rp2040/SerialPIO.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,8 @@ class SerialPIO : public HardwareSerial {
8080
uint32_t _reader;
8181
uint8_t *_queue;
8282
};
83+
84+
#ifdef ARDUINO_NANO_RP2040_CONNECT
85+
// NINA updates
86+
extern SerialPIO Serial3;
87+
#endif

variants/arduino_nano_connect/pins_arduino.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ static const uint8_t SCK = PIN_SPI0_SCK;
9494
#define SerialNina Serial3
9595
#define SerialHCI Serial2
9696

97+
#define SERIAL3_TX (D25)
98+
#define SERIAL3_RX (D26)
99+
97100
//#define NINA_GPIOIRQ (21u) // LEDG pin (GPIO26 on NINA)
98101
#define NINA_GPIO0 (D20) // (2u), real GPIO0 on NINA
99102

0 commit comments

Comments
 (0)