📄 usb_dev_desc.c
字号:
/*************************************************************************
*
* Used with ICCARM and AARM.
*
* (c) Copyright IAR Systems 2006
*
* File name : usb_dev_desc.c
* Description : usb decorators module
*
* History :
* 1. Date : January 7, 2007
* Author : Stanimir Bonev
* Description : Create
*
* $Revision: 18137 $
**************************************************************************/
#include "usb_desc.h"
#pragma data_alignment=4
const UsbStandardDeviceDescriptorStr_t UsbStandardDeviceDescriptorStr =
{
sizeof(UsbStandardDeviceDescriptorStr_t),
UsbDescriptorDevice,
0x200,
0,
0,
0,
Ep0MaxSize,
0xFFFF,
0x0018,
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)
0x0395, // Report Count (3)
0x0175, // Report Size (1)
0x0905, // Usage Page (Buttons)
0x0119, // Usage Minimum
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -