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

📄 bsp_os.lst

📁 stm32+ucos-ii
💻 LST
📖 第 1 页 / 共 2 页
字号:
###############################################################################
#                                                                             #
# IAR ANSI C/C++ Compiler V6.10.2.52244/W32 for ARM     07/Aug/2011  12:10:23 #
# Copyright 1999-2010 IAR Systems AB.                                         #
#                                                                             #
#    Cpu mode     =  thumb                                                    #
#    Endian       =  little                                                   #
#    Source file  =  F:\stm32\我的程序\Micrium\Software\EWARM\BSP\uCOS-II\bsp #
#                    _os.c                                                    #
#    Command line =  F:\stm32\我的程序\Micrium\Software\EWARM\BSP\uCOS-II\bsp #
#                    _os.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\bsp_os.lst                                             #
#    Object file  =  F:\stm32\我的程序\Micrium\Software\EWARM\OS-II\Flash\Obj #
#                    \bsp_os.o                                                #
#                                                                             #
#                                                                             #
###############################################################################

F:\stm32\我的程序\Micrium\Software\EWARM\BSP\uCOS-II\bsp_os.c
      1          /*
      2          *********************************************************************************************************
      3          *                                     MICRIUM BOARD SUPPORT SUPPORT
      4          *
      5          *                          (c) Copyright 2003-2009; 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          *                                    MICRIUM BOARD SUPPORT PACKAGE
     18          *                                             OS LAYER
     19          *
     20          * Filename      : bsp_os.c
     21          * Version       : V1.00
     22          * Programmer(s) : FT
     23          *                 EHS
     24          *********************************************************************************************************
     25          */
     26          
     27          
     28          /*
     29          *********************************************************************************************************
     30          *                                             INCLUDE FILES
     31          *********************************************************************************************************
     32          */
     33          
     34          #define  BSP_OS_MODULE
     35          #include <bsp.h>
     36          
     37          #if (APP_CFG_PROBE_COM_EN == DEF_ENABLED)
     38          #include <app_probe.h>
     39          #endif
     40          
     41          
     42          /*
     43          *********************************************************************************************************
     44          *                                            LOCAL DEFINES
     45          *********************************************************************************************************
     46          */
     47          
     48          
     49          /*
     50          *********************************************************************************************************
     51          *                                           LOCAL CONSTANTS
     52          *********************************************************************************************************
     53          */
     54          
     55          
     56          /*
     57          *********************************************************************************************************
     58          *                                          LOCAL DATA TYPES
     59          *********************************************************************************************************
     60          */
     61          
     62          
     63          /*
     64          *********************************************************************************************************
     65          *                                            LOCAL TABLES
     66          *********************************************************************************************************
     67          */
     68          
     69          
     70          /*
     71          *********************************************************************************************************
     72          *                                       LOCAL GLOBAL VARIABLES
     73          *********************************************************************************************************
     74          */
     75          
     76          
     77          /*
     78          *********************************************************************************************************
     79          *                                      LOCAL FUNCTION PROTOTYPES
     80          *********************************************************************************************************
     81          */
     82          
     83          
     84          /*
     85          *********************************************************************************************************
     86          *                                     LOCAL CONFIGURATION ERRORS
     87          *********************************************************************************************************
     88          */
     89          
     90          /*
     91          *********************************************************************************************************
     92          *********************************************************************************************************
     93          **                                         GLOBAL FUNCTIONS
     94          *********************************************************************************************************
     95          *********************************************************************************************************
     96          */
     97          
     98          
     99          /*
    100          *********************************************************************************************************
    101          *********************************************************************************************************
    102          **                                     BSP OS LOCKS FUNCTIONS
    103          *********************************************************************************************************
    104          *********************************************************************************************************
    105          */
    106          
    107          /*
    108          *********************************************************************************************************
    109          *********************************************************************************************************
    110          **                                     BSP OS LOCKS FUNCTIONS
    111          *********************************************************************************************************
    112          *********************************************************************************************************
    113          */
    114          
    115          /*
    116          *********************************************************************************************************
    117          *                                      BSP_OS_SemCreate()
    118          *
    119          * Description : Creates a sempahore to lock/unlock
    120          *
    121          * Argument(s) : p_sem        Pointer to a BSP_OS_SEM structure
    122          *  
    123          *               sem_val      Initial value of the semaphore.
    124          *
    125          *               p_sem_name   Pointer to the semaphore name.
    126          *
    127          * Return(s)   : DEF_OK        if the semaphore was created.
    128          *               DEF_FAIL      if the sempahore could not be created.
    129          *     
    130          * Caller(s)   : Application.
    131          *
    132          * Note(s)     : none.
    133          *
    134          *********************************************************************************************************
    135          */
    136          

   \                                 In section .text, align 2, keep-with-next
    137          CPU_BOOLEAN  BSP_OS_SemCreate (BSP_OS_SEM       *p_sem,
    138                                         BSP_OS_SEM_VAL    sem_val,
    139                                         CPU_CHAR         *p_sem_name)
    140          {
   \                     BSP_OS_SemCreate:
   \   00000000   F8B5               PUSH     {R3-R7,LR}
   \   00000002   0400               MOVS     R4,R0
   \   00000004   0D00               MOVS     R5,R1
   \   00000006   1600               MOVS     R6,R2
    141              OS_EVENT    *p_event;
    142          
    143          #if (OS_EVENT_NAME_EN > 0)
    144              CPU_INT08U  err;
    145          #endif
    146              
    147              p_event = OSSemCreate(sem_val);
   \   00000008   2800               MOVS     R0,R5
   \   0000000A   80B2               UXTH     R0,R0            ;; ZeroExt  R0,R0,#+16,#+16
   \   0000000C   ........           BL       OSSemCreate
   \   00000010   0700               MOVS     R7,R0
    148              
    149              if (p_event == (OS_EVENT *)0) {
   \   00000012   002F               CMP      R7,#+0
   \   00000014   01D1               BNE.N    ??BSP_OS_SemCreate_0
    150                  return (DEF_FAIL);    
   \   00000016   0020               MOVS     R0,#+0
   \   00000018   06E0               B.N      ??BSP_OS_SemCreate_1
    151              }
    152              
    153              *p_sem = (BSP_OS_SEM)(p_event);
   \                     ??BSP_OS_SemCreate_0:
   \   0000001A   2760               STR      R7,[R4, #+0]
    154              
    155          #if (OS_EVENT_NAME_EN > 0)
    156              OSEventNameSet((OS_EVENT *)p_event, 
    157                             (INT8U    *)p_sem_name, 
    158                             (INT8U    *)&err);
   \   0000001C   00AA               ADD      R2,SP,#+0
   \   0000001E   3100               MOVS     R1,R6

⌨️ 快捷键说明

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