亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? list.c

?? freescale k40/k60 freertos-uip 例程
?? C
字號:
/*
    FreeRTOS V6.0.4 - Copyright (C) 2010 Real Time Engineers Ltd.

    ***************************************************************************
    *                                                                         *
    * If you are:                                                             *
    *                                                                         *
    *    + New to FreeRTOS,                                                   *
    *    + Wanting to learn FreeRTOS or multitasking in general quickly       *
    *    + Looking for basic training,                                        *
    *    + Wanting to improve your FreeRTOS skills and productivity           *
    *                                                                         *
    * then take a look at the FreeRTOS eBook                                  *
    *                                                                         *
    *        "Using the FreeRTOS Real Time Kernel - a Practical Guide"        *
    *                  http://www.FreeRTOS.org/Documentation                  *
    *                                                                         *
    * A pdf reference manual is also available.  Both are usually delivered   *
    * to your inbox within 20 minutes to two hours when purchased between 8am *
    * and 8pm GMT (although please allow up to 24 hours in case of            *
    * exceptional circumstances).  Thank you for your support!                *
    *                                                                         *
    ***************************************************************************

    This file is part of the FreeRTOS distribution.

    FreeRTOS is free software; you can redistribute it and/or modify it under
    the terms of the GNU General Public License (version 2) as published by the
    Free Software Foundation AND MODIFIED BY the FreeRTOS exception.
    ***NOTE*** The exception to the GPL is included to allow you to distribute
    a combined work that includes FreeRTOS without being obliged to provide the
    source code for proprietary components outside of the FreeRTOS kernel.
    FreeRTOS is distributed in the hope that it will be useful, but WITHOUT
    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
    more details. You should have received a copy of the GNU General Public 
    License and the FreeRTOS license exception along with FreeRTOS; if not it 
    can be viewed here: http://www.freertos.org/a00114.html and also obtained 
    by writing to Richard Barry, contact details for whom are available on the
    FreeRTOS WEB site.

    1 tab == 4 spaces!

    http://www.FreeRTOS.org - Documentation, latest information, license and
    contact details.

    http://www.SafeRTOS.com - A version that is certified for use in safety
    critical systems.

    http://www.OpenRTOS.com - Commercial support, development, porting,
    licensing and training services.
*/


#include <stdlib.h>
#include "FreeRTOS.h"
#include "list.h"

/*-----------------------------------------------------------
 * PUBLIC LIST API documented in list.h
 *----------------------------------------------------------*/

void vListInitialise( xList *pxList )
{
	/* The list structure contains a list item which is used to mark the
	end of the list.  To initialise the list the list end is inserted
	as the only list entry. */
	pxList->pxIndex = ( xListItem * ) &( pxList->xListEnd );

	/* The list end value is the highest possible value in the list to
	ensure it remains at the end of the list. */
	pxList->xListEnd.xItemValue = portMAX_DELAY;

	/* The list end next and previous pointers point to itself so we know
	when the list is empty. */
	pxList->xListEnd.pxNext = ( xListItem * ) &( pxList->xListEnd );
	pxList->xListEnd.pxPrevious = ( xListItem * ) &( pxList->xListEnd );

	pxList->uxNumberOfItems = 0;
}
/*-----------------------------------------------------------*/

void vListInitialiseItem( xListItem *pxItem )
{
	/* Make sure the list item is not recorded as being on a list. */
	pxItem->pvContainer = NULL;
}
/*-----------------------------------------------------------*/

void vListInsertEnd( xList *pxList, xListItem *pxNewListItem )
{
volatile xListItem * pxIndex;

	/* Insert a new list item into pxList, but rather than sort the list,
	makes the new list item the last item to be removed by a call to
	pvListGetOwnerOfNextEntry.  This means it has to be the item pointed to by
	the pxIndex member. */
	pxIndex = pxList->pxIndex;

	pxNewListItem->pxNext = pxIndex->pxNext;
	pxNewListItem->pxPrevious = pxList->pxIndex;
	pxIndex->pxNext->pxPrevious = ( volatile xListItem * ) pxNewListItem;
	pxIndex->pxNext = ( volatile xListItem * ) pxNewListItem;
	pxList->pxIndex = ( volatile xListItem * ) pxNewListItem;

	/* Remember which list the item is in. */
	pxNewListItem->pvContainer = ( void * ) pxList;

	( pxList->uxNumberOfItems )++;
}
/*-----------------------------------------------------------*/

