USB_Descriptors.LST
上传用户:gxz1972
上传日期:2019-09-13
资源大小:323k
文件大小:7k
- C51 COMPILER V7.02b USB_DESCRIPTORS 11/30/2007 14:07:12 PAGE 1
- C51 COMPILER V7.02b, COMPILATION OF MODULE USB_DESCRIPTORS
- OBJECT MODULE PLACED IN USB_Descriptors.OBJ
- COMPILER INVOKED BY: C:KeilC51BINc51.exe USB_Descriptors.c DB OE
- stmt level source
- 1 //-----------------------------------------------------------------------------
- 2 // USB_Descriptors.c
- 3 //-----------------------------------------------------------------------------
- 4 // Copyright 2007 Vson Technology, Inc.
- 5 // http://www.usbmcu.com
- 6 //
- 7 // Program Description:
- 8 //
- 9 //
- 10 //
- 11 //
- 12 //
- 13 // MCU: C8051F347
- 14 // Tool chain: Keil C51 7.50 / Keil EVAL C51
- 15 // Silicon Laboratories IDE version 2.6
- 16 // Command Line:
- 17 // Project Name: TR1000
- 18 //
- 19 //
- 20 // Release 1.0
- 21 // -All changes by Brin Cai
- 22 // -24 JUL 2007
- 23 //
- 24 //
- 25
- 26 //-----------------------------------------------------------------------------
- 27 // Includes
- 28 //-----------------------------------------------------------------------------
- 29
- 30 #include "Include_H.h"
- 31
- 32 //-----------------------------------------------------------------------------
- 33 // Global Constants
- 34 //-----------------------------------------------------------------------------
- 35
- 36 // All descriptors are contained in the global structure <gDescriptorMap>.
- 37 // This structure contains BYTE arrays for the standard device descriptor
- 38 // and all configurations. The lengths of the configuration arrays are
- 39 // defined by the number of interface and endpoint descriptors required
- 40 // for the particular configuration (these constants are named
- 41 // CFG1_IF_DSC and CFG1_EP_DSC for configuration1).
- 42 //
- 43 // The entire gDescriptorMap structure is initialized below in
- 44 // codespace.
- 45
- 46 DESCRIPTORS code gDescriptorMap = {
- 47
- 48 //---------------------------
- 49 // Begin Standard Device Descriptor (structure element stddevdsc)
- 50 //---------------------------
- 51 18, // bLength
- 52 0x01, // bDescriptorType
- 53 0x00, 0x02, // bcdUSB (lsb first)
- 54 0x00, // bDeviceClass
- 55 0x00, // bDeviceSubClass
- C51 COMPILER V7.02b USB_DESCRIPTORS 11/30/2007 14:07:12 PAGE 2
- 56 0x00, // bDeviceProtocol
- 57 64, // bMaxPacketSize0
- 58 //0xC4, 0x10, // idVendor (lsb first)
- 59 //0x03, 0x00, // idProduct (lsb first)
- 60
- 61 0x38, 0x01, // idVendor (lsb first)
- 62 0x38, 0x01, // idProduct (lsb first)
- 63 0x00, 0x00, // bcdDevice (lsb first)
- 64 0x00, // iManufacturer
- 65 0x00, // iProduct
- 66 0x00, // iSerialNumber
- 67 0x01, // bNumConfigurations
- 68
- 69 //---------------------------
- 70 // Begin Configuration 1 (structure element cfg1)
- 71 //---------------------------
- 72
- 73 // Begin Descriptor: Configuration 1
- 74 0x09, // Length
- 75 0x02, // Type
- 76 0x20, 0x00, // TotalLength (lsb first)
- 77 0x01, // NumInterfaces
- 78 0x01, // bConfigurationValue
- 79 0x00, // iConfiguration
- 80 0x80, // bmAttributes (no remote wakeup)
- 81 0x0F, // MaxPower (*2mA)
- 82
- 83 // Begin Descriptor: Interface0, Alternate0
- 84 0x09, // bLength
- 85 0x04, // bDescriptorType
- 86 0x00, // bInterfaceNumber
- 87 0x00, // bAlternateSetting
- 88 0x02, // bNumEndpoints
- 89 0x00, // bInterfaceClass
- 90 0x00, // bInterfaceSubClass
- 91 0x00, // bInterfaceProcotol
- 92 0x00, // iInterface
- 93
- 94 // Begin Descriptor: Endpoint1, Interface0, Alternate0
- 95 0x07, // bLength
- 96 0x05, // bDescriptorType
- 97 0x81, // bEndpointAddress (ep1, IN)
- 98 0x02, // bmAttributes (Bulk)
- 99 0x40, 0x00, // wMaxPacketSize (lsb first)
- 100 0x05, // bInterval
- 101
- 102 // Begin Descriptor: Endpoint2, Interface0, Alternate0
- 103 0x07, // bLength
- 104 0x05, // bDescriptorType
- 105 0x02, // bEndpointAddress (ep2, OUT)
- 106 0x02, // bmAttributes (Bulk)
- 107 0x40, 0x00, // wMaxPacketSize (lsb first)
- 108 0x05, // bInterval
- 109
- 110 //---------------------------
- 111 // End Configuration 1
- 112 //---------------------------
- 113
- 114 };
- 115
- 116 //-----------------------------------------------------------------------------
- 117 // End Of File
- C51 COMPILER V7.02b USB_DESCRIPTORS 11/30/2007 14:07:12 PAGE 3
- 118 //-----------------------------------------------------------------------------
- MODULE INFORMATION: STATIC OVERLAYABLE
- CODE SIZE = ---- ----
- CONSTANT SIZE = 50 ----
- XDATA SIZE = ---- ----
- PDATA SIZE = ---- ----
- DATA SIZE = ---- ----
- IDATA SIZE = ---- ----
- BIT SIZE = ---- ----
- END OF MODULE INFORMATION.
- C51 COMPILATION COMPLETE. 0 WARNING(S), 0 ERROR(S)