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

📄 stm32f10x_dbgmcu.lst

📁 stm32+ucos-ii
💻 LST
字号:
###############################################################################
#                                                                             #
# IAR ANSI C/C++ Compiler V6.10.2.52244/W32 for ARM     07/Aug/2011  12:10:35 #
# Copyright 1999-2010 IAR Systems AB.                                         #
#                                                                             #
#    Cpu mode     =  thumb                                                    #
#    Endian       =  little                                                   #
#    Source file  =  F:\stm32\我的程序\Micrium\Software\EWARM\BSP\ST\STM32F10 #
#                    x_StdPeriph_Driver\src\stm32f10x_dbgmcu.c                #
#    Command line =  F:\stm32\我的程序\Micrium\Software\EWARM\BSP\ST\STM32F10 #
#                    x_StdPeriph_Driver\src\stm32f10x_dbgmcu.c -D             #
#                    USE_STDPERIPH_DRIVER -D STM32F10X_CL -lCN                #
#                    F:\stm32\我的程序\Micrium\Software\EWARM\OS-II\Flash\Lis #
#                    t\ -o F:\stm32\我的程序\Micrium\Software\EWARM\OS-II\Fla #
#                    sh\Obj\ --no_cse --no_unroll --no_inline                 #
#                    --no_code_motion --no_tbaa --no_clustering               #
#                    --no_scheduling --debug --endian=little --cpu=Cortex-M3  #
#                    -e --fpu=None --dlib_config                              #
#                    D:\arm\INC\c\DLib_Config_Normal.h -I                     #
#                    F:\stm32\我的程序\Micrium\Software\EWARM\OS-II\APP\ -I   #
#                    F:\stm32\我的程序\Micrium\Software\EWARM\OS-II\..\BSP\   #
#                    -I F:\stm32\我的程序\Micrium\Software\EWARM\OS-II\..\BSP #
#                    \ST\CMSIS\CM3\CoreSupport\ -I                            #
#                    F:\stm32\我的程序\Micrium\Software\EWARM\OS-II\..\BSP\ST #
#                    \CMSIS\CM3\DeviceSupport\ST\STM32F10x\ -I                #
#                    F:\stm32\我的程序\Micrium\Software\EWARM\OS-II\..\BSP\ST #
#                    \STM32F10x_StdPeriph_Driver\inc\ -I                      #
#                    F:\stm32\我的程序\Micrium\Software\EWARM\OS-II\..\BSP\uC #
#                    OS-II\ -I F:\stm32\我的程序\Micrium\Software\EWARM\OS-II #
#                    \..\..\uCOS-II\Ports\ARM-Cortex-M3\Generic\IAR\ -I       #
#                    F:\stm32\我的程序\Micrium\Software\EWARM\OS-II\..\..\uCO #
#                    S-II\Source\ -I F:\stm32\我的程序\Micrium\Software\EWARM #
#                    \OS-II\..\..\uC-LIB\ -I F:\stm32\我的程序\Micrium\Softwa #
#                    re\EWARM\OS-II\..\..\uC-LIB\Ports\ARM-Cortex-M3\IAR\ -I  #
#                    F:\stm32\我的程序\Micrium\Software\EWARM\OS-II\..\..\uC- #
#                    CPU\ -I F:\stm32\我的程序\Micrium\Software\EWARM\OS-II\. #
#                    .\..\uC-CPU\ARM-Cortex-M3\IAR\ -On --use_c++_inline      #
#    List file    =  F:\stm32\我的程序\Micrium\Software\EWARM\OS-II\Flash\Lis #
#                    t\stm32f10x_dbgmcu.lst                                   #
#    Object file  =  F:\stm32\我的程序\Micrium\Software\EWARM\OS-II\Flash\Obj #
#                    \stm32f10x_dbgmcu.o                                      #
#                                                                             #
#                                                                             #
###############################################################################

