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

📄 f32x_usb_descriptor.lst

📁 USB演示程序,包含了pc端的demo,cygnal 8051f321 chip
💻 LST
字号:
C51 COMPILER V7.50   F32X_USB_DESCRIPTOR                                                   08/23/2006 15:13:08 PAGE 1   


C51 COMPILER V7.50, COMPILATION OF MODULE F32X_USB_DESCRIPTOR
OBJECT MODULE PLACED IN F32x_USB_Descriptor.OBJ
COMPILER INVOKED BY: D:\keil\C51\BIN\c51.exe F32x_USB_Descriptor.c DB OE

line level    source

   1          //-----------------------------------------------------------------------------
   2          // F32x_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:            32X000021
  16          // Target:         C8051F32x
  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:   F32x_USB_Interrupt
  21          //
  22          //
  23          // Release 1.3
  24          //    -All changes by GP
  25          //    -22 NOV 2005
  26          //    -Changed revision number to match project revision
  27          //     No content changes to this file
  28          //    -Modified file to fit new formatting guidelines
  29          //    -Changed file name from USB_DESCRIPTOR.c
  30          //
  31          // Release 1.0
  32          //    -Initial Revision (DM)
  33          //    -22 NOV 2002
  34          //
  35          
  36          //-----------------------------------------------------------------------------
  37          // Includes
  38          //-----------------------------------------------------------------------------
  39          
  40          #include "F32x_USB_Register.h"
  41          #include "F32x_USB_Main.h"
  42          #include "F32x_USB_Descriptor.h"
  43          
  44          //-----------------------------------------------------------------------------
  45          // Descriptor Declarations
  46          //-----------------------------------------------------------------------------
  47          
  48          const device_descriptor DeviceDesc =
  49          {
  50             18,                  // bLength
  51             0x01,                // bDescriptorType
  52             0x1001,              // bcdUSB
  53             0x00,                // bDeviceClass
  54             0x00,                // bDeviceSubClass
  55             0x00,                // bDeviceProtocol
C51 COMPILER V7.50   F32X_USB_DESCRIPTOR                                                   08/23/2006 15:13:08 PAGE 2   

  56             EP0_PACKET_SIZE,     // bMaxPacketSize0
  57             0xC410,              // idVendor
  58             0x0000,              // idProduct
  59             0x0000,              // bcdDevice
  60             0x01,                // iManufacturer
  61             0x02,                // iProduct
  62             0x00,                // iSerialNumber
  63             0x01                 // bNumConfigurations
  64          }; //end of DeviceDesc
  65          
  66          const configuration_descriptor ConfigDesc =
  67          {
  68             0x09,                // Length
  69             0x02,                // Type
  70             0x2000,              // Totallength
  71             0x01,                // NumInterfaces
  72             0x01,                // bConfigurationValue
  73             0x00,                // iConfiguration
  74             0x80,                // bmAttributes
  75             0x0F                 // MaxPower
  76          }; //end of ConfigDesc
  77          
  78          const interface_descriptor InterfaceDesc =
  79          {
  80             0x09,                // bLength
  81             0x04,                // bDescriptorType
  82             0x00,                // bInterfaceNumber
  83             0x00,                // bAlternateSetting
  84             0x02,                // bNumEndpoints
  85             0x00,                // bInterfaceClass
  86             0x00,                // bInterfaceSubClass
  87             0x00,                // bInterfaceProcotol
  88             0x00                 // iInterface
  89          }; //end of InterfaceDesc
  90          
  91          const endpoint_descriptor Endpoint1Desc =
  92          {
  93             0x07,                // bLength
  94             0x05,                // bDescriptorType
  95             0x81,                // bEndpointAddress
  96             0x03,                // bmAttributes
  97             EP1_PACKET_SIZE_LE,  // MaxPacketSize (LITTLE ENDIAN)
  98             10                   // bInterval
  99          }; //end of Endpoint1Desc
 100          
 101          const endpoint_descriptor Endpoint2Desc =
 102          {
 103             0x07,                // bLength
 104             0x05,                // bDescriptorType
 105             0x02,                // bEndpointAddress
 106             0x03,                // bmAttributes
 107             EP2_PACKET_SIZE_LE,  // MaxPacketSize (LITTLE ENDIAN)
 108             10                   // bInterval
 109          }; //end of Endpoint2Desc
 110          
 111          #define STR0LEN 4
 112          
 113          code const BYTE String0Desc[STR0LEN] =
 114          {
 115             STR0LEN, 0x03, 0x09, 0x04
 116          }; //end of String0Desc
 117          
C51 COMPILER V7.50   F32X_USB_DESCRIPTOR                                                   08/23/2006 15:13:08 PAGE 3   

 118          #define STR1LEN sizeof("SILICON LABORATORIES INC.")*2
 119          
 120          code const BYTE String1Desc[STR1LEN] =
 121          {
 122             STR1LEN, 0x03,
 123             'S', 0,
 124             'I', 0,
 125             'L', 0,
 126             'I', 0,
 127             'C', 0,
 128             'O', 0,
 129             'N', 0,
 130             ' ', 0,
 131             'L', 0,
 132             'A', 0,
 133             'B', 0,
 134             'O', 0,
 135             'R', 0,
 136             'A', 0,
 137             'T', 0,
 138             'O', 0,
 139             'R', 0,
 140             'I', 0,
 141             'E', 0,
 142             'S', 0,
 143             ' ', 0,
 144             'I', 0,
 145             'N', 0,
 146             'C', 0,
 147             '.', 0
 148            }; //end of String1Desc
 149          
 150          #define STR2LEN sizeof("C8051F320 Development Board")*2
 151          
 152          code const BYTE String2Desc[STR2LEN] =
 153          {
 154             STR2LEN, 0x03,
 155             'C', 0,
 156             '8', 0,
 157             '0', 0,
 158             '5', 0,
 159             '1', 0,
 160             'F', 0,
 161             '3', 0,
 162             '2', 0,
 163             '0', 0,
 164             ' ', 0,
 165             'D', 0,
 166             'e', 0,
 167             'v', 0,
 168             'e', 0,
 169             'l', 0,
 170             'o', 0,
 171             'p', 0,
 172             'm', 0,
 173             'e', 0,
 174             'n', 0,
 175             't', 0,
 176             ' ', 0,
 177             'B', 0,
 178             'o', 0,
 179             'a', 0,
C51 COMPILER V7.50   F32X_USB_DESCRIPTOR                                                   08/23/2006 15:13:08 PAGE 4   

 180             'r', 0,
 181             'd', 0
 182          }; //end of String2Desc
 183          
 184          BYTE* const StringDescTable[] =
 185          {
 186             String0Desc,
 187             String1Desc,
 188             String2Desc
 189          };
 190          
 191          //-----------------------------------------------------------------------------
 192          // End Of File
 193          //-----------------------------------------------------------------------------


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 + -