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

📄 usbprinterdriverdescriptors.lst

📁 本代bootloader通过usb下载代码首先存放在sdram中
💻 LST
📖 第 1 页 / 共 2 页
字号:
###############################################################################
#                                                                             #
#                                                       28/Apr/2009  09:28:23 #
# IAR ARM ANSI C/C++ Compiler V5.11.0.20622/W32 EVALUATION                    #
# Copyright 1999-2007 IAR Systems. All rights reserved.                       #
#                                                                             #
#    Cpu mode     =  arm                                                      #
#    Endian       =  little                                                   #
#    Source file  =  E:\workplace\bootloaderOK\at91lib\usb\device\usbprinter\ #
#                    USBPrinterDriverDescriptors.c                            #
#    Command line =  E:\workplace\bootloaderOK\at91lib\usb\device\usbprinter\ #
#                    USBPrinterDriverDescriptors.c -D at91sam7se512 -D flash  #
#                    -D TRACE_LEVEL=4 -lC E:\workplace\bootloaderOK\at91sam7s #
#                    e-ek\basic-dataflash-project\ewp\at91sam7se512_flash\Lis #
#                    t\ --remarks --diag_suppress Pe826,Pe1375 -o             #
#                    E:\workplace\bootloaderOK\at91sam7se-ek\basic-dataflash- #
#                    project\ewp\at91sam7se512_flash\Obj\ --no_cse            #
#                    --no_unroll --no_inline --no_code_motion --no_tbaa       #
#                    --no_clustering --no_scheduling --debug --endian little  #
#                    --cpu ARM7TDMI -e --fpu None --dlib_config "D:\Program   #
#                    Files\arm\ARM\INC\DLib_Config_Full.h" -I                 #
#                    E:\workplace\bootloaderOK\at91sam7se-ek\basic-dataflash- #
#                    project\ewp\..\..\..\at91lib/peripherals\ -I             #
#                    E:\workplace\bootloaderOK\at91sam7se-ek\basic-dataflash- #
#                    project\ewp\..\..\..\at91lib\ -I                         #
#                    E:\workplace\bootloaderOK\at91sam7se-ek\basic-dataflash- #
#                    project\ewp\..\..\..\at91lib/memories\ -I                #
#                    E:\workplace\bootloaderOK\at91sam7se-ek\basic-dataflash- #
#                    project\ewp\..\..\..\at91lib/boards/at91sam7se-ek\ -I    #
#                    "D:\Program Files\arm\ARM\INC\" --interwork --cpu_mode   #
#                    arm -Oh                                                  #
#    List file    =  E:\workplace\bootloaderOK\at91sam7se-ek\basic-dataflash- #
#                    project\ewp\at91sam7se512_flash\List\USBPrinterDriverDes #
#                    criptors.lst                                             #
#    Object file  =  E:\workplace\bootloaderOK\at91sam7se-ek\basic-dataflash- #
#                    project\ewp\at91sam7se512_flash\Obj\USBPrinterDriverDesc #
#                    riptors.o                                                #
#                                                                             #
#                                                                             #
###############################################################################

