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

📄 reqcode.lst

📁 周立功dp1581usb2.0实验仪
💻 LST
📖 第 1 页 / 共 3 页
字号:
C51 COMPILER V7.01  REQCODE                                                                02/09/2004 20:43:54 PAGE 1   


C51 COMPILER V7.01, COMPILATION OF MODULE REQCODE
OBJECT MODULE PLACED IN reqcode.OBJ
COMPILER INVOKED BY: E:\Keil\C51\BIN\C51.EXE reqcode.c OPTIMIZE(2,SPEED) BROWSE DEBUG OBJECTEXTEND

stmt level    source

   1          //***********************************************************************
   2          //                                                                                                                                                        *  
   3          //                P H I L I P S   P R O P R I E T A R Y                            *
   4          //                                                                      *
   5          //          COPYRIGHT (c)   1999 BY PHILIPS SINGAPORE (APIC).                      *
   6          //                    --  ALL RIGHTS RESERVED  --                               *       
   7          //                                                                      *
   8          //      File Name       :       RequestCode.c                                 *
   9          //      Author          :       Albert Goh                                                                                    *
  10          //      Created         :       3 March 2000                                    *
  11          //                                                                         *
  12          //***********************************************************************
  13          //***********************************************************************
  14          //                                                                      *
  15          // Debug.c file contain the location of the routine for debugging of    *
  16          // the D14. It consist of PIO,USB,UDMA,MDMA,GDMA debugging location     *
  17          // It will branch to the respective routine via the UART or the CODE    *
  18          // definition                                                           *
  19          //                                                                      *
  20          //***********************************************************************
  21          //***********************************************************************
  22          //                                                                      *
  23          //  Module History                                                                                                                          *
  24          //  **************                                                                                                                          *
  25          //                                                                                                                                                                *
  26          //  Date        Version                 Author                          Changes                                       *  
  27          //  ====        =======                 ======                          =======                                          *
  28          //  030300        0.1                   Albert                          Created                                       *
  29          //                                                                      *
  30          //                                                                      *
  31          //***********************************************************************
  32          
  33          //***********************************************************************
  34          //*                                                                                                                                                            *
  35          //*                          Include Files Definition                                              *
  36          //*                                                                                                                                                            *
  37          //***********************************************************************
  38          
  39          #include "standard.h"
  40          #include "Usb.h"
  41          #include "kernel.h"
  42          
  43          //***********************************************************************
  44          //*                                                                                                                                                            *
  45          //*                          Variable Definition                                                              *
  46          //*                                                                                                                                                            *
  47          //***********************************************************************
  48          
  49          
  50          //***********************************************************************
  51          //*                                                                                                                                                            *
  52          //*                          Routine Definition                                                            *
  53          //*                                                                                                                                                            *
  54          //***********************************************************************
  55          
C51 COMPILER V7.01  REQCODE                                                                02/09/2004 20:43:54 PAGE 2   

  56          
  57          //***********************************************************************
  58          //*                                                                                                                                                    *
  59          //*     Routine         :  Standard Device Descriptor                                   *
  60          //*     Input           :  None                                                                                          *
  61          //*     Output   :  None                                                                           *
  62          //*     Function        :  None                                                            *
  63          //*                                                                                                                                                            *
  64          //***********************************************************************
  65          
  66          
  67          
  68          DEVICE_DESCRIPTOR                               code    Standard_Device_Descriptor[] =
  69          {
  70              
  71              sizeof(DEVICE_DESCRIPTOR),          /*        length         */
  72                          0x01,                                                   /*  1.    bDescriptorType            */
  73                          SWAP(0x0110),                                   /*  2.-3. Version 1.1 USB spec Word  */
  74                          0x00,                                                   /*  4.    Class                      */
  75                          0x00,                                                   /*  5.    bDeviceSubClass            */
  76                          0x00,                                                   /*  6.    bDeviceProtocol            */
  77                          0x40,                                                   /*  7.    bMaxPacketSize0            */
  78                          SWAP(0x04CC),                                   /* 8.-9.  idVendor                   */
  79                          SWAP(0x1B49),                                   /* a.-b.  idProduct for no Filter Driver      */        
  80                          SWAP(0x0000),                                   /* c.-d.  bcdDevice                  */
  81                          0x01,                                                   /* e.      iManufacturer             */
  82                          0x02,                                                   /* f.      iProduct                                  */
  83                          0x00,                                                   /* 10.    iSerialNumber              */
  84                          0x01                                                    /* 11.    bNumConfigurations             */
  85                          
  86          };
  87          
  88          
  89          DEVICE_DESCRIPTOR       code    HS_Device_Descriptor[] =
  90          {
  91              
  92              sizeof(DEVICE_DESCRIPTOR),          /*        length         */
  93                          0x01,                                                   /*  1.    bDescriptorType            */
  94                          SWAP(0x0200),                                   /*  2.-3. Version 2.0 USB spec Word  */
  95                          0x00,                                                   /*  4.    Class                      */
  96                          0x00,                                                   /*  5.    bDeviceSubClass            */
  97                          0x00,                                                   /*  6.    bDeviceProtocol            */
  98                          0x40,                                                   /*  7.    bMaxPacketSize0            */
  99                          SWAP(0x04CC),                                   /* 8.-9.  idVendor                   */
 100                          SWAP(0x1B49),                                   /* a.-b.  idProduct                  */ 
 101                          SWAP(0x0000),                                   /* c.-d.  bcdDevice                  */
 102                          0x01,                                                   /* e.      iManufacturer             */
 103                          0x02,                                                   /* f.      iProduct                                  */
 104                          0x00,                                                   /* 10.    iSerialNumber              */
 105                          0x01                                                    /* 11.    bNumConfigurations             */
 106                          
 107          };
 108          
 109          //***********************************************************************
 110          //*                                                                                                                                                    *
 111          //*     Routine  :  HS Device Qualifier                                         *
 112          //*     Input           :  None                                                                                          *
 113          //*     Output  :  None                                                                    *
 114          //*     Function        :  None                                                            *
 115          //*                                                                                                                                                            *
 116          //***********************************************************************
 117          
