00001
00038 #ifndef APP_USB_H_INCLUDED
00039 #define APP_USB_H_INCLUDED
00040
00041 #include <app/version.h>
00042 #include <usb/usb_ids.h>
00043
00044 #define APP_USB_DEVICE_CLASS USB_CLASS_NONE
00045 #define APP_USB_DEVICE_SUBCLASS USB_SUBCLASS_NONE
00046 #define APP_USB_DEVICE_PROTOCOL USB_PROTOCOL_NONE
00047 #define APP_USB_DEVICE_VENDOR_ID USB_VID_ATMEL
00048
00049 #define APP_USB_DEVICE_PRODUCT_ID USB_PID_AVR32786
00050 #define APP_USB_DEVICE_NR_CONFIGS 1
00051
00052 #define APP_USB_DEVICE_MAJOR_VERSION MAJOR_VERSION
00053 #define APP_USB_DEVICE_MINOR_VERSION MINOR_VERSION
00054
00055 #define APP_USB_NR_REQUESTS 8
00056 #define APP_UDC_NR_ENDPOINTS 3
00057 #define APP_UDC_MAXPACKETSIZE0 64
00058
00059 #define APP_UDI_MSC_INTERFACE_ID 0
00060
00061 #define APP_UDI_MSC_BULK_IN_EP 1
00062 #define APP_UDI_MSC_BULK_OUT_EP 2
00063
00064 #define APP_UDI_MSC_INQ_VENDOR_ID \
00065 'A', 't', 'm', 'e', 'l', ' ', ' ', ' '
00066 #define APP_UDI_MSC_INQ_PRODUCT_ID \
00067 'U', 'S', 'B', ' ', 'M', 'a', 's', 's', \
00068 ' ', 'S', 't', 'o', 'r', 'a', 'g', 'e'
00069 #define APP_UDI_MSC_INQ_PRODUCT_VERSION \
00070 '0' + MAJOR_VERSION, '.', '0' + MINOR_VERSION, ' '
00071
00072 static inline const char *app_get_serial_number(void)
00073 {
00074 return "0123456789AB";
00075 }
00076
00077 #endif