⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 descriptor.lst

📁 周立功的LPC214x固件程序
💻 LST
字号:
ARM COMPILER V2.53,  Descriptor                                                            28/06/07  09:54:11  PAGE 1   


ARM COMPILER V2.53, COMPILATION OF MODULE Descriptor
OBJECT MODULE PLACED IN Descriptor.OBJ
COMPILER INVOKED BY: C:\Keil\ARM\BIN\CA.exe Descriptor.c THUMB OPTIMIZE(0,SPEED) BROWSE DEBUG TABS(4) 

stmt  level    source

    1          /****************************************Copyright (c)**************************************************
    2          **                               Guangzou ZLG-MCU Development Co.,LTD.
    3          **                                      graduate school
    4          **                                 http://www.zlgmcu.com
    5          **
    6          **--------------File Info-------------------------------------------------------------------------------
    7          ** File name:           Descriptor.c
    8          ** Last modified Date:  2005-8-6
    9          ** Last Version:        V1.0
   10          ** Descriptions:        USB 设备描述符
   11          **                      USB device descriptor
   12          **------------------------------------------------------------------------------------------------------
   13          ** Created by:          郑明远      MingYuan Zheng
   14          ** Created date:        2005-8-6
   15          ** Version:             V1.0
   16          ** Descriptions:        初始版本    The original version
   17          **
   18          **------------------------------------------------------------------------------------------------------
   19          ** Modified by:         
   20          ** Modified date:
   21          ** Version:             
   22          ** Descriptions:
   23          **
   24          **------------------------------------------------------------------------------------------------------
   25          ** Modified by: 
   26          ** Modified date:
   27          ** Version: 
   28          ** Descriptions: 
   29          **
   30          ********************************************************************************************************/
   31          
   32          
   33          //#include "config.h"
   34          #include "USBConfig.h"
   35          #include "Descriptor.h"
   36          #include "target.h"
   37          /* device descriptor: test device type */
   38          #define USB_CLASS_CODE_TEST_CLASS_DEVICE                    0xdc               /* 设备描述符: 测试设备类型 */
   39          
   40          /* interface descriptor: subclass code */
   41          #define USB_SUBCLASS_CODE_TEST_CLASS_D12                    0xA0               /* 接口描述符: 子类代码 */
   42          
   43          /* interface descriptor: protocol code */
   44          #define USB_PROTOCOL_CODE_TEST_CLASS_D12                    0xB0               /* 接口描述符: 协议代码 */
   45          
   46          /* device descriptor */
   47          const USB_DEVICE_DESCRIPTOR DeviceDescr =
   48          {
   49              sizeof(USB_DEVICE_DESCRIPTOR),                  // 设备描述符长度,= 12H        device descriptor length = 12H
   50              USB_DEVICE_DESCRIPTOR_TYPE,                     // 设备描述符类型,= 01H        device descriptor type = 01H
   51              0x00,0x01,                                      // 协议版本,= 1.10             protocol version = 1.10
   52              USB_CLASS_CODE_TEST_CLASS_DEVICE,               // 测试设备类型, = 0DCH        Class code = 0DCH
   53              0, 0,                                           // 设备子类,设备协议           Subclass code, Protocol code
   54              EP0_PACKET_SIZE,                                // 端点0最大数据包大小,= 40H   Maximum packet size for endpoint 0, = 40H
   55              0x71,0x04,                                      // PHILIPS公司的设备ID         Vendor ID = PHILIPS Semiconductor,Inc.   
   56              0x99,0x09,                                      // 设备制造商定的产品ID        Product ID
   57              0x00,0x01,                                      // 设备系列号                  Device release number in binary-coded decimal
   58              0, 0, 0,                                        // 索引                        Index
   59              1                                               // 可能的配置数                Number of possible configurations
ARM COMPILER V2.53,  Descriptor                                                            28/06/07  09:54:11  PAGE 2   

   60          };
   61          
   62          
   63          const USB_DESCRIPTOR usb_descr =
   64          {
   65          //configuration descriptor                          // 配置描述符
   66          {
   67              sizeof(USB_CONFIGURATION_DESCRIPTOR),           // 配置描述符长度,= 09H        Size of this descriptor in bytes 
             -= 09H
   68              USB_CONFIGURATION_DESCRIPTOR_TYPE,              // 配置描述符类型,= 02H        configuration descriptor type = 02H
   69              CONFIG_DESCRIPTOR_LENGTH,0x00,                  // 描述符总长度, = 002EH       Total length of data returned for this
             - configuration, = 002EH
   70              1,                                              // 只支持1个接口               only support a interface
   71              1,                                              // 配置值                      configuration value 
   72              0,                                              // 字符串描述符指针(无)        Index of string descriptor describing this configuration(no
             -)
   73              0x60,                                           // 自供电,支持远程唤醒         Configuration characteristics: support Self-powered, Remo
             -te Wakeup
   74              0x32                                            // 最大功耗(100mA)             Maximum power consumption(100mA)
   75          },
   76          //interface descriptor                              // 接口描述符
   77          {
   78              sizeof(USB_INTERFACE_DESCRIPTOR),               // 接口描述符长度,= 09H        Size of this descriptor in bytes = 09H
   79              USB_INTERFACE_DESCRIPTOR_TYPE,                  // 接口描述符类型,= 04H        interface descriptor type = 04H
   80              0,                                              // 接口数,只有1个              Number of this interface, only one
   81              0,                                              // 可选配置,只有1个            optional configuration, only one
   82              NUM_ENDPOINTS,                                  // 除端点0的端点索引数目,=04H  Number of endpoints used by this interface (exclud
             -ing endpoint zero) = 04H
   83              USB_CLASS_CODE_TEST_CLASS_DEVICE,               // 测试设备类型,= 0DCH         Class code = 0DCH
   84              USB_SUBCLASS_CODE_TEST_CLASS_D12,               // 子类代码,= 0A0H             Subclass code = 0A0H
   85              USB_PROTOCOL_CODE_TEST_CLASS_D12,               // 协议代码,= 0B0H             Protocol code = 0B0H
   86              0                                               // 字符串描述符索引            Index of string descriptor describing this interface
   87          },
   88          //endpoint descriptor, logic endpoint 1 IN          // 逻辑端点 1 输入  
   89          {
   90              sizeof(USB_ENDPOINT_DESCRIPTOR),                // 端点描述符长度,= 07H        endpoint descriptor length = 07H
   91              USB_ENDPOINT_DESCRIPTOR_TYPE,                   // 端点描述符类型,= 05H        endpoint descriptor type = 05H
   92              0x81,                                           // 端点1 IN                    endpoint 1 IN
   93              USB_ENDPOINT_TYPE_INTERRUPT,                    // 中断传输, = 03H             interrupt transfer = 03H
   94              EP1_PACKET_SIZE,0x00,                           // 端点最大包的大小,= 0010H    endpoint max packet size = 0010H
   95              1                                               // 传输间隔时间,= 10ms         Interval for polling endpoint for data transfers = 1ms
   96          },
   97          //endpoint descriptor, logic endpoint 1 OUT         // 逻辑端点 1 输出
   98          {
   99              sizeof(USB_ENDPOINT_DESCRIPTOR),                // 端点描述符长度,= 07H        endpoint descriptor length = 07H
  100              USB_ENDPOINT_DESCRIPTOR_TYPE,                   // 端点描述符类型,= 05H        endpoint descriptor type = 05H
  101              0x1,                                            // 端点1 OUT                   endpoint 1 OUT
  102              USB_ENDPOINT_TYPE_INTERRUPT,                    // 中断传输,= 03H              interrupt transfer = 03H
  103              EP1_PACKET_SIZE,0x00,                           // 端点最大包的大小,= 0010H    endpoint max packet size = 0010H
  104              1                                               // 传输间隔时间,= 10ms         Interval for polling endpoint for data transfers = 1ms
  105          },
  106          //endpoint descriptor, logic endpoint 2 IN          // 逻辑端点 2 输入  
  107          {
  108              sizeof(USB_ENDPOINT_DESCRIPTOR),                // 端点描述符长度,= 07H        endpoint descriptor length = 07H
  109              USB_ENDPOINT_DESCRIPTOR_TYPE,                   // 端点描述符类型,= 05H        endpoint descriptor type = 05H
  110              0x82,                                           // 端点2 IN                    endpoint 2 IN
  111              USB_ENDPOINT_TYPE_BULK,                         // 批量传输,= 02H              bulk transfer = 02H
  112              EP2_PACKET_SIZE,0x00,                           // 端点最大包的大小,= 0040H    endpoint max packet size = 0040H
  113              10                                              // 批量传输时该值无效          the value is invalid when bulk transfer
  114          },
  115          //endpoint descriptor, logic endpoint 2 OUT         // 逻辑端点 2 输出
  116          {   
  117              sizeof(USB_ENDPOINT_DESCRIPTOR),                // 端点描述符长度,= 07H        endpoint descriptor length = 07H
  118              USB_ENDPOINT_DESCRIPTOR_TYPE,                   // 端点描述符类型,= 05H        endpoint descriptor type = 05H
  119              0x2,                                            // 端点2 OUT                   endpoint 2 OUT   
  120              USB_ENDPOINT_TYPE_BULK,                         // 批量传输,= 02H              bulk transfer = 02H
ARM COMPILER V2.53,  Descriptor                                                            28/06/07  09:54:11  PAGE 3   

  121              EP2_PACKET_SIZE,0x00,                           // 端点最大包的大小,= 0040H    endpoint max packet size = 0040H
  122              10                                              // 批量传输时该值无效          the value is invalid when bulk transfer
  123          }
  124          };
  125          
  126          /*******************************************************************************************************
  127          **                            End Of File
  128          ********************************************************************************************************/
  129          
  130          
