Add option USB CDC to be used for Serial (starting USB early)

This commit is contained in:
me-no-dev
2020-07-22 19:16:22 +03:00
parent 4967f19513
commit 1a7a928b64
9 changed files with 33 additions and 3 deletions

View File

@ -37,7 +37,11 @@
#endif
#if !defined(NO_GLOBAL_INSTANCES) && !defined(NO_GLOBAL_SERIAL)
#if ARDUINO_SERIAL_PORT //Serial used for USB CDC
HardwareSerial Serial0(0);
#else
HardwareSerial Serial(0);
#endif
HardwareSerial Serial1(1);
#if CONFIG_IDF_TARGET_ESP32
HardwareSerial Serial2(2);