probe_com_os.lst

来自「针对STM32F103的UCOS移植」· LST 代码 · 共 390 行 · 第 1/2 页

LST
390
字号
##############################################################################
#                                                                            #
# IAR ARM ANSI C/C++ Compiler V4.42A/W32 KICKSTART     13/Mar/2009  16:01:06 #
# Copyright 1999-2005 IAR Systems. All rights reserved.                      #
#                                                                            #
#    Cpu mode        =  thumb                                                #
#    Endian          =  little                                               #
#    Stack alignment =  4                                                    #
#    Source file     =  E:\UC_OS\Micrium\Software\uC-Probe\Target\Communicat #
#                       ion\Generic\OS\uCOS-II\probe_com_os.c                #
#    Command line    =  E:\UC_OS\Micrium\Software\uC-Probe\Target\Communicat #
#                       ion\Generic\OS\uCOS-II\probe_com_os.c -lCN           #
#                       E:\UC_OS\Micrium\Software\EvalBoards\ST\STM3210B-EVA #
#                       L\IAR\OS-Probe\Flash\List\ -o                        #
#                       E:\UC_OS\Micrium\Software\EvalBoards\ST\STM3210B-EVA #
#                       L\IAR\OS-Probe\Flash\Obj\ -z6 --no_unroll            #
#                       --no_inline --no_tbaa --no_scheduling --debug        #
#                       --cpu_mode thumb --endian little --cpu cortex-M3     #
#                       --stack_align 4 -e --fpu None --dlib_config          #
#                       "C:\Program Files\IAR Systems\Embedded Workbench     #
#                       4.0 Kickstart\arm\LIB\dl7mptnnl8n.h" -I              #
#                       E:\UC_OS\Micrium\Software\EvalBoards\ST\STM3210B-EVA #
#                       L\IAR\OS-Probe\ -I E:\UC_OS\Micrium\Software\EvalBoa #
#                       rds\ST\STM3210B-EVAL\IAR\OS-Probe\..\..\..\..\..\uco #
#                       s-ii\ports\arm-cortex-m3\generic\iar\ -I             #
#                       E:\UC_OS\Micrium\Software\EvalBoards\ST\STM3210B-EVA #
#                       L\IAR\OS-Probe\..\..\..\..\..\ucos-ii\source\ -I     #
#                       E:\UC_OS\Micrium\Software\EvalBoards\ST\STM3210B-EVA #
#                       L\IAR\OS-Probe\..\..\..\..\..\uc-lib\ -I             #
#                       E:\UC_OS\Micrium\Software\EvalBoards\ST\STM3210B-EVA #
#                       L\IAR\OS-Probe\..\..\..\..\..\uc-cpu\ -I             #
#                       E:\UC_OS\Micrium\Software\EvalBoards\ST\STM3210B-EVA #
#                       L\IAR\OS-Probe\..\..\..\..\..\uc-cpu\ARM-Cortex-M3\I #
#                       AR\ -I E:\UC_OS\Micrium\Software\EvalBoards\ST\STM32 #
#                       10B-EVAL\IAR\OS-Probe\..\..\..\..\..\cpu\st\stm32\in #
#                       c\ -I E:\UC_OS\Micrium\Software\EvalBoards\ST\STM321 #
#                       0B-EVAL\IAR\OS-Probe\..\BSP\ -I                      #
#                       E:\UC_OS\Micrium\Software\EvalBoards\ST\STM3210B-EVA #
#                       L\IAR\OS-Probe\..\..\..\..\..\uC-Probe\Target\Commun #
#                       ication\Generic\RS-232\Source\ -I                    #
#                       E:\UC_OS\Micrium\Software\EvalBoards\ST\STM3210B-EVA #
#                       L\IAR\OS-Probe\..\..\..\..\..\uC-Probe\Target\Commun #
#                       ication\Generic\RS-232\Ports\ST\STM32\ -I            #
#                       E:\UC_OS\Micrium\Software\EvalBoards\ST\STM3210B-EVA #
#                       L\IAR\OS-Probe\..\..\..\..\..\uC-Probe\Target\Commun #
#                       ication\Generic\Source\ -I                           #
#                       E:\UC_OS\Micrium\Software\EvalBoards\ST\STM3210B-EVA #
#                       L\IAR\OS-Probe\..\..\..\..\..\uC-Probe\Target\Plugin #
#                       s\uCOS-II\ -I "C:\Program Files\IAR                  #
#                       Systems\Embedded Workbench 4.0 Kickstart\arm\INC\"   #
#    List file       =  E:\UC_OS\Micrium\Software\EvalBoards\ST\STM3210B-EVA #
#                       L\IAR\OS-Probe\Flash\List\probe_com_os.lst           #
#    Object file     =  E:\UC_OS\Micrium\Software\EvalBoards\ST\STM3210B-EVA #
#                       L\IAR\OS-Probe\Flash\Obj\probe_com_os.r79            #
#                                                                            #
#                                                                            #
##############################################################################

