Skip to content

Using Serial ports > 3 on Teensy boards #24

@bazmonk

Description

@bazmonk

I have been using the Trigger (and Tsunami) with Teensy3.5+ boards, which support upwards of 8 UART serial ports (https://www.pjrc.com/teensy/td_uart.html). I'm also using the USB Host feature of the Teensy units.

  • Using the Serial ports above 3 was easy. In the header files:
#ifdef __WT_USE_SERIAL4__
#define WTSerial Serial4
#define __WT_SERIAL_ASSIGNED__
#endif
#ifdef __WT_USE_SERIAL5__
#define WTSerial Serial5
#define __WT_SERIAL_ASSIGNED__
#endif
#ifdef __WT_USE_SERIAL6__
#define WTSerial Serial6
#define __WT_SERIAL_ASSIGNED__
#endif
#ifdef __WT_USE_SERIAL7__
#define WTSerial Serial7
#define __WT_SERIAL_ASSIGNED__
#endif
#ifdef __WT_USE_SERIAL8__
#define WTSerial Serial8
#define __WT_SERIAL_ASSIGNED__
#endif
  • The USBHost_t36 library for Teensy (https://github.com/PaulStoffregen/USBHost_t36) also uses an EOM variable. To make the Trigger/Tsunami work alongside I renamed the EOM variables in their libraries to EOMWT and EOMTS, respectively.

So... no issue here. I'm curious if you want either of these as pull requests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions