Skip to content

Commit 72d571d

Browse files
committed
Removes Serial1 from Redboard Turbo Variant
* There are two externs for Serial and Serial1 included in the header file. However only Serial1 is defined and so causes issues when compiling sketches that use Serial. Serial1 in my mind implies a Serial port so Serial1 has been removed.
1 parent 2789b59 commit 72d571d

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

sparkfun/samd/variants/SparkFun_RedBoard_Turbo/variant.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,11 +214,11 @@ SERCOM sercom3( SERCOM3 ) ;
214214
SERCOM sercom4( SERCOM4 ) ;
215215
SERCOM sercom5( SERCOM5 ) ;
216216

217-
Uart Serial1( &sercom0, PIN_SERIAL1_RX, PIN_SERIAL1_TX, PAD_SERIAL1_RX, PAD_SERIAL1_TX ) ;
217+
Uart Serial( &sercom0, PIN_SERIAL1_RX, PIN_SERIAL1_TX, PAD_SERIAL1_RX, PAD_SERIAL1_TX ) ;
218218
//Uart Serial( &sercom5, PIN_SERIAL_RX, PIN_SERIAL_TX, PAD_SERIAL_RX, PAD_SERIAL_TX ) ;
219219
void SERCOM0_Handler()
220220
{
221-
Serial1.IrqHandler();
221+
Serial.IrqHandler();
222222
}
223223

224224
//void SERCOM5_Handler()

sparkfun/samd/variants/SparkFun_RedBoard_Turbo/variant.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,6 @@ extern SERCOM sercom4;
197197
extern SERCOM sercom5;
198198

199199
extern Uart Serial;
200-
extern Uart Serial1;
201200

202201
#endif
203202

@@ -219,8 +218,8 @@ extern Uart Serial1;
219218
#define SERIAL_PORT_USBVIRTUAL SerialUSB
220219
#define SERIAL_PORT_MONITOR SerialUSB
221220
// Serial has no physical pins broken out, so it's not listed as HARDWARE port
222-
#define SERIAL_PORT_HARDWARE Serial1
223-
#define SERIAL_PORT_HARDWARE_OPEN Serial1
221+
#define SERIAL_PORT_HARDWARE Serial
222+
#define SERIAL_PORT_HARDWARE_OPEN Serial
224223

225224
#endif /* _VARIANT_ARDUINO_ZERO_ */
226225

0 commit comments

Comments
 (0)