usb_desc.c
来自「NXP LPC系列AMR7的开发程序源码(LCD」· C语言 代码 · 共 47 行
C
47 行
/*************************************************************************
*
* Used with ICCARM and AARM.
*
* (c) Copyright IAR Systems 2003
*
* File name : usb_desc.c
* Description : usb decriptors module
*
* History :
* 1. Date : August 10, 2005
* Author : Stanimir Bonev
* Description : Create
*
* $Revision: 14946 $
**************************************************************************/
#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
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?