Sfoglia il codice sorgente

define SERIAL_PORT_MONITOR to Serial1 when USB is disabled

teensy4-core
PaulStoffregen 9 anni fa
parent
commit
37e24b0107
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. +4
    -0
      teensy3/pins_arduino.h

+ 4
- 0
teensy3/pins_arduino.h Vedi File

@@ -167,7 +167,11 @@ static inline uint8_t digitalPinToTimer(uint8_t pin)
// SERIAL_PORT_HARDWARE_OPEN Hardware serial ports which are open for use. Their RX & TX
// pins are NOT connected to anything by default.
//
#if F_CPU >= 20000000 && !defined(USB_DISABLED)
#define SERIAL_PORT_MONITOR Serial
#else
#define SERIAL_PORT_MONITOR Serial1
#endif
#define SERIAL_PORT_USBVIRTUAL Serial
#define SERIAL_PORT_HARDWARE Serial1
#define SERIAL_PORT_HARDWARE1 Serial2

Loading…
Annulla
Salva