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

📄 usbfeaturerequest.lst

📁 本代bootloader通过usb下载代码首先存放在sdram中
💻 LST
字号:
###############################################################################
#                                                                             #
#                                                       28/Apr/2009  09:28:30 #
# 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\common\core\USBFea #
#                    tureRequest.c                                            #
#    Command line =  E:\workplace\bootloaderOK\at91lib\usb\common\core\USBFea #
#                    tureRequest.c -D at91sam7se512 -D flash -D               #
#                    TRACE_LEVEL=4 -lC E:\workplace\bootloaderOK\at91sam7se-e #
#                    k\basic-dataflash-project\ewp\at91sam7se512_flash\List\  #
#                    --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\USBFeatureRequest.l #
#                    st                                                       #
#    Object file  =  E:\workplace\bootloaderOK\at91sam7se-ek\basic-dataflash- #
#                    project\ewp\at91sam7se512_flash\Obj\USBFeatureRequest.o  #
#                                                                             #
#                                                                             #
###############################################################################

E:\workplace\bootloaderOK\at91lib\usb\common\core\USBFeatureRequest.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: USBFeatureRequest implementation
     32          
     33              About: Purpose
     34                  Implementation of the USBFeatureRequest class.
     35          */
     36          
     37          //------------------------------------------------------------------------------
     38          //         Headers
     39          //------------------------------------------------------------------------------
     40          
     41          #include "USBFeatureRequest.h"
     42          
     43          //------------------------------------------------------------------------------
     44          //         Exported functions
     45          //------------------------------------------------------------------------------
     46          
     47          //------------------------------------------------------------------------------
     48          /// Returns the feature selector of a given CLEAR_FEATURE or SET_FEATURE
     49          /// request.
     50          /// \param request Pointer to a USBGenericRequest instance.
     51          /// \return Feature selector.
     52          //------------------------------------------------------------------------------

   \                                 In section .text, align 4, keep-with-next
     53          unsigned char USBFeatureRequest_GetFeatureSelector(
     54              const USBGenericRequest *request)
     55          {
   \                     USBFeatureRequest_GetFeatureSelector:
   \   00000000   01402DE9           PUSH     {R0,LR}
     56              return USBGenericRequest_GetValue(request);
   \   00000004   ........           BL       USBGenericRequest_GetValue
   \   00000008   FF0000E2           AND      R0,R0,#0xFF
   \   0000000C   0050BDE8           POP      {R12,LR}
   \   00000010   1EFF2FE1           BX       LR               ;; return
     57          }
     58          
     59          //------------------------------------------------------------------------------
     60          /// Indicates the test that the device must undertake following a
     61          /// SET_FEATURE request.
     62          /// \param request Pointer to a USBGenericRequest instance.
     63          /// \return Test selector.
     64          //------------------------------------------------------------------------------

   \                                 In section .text, align 4, keep-with-next
     65          unsigned char USBFeatureRequest_GetTestSelector(
     66              const USBGenericRequest *request)
     67          {
   \                     USBFeatureRequest_GetTestSelector:
   \   00000000   01402DE9           PUSH     {R0,LR}
     68              return (USBGenericRequest_GetIndex(request) >> 8) & 0xFF;
   \   00000004   ........           BL       USBGenericRequest_GetIndex
   \   00000008   2004A0E1           LSR      R0,R0,#+8
   \   0000000C   0050BDE8           POP      {R12,LR}
   \   00000010   1EFF2FE1           BX       LR               ;; return
     69          }
     70          

   Maximum stack usage in bytes:

     Function                       .cstack
     --------                       -------
     USBFeatureRequest_GetFeatureSelector
                                         8
     USBFeatureRequest_GetTestSelector
                                         8


   Section sizes:

     Function/Label                 Bytes
     --------------                 -----
     USBFeatureRequest_GetFeatureSelector
                                      20
     USBFeatureRequest_GetTestSelector
                                      20

 
 40 bytes in section .text
 
 40 bytes of CODE memory

Errors: none
Warnings: none

⌨️ 快捷键说明

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