📄 f34x_usb_descriptor.lst
字号:
C51 COMPILER V7.50 F34X_USB_DESCRIPTOR 08/01/2007 13:13:21 PAGE 1
C51 COMPILER V7.50, COMPILATION OF MODULE F34X_USB_DESCRIPTOR
OBJECT MODULE PLACED IN F34x_USB_Descriptor.OBJ
COMPILER INVOKED BY: C:\Keil\C51\BIN\c51.exe F34x_USB_Descriptor.c DB OE
line level source
1 //-----------------------------------------------------------------------------
2 // F34x_USB_Descriptor.c
3 //-----------------------------------------------------------------------------
4 // Copyright 2005 Silicon Laboratories, Inc.
5 // http://www.silabs.com
6 //
7 // Program Description:
8 //
9 // Source file for USB firmware. Includes descriptor data.
10 //
11 //
12 // How To Test: See Readme.txt
13 //
14 //
15 // FID: 34X000016
16 // Target: C8051F34x
17 // Tool chain: Keil C51 7.50 / Keil EVAL C51
18 // Silicon Laboratories IDE version 2.6
19 // Command Line: See Readme.txt
20 // Project Name: F34x_USB_Interrupt
21 //
22 // Release 1.0
23 // -Initial Revision (GP)
24 // -22 NOV 2005
25 // -Ported from 'F320_USB_Bulk
26 //
27
28 //-----------------------------------------------------------------------------
29 // Includes
30 //-----------------------------------------------------------------------------
31
32 #include "F34x_USB_Register.h"
33 #include "F34x_USB_Main.h"
34 #include "F34x_USB_Descriptor.h"
35
36 //-----------------------------------------------------------------------------
37 // Descriptor Declarations
38 //-----------------------------------------------------------------------------
39
40 const device_descriptor DeviceDesc =
41 {
42 18, // bLength
43 0x01, // bDescriptorType
44 0x1001, // bcdUSB
45 0x00, // bDeviceClass
46 0x00, // bDeviceSubClass
47 0x00, // bDeviceProtocol
48 EP0_PACKET_SIZE, // bMaxPacketSize0
49 0xC410, // idVendor
50 0x0000, // idProduct
51 0x0000, // bcdDevice
52 0x01, // iManufacturer
53 0x02, // iProduct
54 0x00, // iSerialNumber
55 0x01 // bNumConfigurations
C51 COMPILER V7.50 F34X_USB_DESCRIPTOR 08/01/2007 13:13:21 PAGE 2
56 }; //end of DeviceDesc
57
58 const configuration_descriptor ConfigDesc =
59 {
60 0x09, // Length
61 0x02, // Type
62 0x2000, // Totallength
63 0x01, // NumInterfaces
64 0x01, // bConfigurationValue
65 0x00, // iConfiguration
66 0x80, // bmAttributes
67 0x0F // MaxPower
68 }; //end of ConfigDesc
69
70 const interface_descriptor InterfaceDesc =
71 {
72 0x09, // bLength
73 0x04, // bDescriptorType
74 0x00, // bInterfaceNumber
75 0x00, // bAlternateSetting
76 0x02, // bNumEndpoints
77 0x00, // bInterfaceClass
78 0x00, // bInterfaceSubClass
79 0x00, // bInterfaceProcotol
80 0x00 // iInterface
81 }; //end of InterfaceDesc
82
83 const endpoint_descriptor Endpoint1Desc =
84 {
85 0x07, // bLength
86 0x05, // bDescriptorType
87 0x81, // bEndpointAddress
88 0x03, // bmAttributes
89 EP1_PACKET_SIZE_LE, // MaxPacketSize (LITTLE ENDIAN)
90 10 // bInterval
91 }; //end of Endpoint1Desc
92
93 const endpoint_descriptor Endpoint2Desc =
94 {
95 0x07, // bLength
96 0x05, // bDescriptorType
97 0x02, // bEndpointAddress
98 0x03, // bmAttributes
99 EP2_PACKET_SIZE_LE, // MaxPacketSize (LITTLE ENDIAN)
100 10 // bInterval
101 }; //end of Endpoint2Desc
102
103 #define STR0LEN 4
104
105 code const BYTE String0Desc[STR0LEN] =
106 {
107 STR0LEN, 0x03, 0x09, 0x04
108 }; //end of String0Desc
109
110 #define STR1LEN sizeof("SILICON LABORATORIES INC.")*2
111
112 code const BYTE String1Desc[STR1LEN] =
113 {
114 STR1LEN, 0x03,
115 'S', 0,
116 'I', 0,
117 'L', 0,
C51 COMPILER V7.50 F34X_USB_DESCRIPTOR 08/01/2007 13:13:21 PAGE 3
118 'I', 0,
119 'C', 0,
120 'O', 0,
121 'N', 0,
122 ' ', 0,
123 'L', 0,
124 'A', 0,
125 'B', 0,
126 'O', 0,
127 'R', 0,
128 'A', 0,
129 'T', 0,
130 'O', 0,
131 'R', 0,
132 'I', 0,
133 'E', 0,
134 'S', 0,
135 ' ', 0,
136 'I', 0,
137 'N', 0,
138 'C', 0,
139 '.', 0
140 }; //end of String1Desc
141
142 #define STR2LEN sizeof("C8051F340 Development Board")*2
143
144 code const BYTE String2Desc[STR2LEN] =
145 {
146 STR2LEN, 0x03,
147 'C', 0,
148 '8', 0,
149 '0', 0,
150 '5', 0,
151 '1', 0,
152 'F', 0,
153 '3', 0,
154 '4', 0,
155 '0', 0,
156 ' ', 0,
157 'D', 0,
158 'e', 0,
159 'v', 0,
160 'e', 0,
161 'l', 0,
162 'o', 0,
163 'p', 0,
164 'm', 0,
165 'e', 0,
166 'n', 0,
167 't', 0,
168 ' ', 0,
169 'B', 0,
170 'o', 0,
171 'a', 0,
172 'r', 0,
173 'd', 0
174 }; //end of String2Desc
175
176 BYTE* const StringDescTable[] =
177 {
178 String0Desc,
179 String1Desc,
C51 COMPILER V7.50 F34X_USB_DESCRIPTOR 08/01/2007 13:13:21 PAGE 4
180 String2Desc
181 };
182
183 //-----------------------------------------------------------------------------
184 // End Of File
185 //-----------------------------------------------------------------------------
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = ---- ----
CONSTANT SIZE = 162 ----
XDATA SIZE = ---- ----
PDATA SIZE = ---- ----
DATA SIZE = 9 ----
IDATA SIZE = ---- ----
BIT SIZE = ---- ----
END OF MODULE INFORMATION.
C51 COMPILATION COMPLETE. 0 WARNING(S), 0 ERROR(S)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -