3.3 USB Device Stack Files

The USB device stack files are available as part of ASF in Atmel® Studio.

To list relevant USB examples in Atmel Studio 7, select "New Example Project..." from the start screen or the File menu (File → New → Example Project...). The list of examples can be reduced to list only USB by either searching for USB in the search field or select USB from the Technology tab.

Note: This USB device stack does not apply to ASF examples with names containing "from ASF V1".
Table 3-1. Common Files for all AVR Products
FilesPaths
Defines USB constantusb_protocol.h (from usb.org)common/services/usb/
usb_atmel.h (from Microchip)
UDC filesudc.c/hcommon/services/usb/udc/
udc_desc.h
udi.h
udd.h
Classes protocols filesusb_protocol_foo.h common/services/usb/class/foo/
UDI filesudi_foo.c/hcommon/services/usb/class/foo/device/
udi_foo_desc.c
udi_foo_conf.h
Table 3-2. UDD Files Depending on Selected AVR Products
FilesPaths
AVR32usbb_device.c/havr32/drivers/usbb/
usbb_otg.havr32/drivers/usbb/
usbc_device.c/havr32/drivers/usbc/
usbc_otg.havr32/drivers/usbc/
XMEGAusb.c/hxmega/drivers/usb/
MEGA AVRusb.c/hmega/drivers/usb/
Table 3-3. Specific File for Each Application
FilesPaths
Application file (This configuration file is mandatory) usb_conf.huser/application defined location, e.g. application config folder