Teensy USB / serial followup (#21316)

This commit is contained in:
X-Ryl669
2021-03-15 02:23:41 +01:00
committed by GitHub
parent ae8be31247
commit c07f99d5e4
6 changed files with 27 additions and 8 deletions

View File

@@ -31,7 +31,11 @@
#include <Wire.h>
DefaultSerial1 MSerial0(false);
#define _IMPLEMENT_SERIAL(X) DefaultSerial##X MSerial##X(false, Serial##X)
#define IMPLEMENT_SERIAL(X) _IMPLEMENT_SERIAL(X)
#if WITHIN(SERIAL_PORT, 0, 3)
IMPLEMENT_SERIAL(SERIAL_PORT);
#endif
USBSerialType USBSerial(false, SerialUSB);
uint16_t HAL_adc_result;