E:\UC_OS\Micrium\Software\uC-Probe\Target\Communication\Generic\OS\uCOS-II\probe_com_os.c
      1          /*
      2          *********************************************************************************************************
      3          *                                      uC/Probe Communication
      4          *
      5          *                           (c) Copyright 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          *                                              uC/Probe
     18          *
     19          *                                      Communication: Generic
     20          *
     21          * Filename      : probe_com_os.c
     22          * Version       : V1.20
     23          * Programmer(s) : Brian Nagel
     24          * Note(s)       : (1) This file is the uC/OS-II layer for the uC/Probe Generic Communication Module.
     25          *********************************************************************************************************
     26          */
     27          
     28          /*
     29          *********************************************************************************************************
     30          *                                             INCLUDE FILES
     31          *********************************************************************************************************
     32          */
     33          
     34          #include  <probe_com.h>
     35          #include  <ucos_ii.h>
     36          
     37          
     38          /*
     39          *********************************************************************************************************
     40          *                                            LOCAL DEFINES
     41          *********************************************************************************************************
     42          */
     43          
     44          
     45          /*
     46          *********************************************************************************************************
     47          *                                           LOCAL CONSTANTS
     48          *********************************************************************************************************
     49          */
     50          
     51          
     52          /*
     53          *********************************************************************************************************
     54          *                                          LOCAL DATA TYPES
     55          *********************************************************************************************************
     56          */
     57          
     58          
     59          /*
     60          *********************************************************************************************************
     61          *                                            LOCAL TABLES
     62          *********************************************************************************************************
     63          */
     64          
     65          
     66          /*
     67          *********************************************************************************************************
     68          *                                       LOCAL GLOBAL VARIABLES
     69          *********************************************************************************************************
     70          */
     71          
     72          #if (PROBE_COM_SUPPORT_STR > 0) && (OS_SEM_EN > 0)

   \                                 In segment DATA_Z, align 4, align-sorted
     73          static  OS_EVENT  *ProbeCom_OS_Sem;
   \                     ProbeCom_OS_Sem:
   \   00000000                      DS8 4
     74          #endif
     75          
     76          
     77          /*
     78          *********************************************************************************************************
     79          *                                      LOCAL FUNCTION PROTOTYPES
     80          *********************************************************************************************************
     81          */
     82          
     83          
     84          /*
     85          *********************************************************************************************************
     86          *                                     LOCAL CONFIGURATION ERRORS
     87          *********************************************************************************************************
     88          */
     89          
     90          #if (PROBE_COM_SUPPORT_STR > 0) && (OS_SEM_EN == 0)
     91            #error  "If PROBE_COM_SUPPORT_WR is set to DEF_TRUE, then semaphores MUST be enabled."
     92          #endif
     93          
     94          
     95          /*
     96          *********************************************************************************************************
     97          *********************************************************************************************************
     98          **                                          GLOBAL FUNCTIONS
     99          *********************************************************************************************************
    100          *********************************************************************************************************
    101          */
    102          /*
    103          *********************************************************************************************************
    104          *                Initialize uC/OS-II Objects for uC/Probe General Communication Module
    105          *
    106          * Description: This function creates one system object--a semaphore--to lock access to the string buffer.
    107          *
    108          * Argument(s): None.
    109          *
    110          * Returns    : None
    111          *********************************************************************************************************
    112          */
    113          
    114          #if (PROBE_COM_SUPPORT_STR > 0)

   \                                 In segment CODE, align 4, keep-with-next
    115          void  ProbeCom_OS_Init (void)
    116          {
   \                     ProbeCom_OS_Init:
   \   00000000   11B5               PUSH     {R0,R4,LR}
    117          #if (OS_EVENT_NAME_SIZE > 10) && (OS_SEM_EN > 0)
    118              CPU_INT08U  err;
    119          #endif
    120          
    121          
    122          #if (OS_SEM_EN > 0)
    123              ProbeCom_OS_Sem = OSSemCreate(1);
   \   00000002   ....               LDR.N    R4,??DataTable2  ;; ProbeCom_OS_Sem
   \   00000004   0120               MOVS     R0,#+1
   \   00000006   ........           _BLF     OSSemCreate,??OSSemCreate??rT
   \   0000000A   2060               STR      R0,[R4, #+0]
    124          #if (OS_EVENT_NAME_SIZE > 13)

⌨️ 快捷键说明

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