C51 COMPILER V7.01  REQCODE                                                                02/09/2004 20:43:54 PAGE 3   

 118          
 119          HS_DEVICE_QUALIFIER     code HS_Device_Qualifier[] =
 120          {
 121                  
 122                  sizeof(HS_DEVICE_QUALIFIER),    //length of HS Device Descriptor
 123                          0x06,                                                   //HS Device Qualifier Type
 124                          SWAP(0x0200),                                   // USB 2.0 version
 125                          0x00,                                                   //Device class
 126                          0x00,                                                   //Device SubClass
 127                          0x00,                                                   //Device Protocol Code
 128                          0x40,                                                   //Maximum Packet SIze for other speed
 129                          0x01,                                                   //Number of Other speed configurations
 130                          0x00                                                    //Reserved
 131                          
 132          };
 133          
 134          
 135          //***********************************************************************
 136          //*                                                                                                                                                    *
 137          //*     Routine         :  Standard Configuration Descriptor                            *
 138          //*     Input           :  None                                                                                          *
 139          //*     Output   :  None                                                                           *
 140          //*     Function        :  None                                                            *
 141          //*                                                                                                                                                            *
 142          //***********************************************************************
 143          
 144          CONFIGURATION_DESCRIPTOR        code    Standard_Config_Descriptor[] =
 145          {
 146                  
 147                  sizeof(CONFIGURATION_DESCRIPTOR),       //Length of the configuration Descriptor
 148                          0x02,                                                           //Configuration Descriptor
 149                          SWAP(CONFIG_LENGTH),                            //Total length of the configurations,interface and class/endpoint
 150                          0x01,                                                           //No. of interface supported
 151                          0x01,                                                           //Configuration Value
 152                          0x00,                                                           //Index of string descriptor
 153                          0xC0,                                                           //Configurations Characteristic
 154                          0x32                                                            //Maximun Power
 155                          
 156          };
 157          
 158          
 159          //***********************************************************************
 160          //*                                                                                                                                                    *
 161          //*     Routine         :  Other speed Configuration Descriptor                         *
 162          //*     Input           :  None                                                                                          *
 163          //*     Output  :  None                                                                    *
 164          //*     Function        :  None                                                            *
 165          //*                                                                                                                                                            *
 166          //***********************************************************************
 167          
 168          OTHER_SPEED_CONFIG_DESCRIPTOR   code    Other_Speed_Config_Descriptor[] =
 169          {
 170                  
 171                  sizeof(OTHER_SPEED_CONFIG_DESCRIPTOR),  //length of other speed configuration descriptor
 172                          0x07,                                                                   //Other speed configuration Type
 173                          SWAP(CONFIG_LENGTH),                            //Total length
 174                          0x01,                                                                   //No of interface supported
 175                          0x01,                                                                   //Configuration Value
 176                          0x00,                                                                   //Index of string descriptor
 177                          0xC0,                                                                   //Configurations Characteristic

⌨️ 快捷键说明

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