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

📄 reqcode.lst

📁 嵌入式系统中一些外围设备驱动示例程序集
💻 LST
📖 第 1 页 / 共 3 页
字号:
C51 COMPILER V7.06   REQCODE                                                               07/02/2003 10:27:49 PAGE 1   


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

stmt level    source

   1          /****************************************Copyright (c)**************************************************
   2          **                               广州周立功单片机发展有限公司
   3          **                                     研    究    所
   4          **                                 http://www.zlgmcu.com
   5          **--------------当前版本修订------------------------------------------------------------------------------
   6          ** 修改人: 刘英斌
   7          ** 日 期:2003-03-13
   8          ** 描 述:ISP1581 V1.0
   9          **------------------------------------------------------------------------------------------------------
  10          ********************************************************************************************************/
  11          
  12          #include "standard.h"
  13          #include "Usb.h"
  14          #include "kernel.h"
  15          
  16          //***********************************************************************
  17          //*                                                                                                                                                            *
  18          //*                          Variable Definition                                                              *
  19          //*                                                                                                                                                            *
  20          //***********************************************************************
  21          
  22          
  23          //***********************************************************************
  24          //*                                                                                                                                                            *
  25          //*                          Routine Definition                                                            *
  26          //*                                                                                                                                                            *
  27          //***********************************************************************
  28          
  29          
  30          //***********************************************************************
  31          //*                                                                                                                                                    *
  32          //*     Routine         :  Standard Device Descriptor                                   *
  33          //*     Input           :  None                                                                                          *
  34          //*     Output   :  None                                                                           *
  35          //*     Function        :  None                                                            *
  36          //*                                                                                                                                                            *
  37          //***********************************************************************
  38          
  39          
  40          
  41          DEVICE_DESCRIPTOR                               code    Standard_Device_Descriptor[] =
  42          {
  43              
  44              sizeof(DEVICE_DESCRIPTOR),          /*        length         */
  45                          0x01,                                                   /*  1.    bDescriptorType            */
  46                          SWAP(0x0110),                                   /*  2.-3. Version 1.1 USB spec Word  */
  47                          0x00,                                                   /*  4.    Class                      */
  48                          0x00,                                                   /*  5.    bDeviceSubClass            */
  49                          0x00,                                                   /*  6.    bDeviceProtocol            */
  50                          0x40,                                                   /*  7.    bMaxPacketSize0            */
  51                          SWAP(0x04CC),                                   /* 8.-9.  idVendor                   */
  52                          SWAP(0x1B49),                                   /* a.-b.  idProduct for no Filter Driver      */        
  53                          SWAP(0x0000),                                   /* c.-d.  bcdDevice                  */
  54                          0x01,                                                   /* e.      iManufacturer             */
  55                          0x02,                                                   /* f.      iProduct                                  */
C51 COMPILER V7.06   REQCODE                                                               07/02/2003 10:27:49 PAGE 2   

  56                          0x00,                                                   /* 10.    iSerialNumber              */
  57                          0x01                                                    /* 11.    bNumConfigurations             */
  58                          
  59          };
  60          
  61          
  62          DEVICE_DESCRIPTOR       code    HS_Device_Descriptor[] =
  63          {
  64              
  65              sizeof(DEVICE_DESCRIPTOR),          /*        length         */
  66                          0x01,                                                   /*  1.    bDescriptorType            */
  67                          SWAP(0x0200),                                   /*  2.-3. Version 2.0 USB spec Word  */
  68                          0x00,                                                   /*  4.    Class                      */
  69                          0x00,                                                   /*  5.    bDeviceSubClass            */
  70                          0x00,                                                   /*  6.    bDeviceProtocol            */
  71                          0x40,                                                   /*  7.    bMaxPacketSize0            */
  72                          SWAP(0x04CC),                                   /* 8.-9.  idVendor                   */
  73                          SWAP(0x1B49),                                   /* a.-b.  idProduct                  */ 
  74                          SWAP(0x0000),                                   /* c.-d.  bcdDevice                  */
  75                          0x01,                                                   /* e.      iManufacturer             */
  76                          0x02,                                                   /* f.      iProduct                                  */
  77                          0x00,                                                   /* 10.    iSerialNumber              */
  78                          0x01                                                    /* 11.    bNumConfigurations             */
  79                          
  80          };
  81          
  82          //***********************************************************************
  83          //*                                                                                                                                                    *
  84          //*     Routine  :  HS Device Qualifier                                         *
  85          //*     Input           :  None                                                                                          *
  86          //*     Output  :  None                                                                    *
  87          //*     Function        :  None                                                            *
  88          //*                                                                                                                                                            *
  89          //***********************************************************************
  90          
  91          
  92          HS_DEVICE_QUALIFIER     code HS_Device_Qualifier[] =
  93          {
  94                  
  95                  sizeof(HS_DEVICE_QUALIFIER),    //length of HS Device Descriptor
  96                          0x06,                                                   //HS Device Qualifier Type
  97                          SWAP(0x0200),                                   // USB 2.0 version
  98                          0x00,                                                   //Device class
  99                          0x00,                                                   //Device SubClass
 100                          0x00,                                                   //Device Protocol Code
 101                          0x40,                                                   //Maximum Packet SIze for other speed
 102                          0x01,                                                   //Number of Other speed configurations
 103                          0x00                                                    //Reserved
 104                          
 105          };
 106          
 107          
 108          //***********************************************************************
 109          //*                                                                                                                                                    *
 110          //*     Routine         :  Standard Configuration Descriptor                            *
 111          //*     Input           :  None                                                                                          *
 112          //*     Output   :  None                                                                           *
 113          //*     Function        :  None                                                            *
 114          //*                                                                                                                                                            *
 115          //***********************************************************************
 116          
 117          CONFIGURATION_DESCRIPTOR        code    Standard_Config_Descriptor[] =