E:\workplace\bootloaderOK\at91lib\usb\device\usbprinter\USBPrinterDriverDescriptors.c
      1          /* ----------------------------------------------------------------------------
      2           *         ATMEL Microcontroller Software Support 
      3           * ----------------------------------------------------------------------------
      4           * Copyright (c) 2008, Atmel Corporation
      5           *
      6           * All rights reserved.
      7           *
      8           * Redistribution and use in source and binary forms, with or without
      9           * modification, are permitted provided that the following conditions are met:
     10           *
     11           * - Redistributions of source code must retain the above copyright notice,
     12           * this list of conditions and the disclaimer below.
     13           *
     14           * Atmel's name may not be used to endorse or promote products derived from
     15           * this software without specific prior written permission.
     16           *
     17           * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR
     18           * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
     19           * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
     20           * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT,
     21           * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
     22           * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
     23           * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
     24           * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
     25           * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
     26           * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     27           * ----------------------------------------------------------------------------
     28           */
     29          
     30          //------------------------------------------------------------------------------
     31          //         Headers
     32          //------------------------------------------------------------------------------
     33          
     34          #include "USBPrinterDriverDescriptors.h"
     35          #include <board.h>
     36          #include <usb/common/core/USBGenericDescriptor.h>
     37          #include <usb/common/core/USBConfigurationDescriptor.h>
     38          #include <usb/common/core/USBEndpointDescriptor.h>
     39          #include <usb/common/core/USBStringDescriptor.h>
     40          #include <usb/common/core/USBGenericRequest.h>
     41          
     42          //------------------------------------------------------------------------------
     43          //         Definitions
     44          //------------------------------------------------------------------------------
     45          
     46          //------------------------------------------------------------------------------
     47          /// \page "CDC Serial Device IDs"
     48          /// This page lists the IDs used in the CDC Serial Device Descriptor.
     49          ///
     50          /// !IDs
     51          /// - USBPrinterDriverDescriptors_PRODUCTID
     52          /// - USBPrinterDriverDescriptors_VENDORID
     53          /// - USBPrinterDriverDescriptors_RELEASE
     54          
     55          /// Device product ID.
     56          #define USBPrinterDriverDescriptors_PRODUCTID       0x6119
     57          /// Device vendor ID (Atmel).
     58          #define USBPrinterDriverDescriptors_VENDORID        0x03EB
     59          /// Device release number.
     60          #define USBPrinterDriverDescriptors_RELEASE         0x0100
     61          //------------------------------------------------------------------------------
     62          
     63          //------------------------------------------------------------------------------
     64          //         Macros
     65          //------------------------------------------------------------------------------
     66          
     67          /// Returns the minimum between two values.
     68          #define MIN(a, b)       ((a < b) ? a : b)
     69          
     70          //------------------------------------------------------------------------------
     71          //         Internal structures
     72          //------------------------------------------------------------------------------
     73          
     74          //------------------------------------------------------------------------------
     75          /// Configuration descriptor list for a device implementing a CDC serial driver.
     76          //------------------------------------------------------------------------------
     77          typedef struct {
     78          
     79              /// Standard configuration descriptor.
     80              USBConfigurationDescriptor configuration;
     81              /// Data interface descriptor.
     82              USBInterfaceDescriptor data;
     83              /// Data OUT endpoint descriptor.
     84              USBEndpointDescriptor dataOut;
     85              /// Data IN endpoint descriptor.
     86              USBEndpointDescriptor dataIn;
     87          
     88          } __attribute__ ((packed)) USBPrinterDriverConfigurationDescriptors;
     89          
     90          //------------------------------------------------------------------------------
     91          //         Exported variables
     92          //------------------------------------------------------------------------------
     93          
     94          /// Standard USB device descriptor for the CDC serial driver

   \                                 In section .rodata, align 4
     95          const USBDeviceDescriptor deviceDescriptor = {
   \                     deviceDescriptor:
   \   00000000   1201               DC8 18, 1
   \   00000002   0002               DC16 512
   \   00000004   00000040           DC8 0, 0, 0, 64
   \   00000008   EB0319610001       DC16 1003, 24857, 256
   \   0000000E   000100010000       DC8 0, 1, 0, 1, 0, 0
     96          
     97              sizeof(USBDeviceDescriptor),
     98              USBGenericDescriptor_DEVICE,
     99              USBDeviceDescriptor_USB2_00,
    100              USBPrintDeviceDescriptor_CLASS,
    101              USBPrintDeviceDescriptor_SUBCLASS,
    102              USBPrintDeviceDescriptor_PROTOCOL,
    103              BOARD_USB_ENDPOINTS_MAXPACKETSIZE(0),
    104              USBPrinterDriverDescriptors_VENDORID,
    105              USBPrinterDriverDescriptors_PRODUCTID,
    106              USBPrinterDriverDescriptors_RELEASE,
    107              0, // No string descriptor for manufacturer
    108              1, // Index of product string descriptor is #1
    109              0, // No string descriptor for serial number
    110              1 // Device has 1 possible configuration
    111          };
    112          /// Standard USB configuration descriptor for the CDC serial driver

   \                                 In section .rodata, align 4
    113          const USBPrinterDriverConfigurationDescriptors configurationDescriptors = {
   \                     configurationDescriptors:

⌨️ 快捷键说明

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