Defines | Variables

usb_config.h File Reference

Defines

#define MXUSB_ENABLE_DESC_VALIDATION
#define MXUSB_ENABLE_TRACE
#define MXUSB_PRINT_VERBOSE

Variables

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

#define MXUSB_ENABLE_DESC_VALIDATION

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.

#define MXUSB_ENABLE_TRACE

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.

#define MXUSB_PRINT_VERBOSE

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