C51 COMPILER V7.06   REQCODE                                                               07/02/2003 10:27:49 PAGE 3   

 118          {
 119                  
 120                  sizeof(CONFIGURATION_DESCRIPTOR),       //Length of the configuration Descriptor
 121                          0x02,                                                           //Configuration Descriptor
 122                          SWAP(CONFIG_LENGTH),                            //Total length of the configurations,interface and class/endpoint
 123                          0x01,                                                           //No. of interface supported
 124                          0x01,                                                           //Configuration Value
 125                          0x00,                                                           //Index of string descriptor
 126                          0xC0,                                                           //Configurations Characteristic
 127                          0x32                                                            //Maximun Power
 128                          
 129          };
 130          
 131          
 132          //***********************************************************************
 133          //*                                                                                                                                                    *
 134          //*     Routine         :  Other speed Configuration Descriptor                         *
 135          //*     Input           :  None                                                                                          *
 136          //*     Output  :  None                                                                    *
 137          //*     Function        :  None                                                            *
 138          //*                                                                                                                                                            *
 139          //***********************************************************************
 140          
 141          OTHER_SPEED_CONFIG_DESCRIPTOR   code    Other_Speed_Config_Descriptor[] =
 142          {
 143                  
 144                  sizeof(OTHER_SPEED_CONFIG_DESCRIPTOR),  //length of other speed configuration descriptor
 145                          0x07,                                                                   //Other speed configuration Type
 146                          SWAP(CONFIG_LENGTH),                            //Total length
 147                          0x01,                                                                   //No of interface supported
 148                          0x01,                                                                   //Configuration Value
 149                          0x00,                                                                   //Index of string descriptor
 150                          0xC0,                                                                   //Configurations Characteristic
 151                          0x32                                                                    //Maximun Power
 152                          
 153          };
 154          
 155          
 156          
 157          //***********************************************************************
 158          //*                                                                                                                                                    *
 159          //*     Routine         :  Standard Interface Descriptor                                *
 160          //*     Input           :  None                                                                                          *
 161          //*     Output  :  None                                                                    *
 162          //*     Function        :  None                                                            *
 163          //*                                                                                                                                                            *
 164          //***********************************************************************
 165          
 166          INTERFACE_DESCRIPTOR    code    Bulk_Interface_Descriptor[] =
 167          {
 168                  

⌨️ 快捷键说明

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