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 1. Common Files for all AVR Products |
Files |
Paths |
Defines USB constant |
usb_protocol.h (from usb.org) |
common/services/usb/ |
usb_atmel.h (from Microchip) |
UDC files |
udc.c/h |
common/services/usb/udc/ |
udc_desc.h |
udi.h |
udd.h |
Classes protocols files |
usb_protocol_foo.h |
common/services/usb/class/foo/ |
UDI files |
udi_foo.c/h |
common/services/usb/class/foo/device/ |
udi_foo_desc.c |
udi_foo_conf.h |
Table 2. UDD Files Depending on Selected AVR
Products |
Files |
Paths |
AVR32 |
usbb_device.c/h |
avr32/drivers/usbb/ |
usbb_otg.h |
avr32/drivers/usbb/ |
usbc_device.c/h |
avr32/drivers/usbc/ |
usbc_otg.h |
avr32/drivers/usbc/ |
XMEGA |
usb.c/h |
xmega/drivers/usb/ |
MEGA AVR |
usb.c/h |
mega/drivers/usb/ |
Table 3. Specific File for Each Application |
Files |
Paths |
Application file (This configuration file is mandatory) |
usb_conf.h |
user/application defined location, e.g. application config folder |