F:\stm32\我的程序\Micrium\Software\EWARM\BSP\ST\STM32F10x_StdPeriph_Driver\src\stm32f10x_dbgmcu.c
      1          /**
      2            ******************************************************************************
      3            * @file    stm32f10x_dbgmcu.c
      4            * @author  MCD Application Team
      5            * @version V3.4.0
      6            * @date    10/15/2010
      7            * @brief   This file provides all the DBGMCU firmware functions.
      8            ******************************************************************************
      9            * @copy
     10            *
     11            * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
     12            * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
     13            * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
     14            * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
     15            * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
     16            * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
     17            *
     18            * <h2><center>&copy; COPYRIGHT 2010 STMicroelectronics</center></h2>
     19            */ 
     20          
     21          /* Includes ------------------------------------------------------------------*/
     22          #include "stm32f10x_dbgmcu.h"
     23          
     24          /** @addtogroup STM32F10x_StdPeriph_Driver
     25            * @{
     26            */
     27          
     28          /** @defgroup DBGMCU 
     29            * @brief DBGMCU driver modules
     30            * @{
     31            */ 
     32          
     33          /** @defgroup DBGMCU_Private_TypesDefinitions
     34            * @{
     35            */
     36          
     37          /**
     38            * @}
     39            */
     40          
     41          /** @defgroup DBGMCU_Private_Defines
     42            * @{
     43            */
     44          
     45          #define IDCODE_DEVID_MASK    ((uint32_t)0x00000FFF)
     46          /**
     47            * @}
     48            */
     49          
     50          /** @defgroup DBGMCU_Private_Macros
     51            * @{
     52            */
     53          
     54          /**
     55            * @}
     56            */
     57          
     58          /** @defgroup DBGMCU_Private_Variables
     59            * @{
     60            */
     61          
     62          /**
     63            * @}
     64            */
     65          
     66          /** @defgroup DBGMCU_Private_FunctionPrototypes
     67            * @{
     68            */
     69          
     70          /**
     71            * @}
     72            */
     73          
     74          /** @defgroup DBGMCU_Private_Functions
     75            * @{
     76            */
     77          
     78          /**
     79            * @brief  Returns the device revision identifier.
     80            * @param  None
     81            * @retval Device revision identifier
     82            */

   \                                 In section .text, align 2, keep-with-next
     83          uint32_t DBGMCU_GetREVID(void)
     84          {
     85             return(DBGMCU->IDCODE >> 16);
   \                     DBGMCU_GetREVID:
   \   00000000   ....               LDR.N    R0,??DataTable2  ;; 0xe0042000
   \   00000002   0068               LDR      R0,[R0, #+0]
   \   00000004   000C               LSRS     R0,R0,#+16
   \   00000006   7047               BX       LR               ;; return
     86          }
     87          
     88          /**
     89            * @brief  Returns the device identifier.
     90            * @param  None
     91            * @retval Device identifier
     92            */

   \                                 In section .text, align 2, keep-with-next
     93          uint32_t DBGMCU_GetDEVID(void)
     94          {
     95             return(DBGMCU->IDCODE & IDCODE_DEVID_MASK);
   \                     DBGMCU_GetDEVID:
   \   00000000   ....               LDR.N    R0,??DataTable2  ;; 0xe0042000
   \   00000002   0068               LDR      R0,[R0, #+0]
   \   00000004   0005               LSLS     R0,R0,#+20
   \   00000006   000D               LSRS     R0,R0,#+20
   \   00000008   7047               BX       LR               ;; return
     96          }
     97          
     98          /**
     99            * @brief  Configures the specified peripheral and low power mode behavior
    100            *   when the MCU under Debug mode.
    101            * @param  DBGMCU_Periph: specifies the peripheral and low power mode.
    102            *   This parameter can be any combination of the following values:
    103            *     @arg DBGMCU_SLEEP: Keep debugger connection during SLEEP mode              
    104            *     @arg DBGMCU_STOP: Keep debugger connection during STOP mode               
    105            *     @arg DBGMCU_STANDBY: Keep debugger connection during STANDBY mode            
    106            *     @arg DBGMCU_IWDG_STOP: Debug IWDG stopped when Core is halted          
    107            *     @arg DBGMCU_WWDG_STOP: Debug WWDG stopped when Core is halted          
    108            *     @arg DBGMCU_TIM1_STOP: TIM1 counter stopped when Core is halted          
    109            *     @arg DBGMCU_TIM2_STOP: TIM2 counter stopped when Core is halted          
    110            *     @arg DBGMCU_TIM3_STOP: TIM3 counter stopped when Core is halted          
    111            *     @arg DBGMCU_TIM4_STOP: TIM4 counter stopped when Core is halted          
    112            *     @arg DBGMCU_CAN1_STOP: Debug CAN2 stopped when Core is halted           
    113            *     @arg DBGMCU_I2C1_SMBUS_TIMEOUT: I2C1 SMBUS timeout mode stopped when Core is halted
    114            *     @arg DBGMCU_I2C2_SMBUS_TIMEOUT: I2C2 SMBUS timeout mode stopped when Core is halted
    115            *     @arg DBGMCU_TIM5_STOP: TIM5 counter stopped when Core is halted          
    116            *     @arg DBGMCU_TIM6_STOP: TIM6 counter stopped when Core is halted          
    117            *     @arg DBGMCU_TIM7_STOP: TIM7 counter stopped when Core is halted          
    118            *     @arg DBGMCU_TIM8_STOP: TIM8 counter stopped when Core is halted
    119            *     @arg DBGMCU_CAN2_STOP: Debug CAN2 stopped when Core is halted 
    120            *     @arg DBGMCU_TIM15_STOP: TIM15 counter stopped when Core is halted
    121            *     @arg DBGMCU_TIM16_STOP: TIM16 counter stopped when Core is halted
    122            *     @arg DBGMCU_TIM17_STOP: TIM17 counter stopped when Core is halted                
    123            *     @arg DBGMCU_TIM9_STOP: TIM9 counter stopped when Core is halted
    124            *     @arg DBGMCU_TIM10_STOP: TIM10 counter stopped when Core is halted
    125            *     @arg DBGMCU_TIM11_STOP: TIM11 counter stopped when Core is halted
    126            *     @arg DBGMCU_TIM12_STOP: TIM12 counter stopped when Core is halted
    127            *     @arg DBGMCU_TIM13_STOP: TIM13 counter stopped when Core is halted
    128            *     @arg DBGMCU_TIM14_STOP: TIM14 counter stopped when Core is halted
    129            * @param  NewState: new state of the specified peripheral in Debug mode.
    130            *   This parameter can be: ENABLE or DISABLE.
    131            * @retval None
    132            */

   \                                 In section .text, align 2, keep-with-next
    133          void DBGMCU_Config(uint32_t DBGMCU_Periph, FunctionalState NewState)
    134          {
    135            /* Check the parameters */
    136            assert_param(IS_DBGMCU_PERIPH(DBGMCU_Periph));
    137            assert_param(IS_FUNCTIONAL_STATE(NewState));
    138          
    139            if (NewState != DISABLE)
   \                     DBGMCU_Config:
   \   00000000   C9B2               UXTB     R1,R1            ;; ZeroExt  R1,R1,#+24,#+24
   \   00000002   0029               CMP      R1,#+0
   \   00000004   05D0               BEQ.N    ??DBGMCU_Config_0
    140            {
    141              DBGMCU->CR |= DBGMCU_Periph;
   \   00000006   ....               LDR.N    R2,??DataTable2_1  ;; 0xe0042004
   \   00000008   1268               LDR      R2,[R2, #+0]
   \   0000000A   0243               ORRS     R2,R0,R2
   \   0000000C   ....               LDR.N    R3,??DataTable2_1  ;; 0xe0042004
   \   0000000E   1A60               STR      R2,[R3, #+0]
   \   00000010   04E0               B.N      ??DBGMCU_Config_1
    142            }
    143            else
    144            {
    145              DBGMCU->CR &= ~DBGMCU_Periph;
   \                     ??DBGMCU_Config_0:
   \   00000012   ....               LDR.N    R2,??DataTable2_1  ;; 0xe0042004
   \   00000014   1268               LDR      R2,[R2, #+0]
   \   00000016   8243               BICS     R2,R2,R0
   \   00000018   ....               LDR.N    R3,??DataTable2_1  ;; 0xe0042004
   \   0000001A   1A60               STR      R2,[R3, #+0]
    146            }
    147          }
   \                     ??DBGMCU_Config_1:
   \   0000001C   7047               BX       LR               ;; return

   \                                 In section .text, align 4, keep-with-next
   \                     ??DataTable2:
   \   00000000   002004E0           DC32     0xe0042000

   \                                 In section .text, align 4, keep-with-next
   \                     ??DataTable2_1:
   \   00000000   042004E0           DC32     0xe0042004
    148          
    149          /**
    150            * @}
    151            */
    152          
    153          /**
    154            * @}
    155            */
    156          
    157          /**
    158            * @}
    159            */
    160          
    161          /******************* (C) COPYRIGHT 2010 STMicroelectronics *****END OF FILE****/

   Maximum stack usage in bytes:

     Function        .cstack
     --------        -------
     DBGMCU_Config        0
     DBGMCU_GetDEVID      0
     DBGMCU_GetREVID      0


   Section sizes:

     Function/Label  Bytes
     --------------  -----
     DBGMCU_GetREVID    8
     DBGMCU_GetDEVID   10
     DBGMCU_Config     30
     ??DataTable2       4
     ??DataTable2_1     4

 
 56 bytes in section .text
 
 56 bytes of CODE memory

Errors: none
Warnings: none

⌨️ 快捷键说明

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