ARM COMPILER V2.53,  Descriptor                                                            28/06/07  09:54:11  PAGE 4   

ASSEMBLY LISTING OF GENERATED OBJECT CODE



*** PUBLICS:
 PUBLIC         DeviceDescr
 PUBLIC         usb_descr



*** DATA SEGMENT '?CON?Descriptor':
 00000000          DeviceDescr:
 00000000           BEGIN_INIT
 00000000  12        DB          0x12
 00000001  01        DB          0x1
 00000002  00        DB          0x0
 00000003  01        DB          0x1
 00000004  DC        DB          0xDC
 00000005  00        DB          0x0
 00000006  00        DB          0x0
 00000007  40        DB          0x40
 00000008  71        DB          0x71
 00000009  04        DB          0x4
 0000000A  99        DB          0x99
 0000000B  09        DB          0x9
 0000000C  00        DB          0x0
 0000000D  01        DB          0x1
 0000000E  00        DB          0x0
 0000000F  00        DB          0x0
 00000010  00        DB          0x0
 00000011  01        DB          0x1
 00000012           END_INIT
 00000012          usb_descr:
 00000012           BEGIN_INIT
 00000012  09        DB          0x9
 00000013  02        DB          0x2
 00000014  2E        DB          0x2E
 00000015  00        DB          0x0
 00000016  01        DB          0x1
 00000017  01        DB          0x1
 00000018  00        DB          0x0
 00000019  60        DB          0x60
 0000001A  32        DB          0x32
 0000001B  09        DB          0x9
 0000001C  04        DB          0x4
 0000001D  00        DB          0x0
 0000001E  00        DB          0x0
 0000001F  04        DB          0x4
 00000020  DC        DB          0xDC
 00000021  A0        DB          0xA0
 00000022  B0        DB          0xB0
 00000023  00        DB          0x0
 00000024  07        DB          0x7
 00000025  05        DB          0x5
 00000026  81        DB          0x81
 00000027  03        DB          0x3
 00000028  10        DB          0x10
 00000029  00        DB          0x0
 0000002A  01        DB          0x1
 0000002B  07        DB          0x7
 0000002C  05        DB          0x5
 0000002D  01        DB          0x1
 0000002E  03        DB          0x3
 0000002F  10        DB          0x10
 00000030  00        DB          0x0
 00000031  01        DB          0x1
 00000032  07        DB          0x7
 00000033  05        DB          0x5
 00000034  82        DB          0x82
ARM COMPILER V2.53,  Descriptor                                                            28/06/07  09:54:11  PAGE 5   

 00000035  02        DB          0x2
 00000036  40        DB          0x40
 00000037  00        DB          0x0
 00000038  0A        DB          0xA
 00000039  07        DB          0x7
 0000003A  05        DB          0x5
 0000003B  02        DB          0x2
 0000003C  02        DB          0x2
 0000003D  40        DB          0x40
 0000003E  00        DB          0x0
 0000003F  0A        DB          0xA
 00000040           END_INIT




Module Information          Static
----------------------------------
  code size            =    ------
  data size            =    ------
  const size           =        64
End of Module Information.


ARM COMPILATION COMPLETE.  0 WARNING(S),  0 ERROR(S)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -