usb_desc.c
上传用户:sourcesun
上传日期:2013-09-23
资源大小:362k
文件大小:4k
- /*************************************************************************
- *
- * Used with ICCARM and AARM.
- *
- * (c) Copyright IAR Systems 2003
- *
- * File name : usb_desc.c
- * Description : usb decriptors module
- *
- * History :
- * 1. Data : August 10, 2005
- * Author : Stanimir Bonev
- * Description : Create
- *
- * $Revision: 1.1.2.1 $
- **************************************************************************/
- #include "usb_desc.h"
- #pragma data_alignment=4
- const UsbStandardDeviceDescriptorStr_t UsbStandardDeviceDescriptorStr =
- {
- sizeof(UsbStandardDeviceDescriptorStr_t),
- UsbDescriptorDevice,
- 0x200,
- 0,
- 0,
- 0,
- Ep0MaxSize,
- 0xFFFF,
- 0x0001,
- 0x0000,
- iManufacturerStr,
- iProductStr,
- iSerialNumberStr,
- 1,
- };
- #pragma data_alignment=4
- const Int16U mouseDescriptor[] =
- {
- 0x0105, // Usage Page (Generic Desktop)
- 0x0209, // Usage (Mouse)
- 0x01A1, // Collection (Application)
- 0x0109, // Usage (Pointer)
- 0x00A1, // Collection (Physical)
- 0x0905, // Usage Page (Buttons)
- 0x0119, // Usage Minimum