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

📄 usbgenericdescriptor.lst

📁 本程序是以前程序的升级
💻 LST
字号:
###############################################################################
#                                                                             #
#                                                       24/Apr/2009  16:18:18 #
# 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  =  D:\basic-dataflash-project-at91sam7se-ek\at91lib\usb\com #
#                    mon\core\USBGenericDescriptor.c                          #
#    Command line =  D:\basic-dataflash-project-at91sam7se-ek\at91lib\usb\com #
#                    mon\core\USBGenericDescriptor.c -D at91sam7se512 -D      #
#                    sram -D TRACE_LEVEL=4 -lC D:\basic-dataflash-project-at9 #
#                    1sam7se-ek\at91sam7se-ek\basic-dataflash-project\ewp\at9 #
#                    1sam7se512_sram\List\ --remarks --diag_suppress          #
#                    Pe826,Pe1375 -o D:\basic-dataflash-project-at91sam7se-ek #
#                    \at91sam7se-ek\basic-dataflash-project\ewp\at91sam7se512 #
#                    _sram\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                 #
#                    D:\basic-dataflash-project-at91sam7se-ek\at91sam7se-ek\b #
#                    asic-dataflash-project\ewp\..\..\..\at91lib/peripherals\ #
#                     -I D:\basic-dataflash-project-at91sam7se-ek\at91sam7se- #
#                    ek\basic-dataflash-project\ewp\..\..\..\at91lib\ -I      #
#                    D:\basic-dataflash-project-at91sam7se-ek\at91sam7se-ek\b #
#                    asic-dataflash-project\ewp\..\..\..\at91lib/memories\    #
#                    -I D:\basic-dataflash-project-at91sam7se-ek\at91sam7se-e #
#                    k\basic-dataflash-project\ewp\..\..\..\at91lib/boards/at #
#                    91sam7se-ek\ -I "D:\Program Files\arm\ARM\INC\"          #
#                    --interwork --cpu_mode arm -Oh                           #
#    List file    =  D:\basic-dataflash-project-at91sam7se-ek\at91sam7se-ek\b #
#                    asic-dataflash-project\ewp\at91sam7se512_sram\List\USBGe #
#                    nericDescriptor.lst                                      #
#    Object file  =  D:\basic-dataflash-project-at91sam7se-ek\at91sam7se-ek\b #
#                    asic-dataflash-project\ewp\at91sam7se512_sram\Obj\USBGen #
#                    ericDescriptor.o                                         #
#                                                                             #
#                                                                             #
###############################################################################

D:\basic-dataflash-project-at91sam7se-ek\at91lib\usb\common\core\USBGenericDescriptor.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              Title: USBGenericDescriptor implementation
     32          
     33              About: Purpose
     34                  Implementation of the USBGenericDescriptor class.
     35          */
     36          
     37          //------------------------------------------------------------------------------
     38          //         Headers
     39          //------------------------------------------------------------------------------
     40          
     41          #include "USBGenericDescriptor.h"
     42          
     43          //------------------------------------------------------------------------------
     44          //         Exported functions
     45          //------------------------------------------------------------------------------
     46          
     47          //------------------------------------------------------------------------------
     48          /// Returns the length of a descriptor.
     49          /// \param descriptor Pointer to a USBGenericDescriptor instance.
     50          /// \return Length of descriptor in bytes.
     51          //------------------------------------------------------------------------------

   \                                 In section .text, align 4, keep-with-next
     52          unsigned int USBGenericDescriptor_GetLength(
     53              const USBGenericDescriptor *descriptor)
     54          {
     55              return descriptor->bLength;
   \                     USBGenericDescriptor_GetLength:
   \   00000000   0000D0E5           LDRB     R0,[R0, #+0]
   \   00000004   1EFF2FE1           BX       LR               ;; return
     56          }
     57          
     58          //------------------------------------------------------------------------------
     59          /// Returns the type of a descriptor.
     60          /// \param descriptor Pointer to a USBGenericDescriptor instance.
     61          /// \return Type of descriptor.
     62          //------------------------------------------------------------------------------

   \                                 In section .text, align 4, keep-with-next
     63          unsigned char USBGenericDescriptor_GetType(
     64              const USBGenericDescriptor *descriptor)
     65          {
     66              return descriptor->bDescriptorType;
   \                     USBGenericDescriptor_GetType:
   \   00000000   0100D0E5           LDRB     R0,[R0, #+1]
   \   00000004   1EFF2FE1           BX       LR               ;; return
     67          }
     68          
     69          //------------------------------------------------------------------------------
     70          /// Returns a pointer to the descriptor right after the given one, when
     71          /// parsing a Configuration descriptor.
     72          /// \param descriptor - Pointer to a USBGenericDescriptor instance.
     73          /// \return Pointer to the next descriptor.
     74          //------------------------------------------------------------------------------

   \                                 In section .text, align 4, keep-with-next
     75          USBGenericDescriptor *USBGenericDescriptor_GetNextDescriptor(
     76              const USBGenericDescriptor *descriptor)
     77          {
   \                     USBGenericDescriptor_GetNextDescriptor:
   \   00000000   10402DE9           PUSH     {R4,LR}
   \   00000004   0040A0E1           MOV      R4,R0
     78              return (USBGenericDescriptor *)
     79                  (((char *) descriptor) + USBGenericDescriptor_GetLength(descriptor));
   \   00000008   ........           BL       USBGenericDescriptor_GetLength
   \   0000000C   040080E0           ADD      R0,R0,R4
   \   00000010   1040BDE8           POP      {R4,LR}
   \   00000014   1EFF2FE1           BX       LR               ;; return
     80          }

   Maximum stack usage in bytes:

     Function                       .cstack
     --------                       -------
     USBGenericDescriptor_GetLength      0
     USBGenericDescriptor_GetNextDescriptor
                                         8
     USBGenericDescriptor_GetType        0


   Section sizes:

     Function/Label                 Bytes
     --------------                 -----
     USBGenericDescriptor_GetLength    8
     USBGenericDescriptor_GetType      8
     USBGenericDescriptor_GetNextDescriptor
                                      24

 
 40 bytes in section .text
 
 40 bytes of CODE memory

Errors: none
Warnings: none

⌨️ 快捷键说明

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