app.lst

来自「stm32+ucos-ii」· LST 代码 · 共 335 行 · 第 1/2 页

LST
335
字号
###############################################################################
#                                                                             #
# IAR ANSI C/C++ Compiler V6.10.2.52244/W32 for ARM     07/Aug/2011  12:11:29 #
# Copyright 1999-2010 IAR Systems AB.                                         #
#                                                                             #
#    Cpu mode     =  thumb                                                    #
#    Endian       =  little                                                   #
#    Source file  =  F:\stm32\我的程序\Micrium\Software\EWARM\OS-II\APP\app.c #
#    Command line =  F:\stm32\我的程序\Micrium\Software\EWARM\OS-II\APP\app.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\app.lst                                                #
#    Object file  =  F:\stm32\我的程序\Micrium\Software\EWARM\OS-II\Flash\Obj #
#                    \app.o                                                   #
#                                                                             #
#                                                                             #
###############################################################################

F:\stm32\我的程序\Micrium\Software\EWARM\OS-II\APP\app.c
      1          /*
      2          *********************************************************************************************************
      3          *                                              EXAMPLE CODE
      4          *
      5          *                          (c) Copyright 2003-2007; Micrium, Inc.; Weston, FL
      6          *
      7          *               All rights reserved.  Protected by international copyright laws.
      8          *               Knowledge of the source code may NOT be used to develop a similar product.
      9          *               Please help us continue to provide the Embedded community with the finest
     10          *               software available.  Your honesty is greatly appreciated.
     11          *********************************************************************************************************
     12          */
     13          
     14          /*
     15          *********************************************************************************************************
     16          *
     17          *                                            EXAMPLE CODE
     18          *
     19          *                                     ST Microelectronics STM32
     20          *                                              on the
     21          *
     22          *                                     Micrium uC-Eval-STM32F107
     23          *                                        Evaluation Board
     24          *
     25          * Filename      : app.c
     26          * Version       : V1.00
     27          * Programmer(s) : EHS
     28          *********************************************************************************************************
     29          */
     30          
     31          /*
     32          *********************************************************************************************************
     33          *                                             INCLUDE FILES
     34          *********************************************************************************************************
     35          */
     36          
     37          #include <includes.h>
     38          
     39          
     40          /*
     41          *********************************************************************************************************
     42          *                                            LOCAL DEFINES
     43          *********************************************************************************************************
     44          */
     45          
     46          
     47          /*
     48          *********************************************************************************************************
     49          *                                       LOCAL GLOBAL VARIABLES
     50          *********************************************************************************************************
     51          */
     52          

   \                                 In section .bss, align 4
     53          static   OS_STK      AppTaskStartStk[APP_TASK_START_STK_SIZE];
   \                     AppTaskStartStk:
   \   00000000                      DS8 512
     54          
     55          
     56          /*
     57          *********************************************************************************************************
     58          *                                         FUNCTION PROTOTYPES
     59          *********************************************************************************************************
     60          */
     61          
     62          static  void    AppTaskCreate  (void);
     63          static  void    AppTaskStart   (void *p_arg);
     64          
     65          
     66          /*
     67          *********************************************************************************************************
     68          *                                                main()
     69          *
     70          * Description : This is the standard entry point for C code.  It is assumed that your code will call
     71          *               main() once you have performed all necessary initialization.
     72          *
     73          * Arguments   : none
     74          *
     75          * Returns     : none
     76          *********************************************************************************************************
     77          */
     78          

   \                                 In section .text, align 2, keep-with-next
     79          int  main (void)
     80          {
   \                     main:
   \   00000000   00B5               PUSH     {LR}
   \   00000002   87B0               SUB      SP,SP,#+28
     81              CPU_INT08U  err;
     82          
     83          
     84              BSP_IntDisAll();                                            /* Disable all interrupts until we are ready to accept them */
   \   00000004   ........           BL       BSP_IntDisAll
     85          
     86              OSInit();                                                   /* Initialize "uC/OS-II, The Real-Time Kernel"              */
   \   00000008   ........           BL       OSInit
     87          
     88              OSTaskCreateExt(AppTaskStart,                               /* Create the start task                                    */
     89                              (void *)0,
     90                              (OS_STK *)&AppTaskStartStk[APP_TASK_START_STK_SIZE - 1],
     91                              APP_TASK_START_PRIO,
     92                              APP_TASK_START_PRIO,
     93                              (OS_STK *)&AppTaskStartStk[0],
     94                              APP_TASK_START_STK_SIZE,
     95                              (void *)0,
     96                              OS_TASK_OPT_STK_CHK | OS_TASK_OPT_STK_CLR);
   \   0000000C   0320               MOVS     R0,#+3
   \   0000000E   0490               STR      R0,[SP, #+16]
   \   00000010   0020               MOVS     R0,#+0
   \   00000012   0390               STR      R0,[SP, #+12]
   \   00000014   8020               MOVS     R0,#+128
   \   00000016   0290               STR      R0,[SP, #+8]
   \   00000018   ....               LDR.N    R0,??DataTable1
   \   0000001A   0190               STR      R0,[SP, #+4]
   \   0000001C   0420               MOVS     R0,#+4
   \   0000001E   0090               STR      R0,[SP, #+0]
   \   00000020   0423               MOVS     R3,#+4
   \   00000022   ....               LDR.N    R2,??DataTable1_1
   \   00000024   0021               MOVS     R1,#+0
   \   00000026   ....               LDR.N    R0,??DataTable1_2
   \   00000028   ........           BL       OSTaskCreateExt
     97          
     98          #if (OS_TASK_NAME_EN > 0)

⌨️ 快捷键说明

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