Skip to content

Commit eb0cf4f

Browse files
facchinmcalvinatintel
authored andcommitted
Add SERIAL_PORT_USBVIRTUAL and SerialUSB macros
This is needed to ensure compatibility with YunShield sketches asas
1 parent 2bac6d3 commit eb0cf4f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

variants/arduino_101/variant.h

+3
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,13 @@ void CDCSerial_bytes_sent(uint32_t num);
202202
// SERIAL_PORT_HARDWARE_OPEN Hardware serial ports which are open for use. Their RX & TX
203203
// pins are NOT connected to anything by default.
204204
#define SERIAL_PORT_MONITOR Serial
205+
#define SERIAL_PORT_USBVIRTUAL Serial
205206
#define SERIAL_PORT_HARDWARE_OPEN Serial1
206207
#define SERIAL_PORT_HARDWARE Serial1
207208
#define SERIAL_PORT_HARDWARE1 Serial1
208209

210+
#define SerialUSB SERIAL_PORT_USBVIRTUAL
211+
209212
extern uint32_t sizeof_g_APinDescription;
210213

211214
#endif /* _VARIANT_ARDUINO_101_X_ */

0 commit comments

Comments
 (0)