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

📄 list.lst

📁 MSP430 IAR project with FreeRTOS port.
💻 LST
📖 第 1 页 / 共 2 页
字号:
##############################################################################
#                                                                            #
# IAR MSP430 C/C++ Compiler V3.41A/W32                 22/Apr/2006  00:25:15 #
# Copyright 1996-2006 IAR Systems. All rights reserved.                      #
#                                                                            #
#    __rt_version  =  2                                                      #
#    __double_size =  32                                                     #
#    __reg_r4      =  free                                                   #
#    __reg_r5      =  free                                                   #
#    __pic         =  no                                                     #
#    __core        =  64kb                                                   #
#    Source file   =  C:\MSP430F169_Eval_Port\FreeRTOSv401\Source\list.c     #
#    Command line  =  C:\MSP430F169_Eval_Port\FreeRTOSv401\Source\list.c -D  #
#                     ROWLEY_MSP430 -D IAR_MSP430 -lC                        #
#                     C:\MSP430F169_Eval_Port\FreeRTOSv401\Debug\List\ -lA   #
#                     C:\MSP430F169_Eval_Port\FreeRTOSv401\Debug\List\       #
#                     --remarks -o C:\MSP430F169_Eval_Port\FreeRTOSv401\Debu #
#                     g\Obj\ -s2 --no_cse --no_unroll --no_inline            #
#                     --no_code_motion --no_tbaa --debug -e                  #
#                     --migration_preprocessor_extensions --double=32 -I     #
#                     C:\MSP430F169_Eval_Port\FreeRTOSv401\Demo\Common\Inclu #
#                     de\ -I C:\MSP430F169_Eval_Port\FreeRTOSv401\Source\Inc #
#                     lude\ -I C:\MSP430F169_Eval_Port\FreeRTOSv401\Demo\MSP #
#                     430_IAR\ -I C:\MSP430F169_Eval_Port\FreeRTOSv401\Sourc #
#                     e\portable\msp430f1611\ -I "C:\Program Files\IAR       #
#                     Systems\Embedded Workbench 4.0\430\INC\" -I            #
#                     "C:\Program Files\IAR Systems\Embedded Workbench       #
#                     4.0\430\INC\CLIB\"                                     #
#    List file     =  C:\MSP430F169_Eval_Port\FreeRTOSv401\Debug\List\list.l #
#                     st                                                     #
#    Object file   =  C:\MSP430F169_Eval_Port\FreeRTOSv401\Debug\Obj\list.r4 #
#                     3                                                      #
#                                                                            #
#                                                                            #
##############################################################################

