Open franky47 opened 7 years ago
Relates to the following issues & PR:
When SERIAL_PORT_HARDWARE_OPEN
is defined, it points to the hardware UART that is available for external serial IO, which is what we're after:
// These serial port names are intended to allow libraries and architecture-neutral
// sketches to automatically default to the correct port name for a particular type
// of use. For example, a GPS module would normally connect to SERIAL_PORT_HARDWARE_OPEN,
// the first hardware serial port whose RX/TX pins are not dedicated to another use.
//
// SERIAL_PORT_MONITOR Port which normally prints to the Arduino Serial Monitor
//
// SERIAL_PORT_USBVIRTUAL Port which is USB virtual serial
//
// SERIAL_PORT_LINUXBRIDGE Port which connects to a Linux system via Bridge library
//
// SERIAL_PORT_HARDWARE Hardware serial port, physical RX & TX pins.
//
// SERIAL_PORT_HARDWARE_OPEN Hardware serial ports which are open for use. Their RX & TX
// pins are NOT connected to anything by default.
Should the USB part of this table be moved over to https://github.com/lathoub/Arduino-USBMIDI?
Arduino / Genuino platforms currently in production
SERIAL_PORT_HARDWARE_OPEN
USBCON
ARDUINO_AVR_UNO
Serial1
ARDUINO_AVR_LEONARDO
Serial1
ARDUINO_ARC32_TOOLS
Serial1
ARDUINO_AVR_MICRO
Serial1
ARDUINO_AVR_ESPLORA
ARDUINO_AVR_ROBOT_xxx
ARDUINO_AVR_MINI
Serial1
ARDUINO_AVR_MEGA2560
Serial1
ARDUINO_SAMD_ZERO
Serial1
ARDUINO_SAM_DUE
Serial1
ARDUINO_AVR_ADK
ARDUINO_AVR_ETHERNET
ARDUINO_AVR_YUN
Teensy platforms currently in production
SERIAL_PORT_HARDWARE_OPEN
USBCON
Serial1
Serial1
Serial1
__MKL26Z64__
Serial1
__MK20DX256__
Serial1
__MK62FX512__
Serial1
__MK66FX1M0__
Discontinued platforms
SERIAL_PORT_HARDWARE_OPEN
USBCON
ARDUINO_AVR_PRO
ARDUINO_AVR_FIO
ARDUINO_AVR_NANO
ARDUINO_AVR_NANO
Serial1
__MK20DX128__
Serial1
__MK20DX256__