void vListInsert( xList *pxList, xListItem *pxNewListItem )
{
volatile xListItem *pxIterator;
portTickType xValueOfInsertion;

	/* Insert the new list item into the list, sorted in ulListItem order. */
	xValueOfInsertion = pxNewListItem->xItemValue;

	/* If the list already contains a list item with the same item value then
	the new list item should be placed after it.  This ensures that TCB's which
	are stored in ready lists (all of which have the same ulListItem value)
	get an equal share of the CPU.  However, if the xItemValue is the same as 
	the back marker the iteration loop below will not end.  This means we need
	to guard against this by checking the value first and modifying the 
	algorithm slightly if necessary. */
	if( xValueOfInsertion == portMAX_DELAY )
	{
		pxIterator = pxList->xListEnd.pxPrevious;
	}
	else
	{
		/* *** NOTE ***********************************************************
		If you find your application is crashing here then likely causes are:
			1) Stack overflow - 
			   see http://www.freertos.org/Stacks-and-stack-overflow-checking.html
			2) Incorrect interrupt priority assignment, especially on Cortex M3 
			   parts where numerically high priority values denote low actual 
			   interrupt priories, which can seem counter intuitive.  See 
			   configMAX_SYSCALL_INTERRUPT_PRIORITY on http://www.freertos.org/a00110.html
			3) Calling an API function from within a critical section or when
			   the scheduler is suspended.
			4) Using a queue or semaphore before it has been initialised or
			   before the scheduler has been started (are interrupts firing
			   before vTaskStartScheduler() has been called?).
		See http://www.freertos.org/FAQHelp.html for more tips. 
		**********************************************************************/
		
		for( pxIterator = ( xListItem * ) &( pxList->xListEnd ); pxIterator->pxNext->xItemValue <= xValueOfInsertion; pxIterator = pxIterator->pxNext )
		{
			/* There is nothing to do here, we are just iterating to the
			wanted insertion position. */
		}
	}

	pxNewListItem->pxNext = pxIterator->pxNext;
	pxNewListItem->pxNext->pxPrevious = ( volatile xListItem * ) pxNewListItem;
	pxNewListItem->pxPrevious = pxIterator;
	pxIterator->pxNext = ( volatile xListItem * ) pxNewListItem;

	/* Remember which list the item is in.  This allows fast removal of the
	item later. */
	pxNewListItem->pvContainer = ( void * ) pxList;

	( pxList->uxNumberOfItems )++;
}
/*-----------------------------------------------------------*/