C:\MSP430F169_Eval_Port\FreeRTOSv401\Source\list.c
      1          /*
      2          	FreeRTOS V4.0.1 - Copyright (C) 2003-2006 Richard Barry.
      3          
      4          	This file is part of the FreeRTOS distribution.
      5          
      6          	FreeRTOS is free software; you can redistribute it and/or modify
      7          	it under the terms of the GNU General Public License as published by
      8          	the Free Software Foundation; either version 2 of the License, or
      9          	(at your option) any later version.
     10          
     11          	FreeRTOS is distributed in the hope that it will be useful,
     12          	but WITHOUT ANY WARRANTY; without even the implied warranty of
     13          	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     14          	GNU General Public License for more details.
     15          
     16          	You should have received a copy of the GNU General Public License
     17          	along with FreeRTOS; if not, write to the Free Software
     18          	Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     19          
     20          	A special exception to the GPL can be applied should you wish to distribute
     21          	a combined work that includes FreeRTOS, without being obliged to provide
     22          	the source code for any proprietary components.  See the licensing section
     23          	of http://www.FreeRTOS.org for full details of how and when the exception
     24          	can be applied.
     25          
     26          	***************************************************************************
     27          	See http://www.FreeRTOS.org for documentation, latest information, license
     28          	and contact details.  Please ensure to read the configuration and relevant
     29          	port sections of the online documentation.
     30          	***************************************************************************
     31          */
     32          
     33          /*
     34          Changes from V1.2.0
     35          
     36          	+ Removed the volatile modifier from the function parameters.  This was
     37          	  only ever included to prevent compiler warnings.  Now warnings are
     38          	  removed by casting parameters where the calls are made.
     39          
     40          	+ prvListGetOwnerOfNextEntry() and prvListGetOwnerOfHeadEntry() have been
     41          	  removed from the c file and added as macros to the h file.
     42          
     43          	+ uxNumberOfItems has been added to the list structure.  This removes the
     44          	  need for a pointer comparison when checking if a list is empty, and so
     45          	  is slightly faster.
     46          
     47          	+ Removed the NULL check in vListRemove().  This makes the call faster but
     48          	  necessitates any application code utilising the list implementation to
     49          	  ensure NULL pointers are not passed.
     50          
     51          Changes from V2.0.0
     52          
     53          	+ Double linked the lists to allow faster removal item removal.
     54          
     55          Changes from V2.6.1
     56          
     57          	+ Make use of the new portBASE_TYPE definition where ever appropriate.
     58          
     59          Changes from V3.0.0
     60          
     61          	+ API changes as described on the FreeRTOS.org WEB site.
     62          
     63          Changes from V3.2.4
     64          
     65          	+ Removed the pxHead member of the xList structure.  This always pointed
     66          	  to the same place so has been removed to free a few bytes of RAM.
     67          
     68          	+ Introduced the xMiniListItem structure that does not include the 
     69          	  xListItem members that are not required by the xListEnd member of a list.
     70          	  Again this was done to reduce RAM usage.
     71          
     72          	+ Changed the volatile definitions of some structure members to clean up
     73          	  the code where the list structures are used.
     74          */
     75          
     76          #include <stdlib.h>
     77          #include "FreeRTOS.h"
     78          #include "list.h"
     79          
     80          /*-----------------------------------------------------------
     81           * PUBLIC LIST API documented in list.h
     82           *----------------------------------------------------------*/
     83          

   \                                 In segment CODE, align 2
     84          void vListInitialise( xList *pxList )
   \                     vListInitialise:
     85          {
     86          	/* The list structure contains a list item which is used to mark the
     87          	end of the list.  To initialise the list the list end is inserted
     88          	as the only list entry. */
     89          	pxList->pxIndex = ( xListItem * ) &( pxList->xListEnd );
   \   000000   0F4C         MOV.W   R12, R15
   \   000002   2F52         ADD.W   #0x4, R15
   \   000004   8C4F0200     MOV.W   R15, 0x2(R12)
     90          
     91          	/* The list end value is the highest possible value in the list to
     92          	ensure it remains at the end of the list. */
     93          	pxList->xListEnd.xItemValue = portMAX_DELAY;
   \   000008   BC430400     MOV.W   #0xffff, 0x4(R12)
     94          
     95          	/* The list end next and previous pointers point to itself so we know
     96          	when the list is empty. */
     97          	pxList->xListEnd.pxNext = ( xListItem * ) &( pxList->xListEnd );
   \   00000C   0F4C         MOV.W   R12, R15
   \   00000E   2F52         ADD.W   #0x4, R15
   \   000010   8C4F0600     MOV.W   R15, 0x6(R12)
     98          	pxList->xListEnd.pxPrevious = ( xListItem * ) &( pxList->xListEnd );
   \   000014   0F4C         MOV.W   R12, R15
   \   000016   2F52         ADD.W   #0x4, R15
   \   000018   8C4F0800     MOV.W   R15, 0x8(R12)
     99          
    100          	pxList->uxNumberOfItems = 0;
   \   00001C   8C430000     MOV.W   #0x0, 0(R12)
    101          }
   \   000020   3041         RET
    102          /*-----------------------------------------------------------*/
    103          

   \                                 In segment CODE, align 2
    104          void vListInitialiseItem( xListItem *pxItem )
   \                     vListInitialiseItem:
    105          {
    106          	/* Make sure the list item is not recorded as being on a list. */
    107          	pxItem->pvContainer = NULL;
   \   000000   8C430800     MOV.W   #0x0, 0x8(R12)
    108          }
   \   000004   3041         RET
    109          /*-----------------------------------------------------------*/
    110          

   \                                 In segment CODE, align 2
    111          void vListInsertEnd( xList *pxList, xListItem *pxNewListItem )
   \                     vListInsertEnd:
    112          {
    113          volatile xListItem * pxIndex;
    114          
    115          	/* Insert a new list item into pxList, but rather than sort the list,
    116          	makes the new list item the last item to be removed by a call to
    117          	pvListGetOwnerOfNextEntry.  This means it has to be the item pointed to by
    118          	the pxIndex member. */

⌨️ 快捷键说明

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