Documentation ¶
Overview ¶
Package system, when imported, performs the default configuration of the Teensy 4.x board.
The board is configured to run with 528 MHz system clock. The USB interface is configured to provide two bidirectional communication channels with the host visible as two CDC ACM serial ports. The first one is used as the system console, the second one remains free for any use (see the USBIO function for more information).
All packages in the board directory imports this package implicitly.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func USBIO ¶
USBIO returns the USB device and two logical endpoint numbers configured to be used as one bidirectional or two unidirectional communication channels. You can use them directly for raw USB communication, or they can be passed (along with statInt) to the usbserial.NewDriver function to obtain an emulated serial port.
On the host side, this bidirectional communication interface is visible as the second CDC ACM serial port. Nevertheless, thanks to libraries like libusb it can be used in raw mode to implement any required communication protocol.
Types ¶
This section is empty.