USB Libraries Help > USB Device Libraries > USB Device Layer Library > Configuring the Library
MPLAB Harmony USB Stack
Configuring the Library

The USB Device Layer initializes and configures the USB Controller Driver ( the driver that manages the USB peripheral when operating as device) and maintains its task routine. For completeness, the following table lists the configuration macros that are needed by the USB Controller Driver. These macros should be defined in system_config.h file along with the Device Layer Configuration macros.

Macros
 
Name 
Description 
 
Number of Device Layer instances to provisioned in the application. 
 
Specifies the combined endpoint queue depth in case of a vendor USB device implementation. 
 
Enables the Device Layer Set Descriptor Event. 
 
Enables the Device Layer SOF event. 
 
Enables the Device Layer Synch Frame Event. 
 
Specifies if the Device Layer should process a Host request for a BOS descriptor. 
 
Specifies if the USB Controller Driver must be initialized explicitly as opposed to being initialized by the Device Layer. 
 
Buffer Size in Bytes for Endpoint 0. 
 
Specifying this macro enables the Advanced String Descriptor Table Entry Format. 
 
Constant that defines the value of an Invalid Device Endpoint Data Transfer Handle. 
 
This is macro _USB_DEVICE_CONFIG_TEMPLATE_H_.