Skip to content

Fixes #144

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 11 commits into from
Prev Previous commit
Next Next commit
Specify NUM_SERIAL_PORTS for non-AVR targets
For AVR-targets, this value is autodetected based on the MCU type, but
for other targets it must be explicitly specified.
  • Loading branch information
matthijskooijman committed Nov 7, 2020
commit 819b9e560be6698f47edd990c1d0ca59b38c41ff
9 changes: 9 additions & 0 deletions misc/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ platforms:
- __SAM3X8E__
- ARDUINO_ARCH_SAM
- ARDUINO_SAM_DUE
- NUM_SERIAL_PORTS=4
warnings:
flags:
zero:
Expand All @@ -48,6 +49,8 @@ platforms:
- __SAMD21G18A__
- ARDUINO_ARCH_SAMD
- ARDUINO_SAMD_ZERO
# This also has SerialUSB, which is not included here.
- NUM_SERIAL_PORTS=2
warnings:
flags:
esp32:
Expand All @@ -59,6 +62,7 @@ platforms:
- ESP32
- ARDUINO_ARCH_ESP32
- ARDUINO_FEATHER_ESP32
- NUM_SERIAL_PORTS=3
warnings:
flags:
esp8266:
Expand All @@ -70,6 +74,7 @@ platforms:
- ESP8266
- ARDUINO_ARCH_ESP8266
- ARDUINO_ESP8266_ESP12
- NUM_SERIAL_PORTS=2
warnings:
flags:
leonardo:
Expand Down Expand Up @@ -118,6 +123,8 @@ platforms:
- __SAMD51J19A__
- ARDUINO_ARCH_SAMD
- ARDUINO_METRO_M4
# Serial is actually USB virtual serial, not HardwareSerial
- NUM_SERIAL_PORTS=2
warnings:
flags:
mega2560:
Expand Down Expand Up @@ -153,6 +160,8 @@ platforms:
- __SAMD21G18A__
- ARDUINO_ARCH_SAMD
- ARDUINO_SAMD_CIRCUITPLAYGROUND_EXPRESS
# Serial is actually an alias of SerialUSB, not a HardwareSerial
- NUM_SERIAL_PORTS=2
warnings:
flags:

Expand Down