Defines | Variables

usb_config.h File Reference




const unsigned short mxusb::EP0_SIZE = 32
const unsigned int mxusb::QUEUE_SIZE = 1024

Detailed Description

This file contains configuration parameters for the mxusb library.

Define Documentation


Enable descriptor validation.
While developing, this should be kept enabled so that if an error is introduced in the descriptors, the USB stack will refuse to start and print an error message. When releasing code, to minimize code size it can be disabled.


Enable trace mode.
This spawns a background thread which prints debug data.
Since data is printed in a thread, the time needed to print does not cause interrupt latency.


Enable printing also TracePoints tagged as verbose.
Useful for debugging enumeration issues.