void vListRemove( xListItem *pxItemToRemove )
{
xList * pxList;

	pxItemToRemove->pxNext->pxPrevious = pxItemToRemove->pxPrevious;
	pxItemToRemove->pxPrevious->pxNext = pxItemToRemove->pxNext;
	
	/* The list item knows which list it is in.  Obtain the list from the list
	item. */
	pxList = ( xList * ) pxItemToRemove->pvContainer;

	/* Make sure the index is left pointing to a valid item. */
	if( pxList->pxIndex == pxItemToRemove )
	{
		pxList->pxIndex = pxItemToRemove->pxPrevious;
	}

	pxItemToRemove->pvContainer = NULL;
	( pxList->uxNumberOfItems )--;
}
/*-----------------------------------------------------------*/

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
在线亚洲人成电影网站色www| 久久久久亚洲综合| 精品久久久久久久久久久院品网 | 国产精品女主播av| 日韩电影在线观看一区| 91麻豆免费看片| 2020国产精品| 免费看欧美美女黄的网站| 99re6这里只有精品视频在线观看 99re8在线精品视频免费播放 | 奇米在线7777在线精品| 色综合天天综合网天天狠天天| 日韩精品中文字幕在线一区| 亚洲国产欧美在线| 色婷婷久久久亚洲一区二区三区| 欧美精彩视频一区二区三区| 久久国产欧美日韩精品| 欧美一区二区免费视频| 亚洲狠狠爱一区二区三区| 99re这里只有精品首页| 国产精品久久久久aaaa| 高清国产一区二区三区| 精品久久久久久无| 激情综合色播五月| 日韩精品一区二区三区四区| 日本不卡免费在线视频| 91精品国产综合久久精品麻豆 | 欧美性猛交一区二区三区精品| 国产精品―色哟哟| 成人午夜激情视频| 亚洲国产成人一区二区三区| 国产麻豆精品在线| 国产日韩综合av| 国产黄色91视频| 欧美激情艳妇裸体舞| 国产成人精品影院| 国产精品乱码人人做人人爱| 国产成人av网站| 国产女同性恋一区二区| 国产成人自拍网| 国产精品传媒在线| 色婷婷久久99综合精品jk白丝| 亚洲一区二区三区爽爽爽爽爽| 久久精品水蜜桃av综合天堂| 国产精品一区二区果冻传媒| 国产精品网站在线观看| 色婷婷av一区二区三区大白胸| 亚洲大片一区二区三区| 日韩一区二区三区观看| 国产麻豆视频精品| 亚洲三级在线观看| 日韩一区二区影院| 成人黄色电影在线| 亚洲第一久久影院| 久久众筹精品私拍模特| 91在线精品一区二区| 亚洲va国产天堂va久久en| 欧美一区午夜视频在线观看| 国产成人一级电影| 亚洲一区二区三区在线看| 欧美精品日韩综合在线| 国产剧情一区二区三区| 亚洲综合无码一区二区| 欧美一区二区三区男人的天堂| 国产精选一区二区三区| 樱花草国产18久久久久| www国产成人| 在线观看欧美黄色| 国产在线不卡一区| 亚洲乱码一区二区三区在线观看| 91精品国产乱码久久蜜臀| 国产成人一区在线| 日本vs亚洲vs韩国一区三区二区 | 国产一区美女在线| 一区二区三区在线高清| 欧美高清dvd| www.日韩精品| 极品少妇xxxx偷拍精品少妇| 亚洲女人****多毛耸耸8| 精品精品国产高清a毛片牛牛 | 精品一区二区三区视频在线观看 | 免费人成网站在线观看欧美高清| 中国av一区二区三区| 欧美精品一级二级三级| 91小视频免费观看| 国产一区在线观看麻豆| 美国十次综合导航| 亚洲国产人成综合网站| 亚洲欧洲精品一区二区精品久久久 | 久久久久国产免费免费| 欧美男生操女生| 91在线小视频| 不卡视频一二三| 国产精品123| 卡一卡二国产精品| 天天色图综合网| 亚洲一区二区三区影院| 自拍偷在线精品自拍偷无码专区| 久久久五月婷婷| 欧美精品一区在线观看| 日韩美女主播在线视频一区二区三区| 日本国产一区二区| 91免费观看在线| 不卡一二三区首页| 成人黄色av电影| 成人小视频免费观看| 国产麻豆视频精品| 国产乱子轮精品视频| 国产一区二区福利| 国产精品一区二区在线看| 国产乱人伦偷精品视频不卡| 国内精品久久久久影院一蜜桃| 美脚の诱脚舐め脚责91 | 青娱乐精品视频| 日本视频在线一区| 久热成人在线视频| 91精品国产综合久久精品图片| 日韩精品专区在线影院重磅| 在线观看不卡视频| 欧美亚洲国产一区二区三区va| 97精品久久久久中文字幕 | 狠狠色2019综合网| 国产又黄又大久久| 国产成人超碰人人澡人人澡| 成人app在线观看| 在线观看精品一区| 欧美丰满一区二区免费视频 | 欧美日韩国产系列| 欧美一区二区视频在线观看 | 国产一区二区三区免费看| 国产成人在线视频网址| 丰满岳乱妇一区二区三区| 99久久婷婷国产综合精品电影| 99九九99九九九视频精品| 91黄色小视频| 91麻豆精品国产自产在线观看一区| 欧美午夜理伦三级在线观看| 日韩一区二区三区av| 久久久久久久久久美女| 1000部国产精品成人观看| 亚洲狠狠丁香婷婷综合久久久| 午夜久久久久久| 国产美女精品一区二区三区| 99久久er热在这里只有精品66| 欧美影院午夜播放| 亚洲精品一线二线三线无人区| 欧美国产亚洲另类动漫| 亚洲午夜久久久久久久久电影网 | 亚洲一区二区偷拍精品| 免费观看成人av| 9人人澡人人爽人人精品| 欧美三电影在线| 久久精品人人做| 视频一区中文字幕| 成人一区二区三区| 欧美精品久久99久久在免费线 | 中文字幕成人在线观看| 亚洲自拍偷拍欧美| 国产在线麻豆精品观看| 欧美亚洲国产bt| 欧美激情中文不卡| 亚洲一区二区av电影| 国产福利精品导航| 宅男噜噜噜66一区二区66| 国产精品久久久久久久裸模| 日本人妖一区二区| 色综合天天综合给合国产| 精品国产麻豆免费人成网站| 综合电影一区二区三区| 国产不卡视频在线观看| 4438x成人网最大色成网站| 综合色中文字幕| 国产一区二区日韩精品| 制服丝袜亚洲播放| 亚洲激情五月婷婷| 国产69精品久久久久毛片| 精品盗摄一区二区三区| 亚洲chinese男男1069| 91在线观看视频| 欧美国产日韩a欧美在线观看| 日本一不卡视频| 7799精品视频| 亚洲一区免费视频| 色婷婷av久久久久久久| 国产精品久久久久婷婷二区次| 精品一区二区三区在线观看国产| 欧美午夜视频网站| 亚洲一区二区三区四区在线| 91亚洲国产成人精品一区二区三| 中文字幕欧美国产| 国产在线视频一区二区| 日韩精品一区二区在线观看| 婷婷国产在线综合| 欧美日韩mp4| 亚洲自拍偷拍综合| 欧美日韩大陆一区二区| 亚洲国产欧美在线| 欧美久久一二三四区| 亚洲成av人片一区二区三区| 欧美在线免费视屏| 亚洲成人免费观看|