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

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

?? list.h

?? Modbus協議的源代碼 Modbus協議的源代碼、 Modbus協議的源代碼 Modbus協議的源代碼
?? H
字號:
/*

	FreeRTOS.org V4.1.1 - Copyright (C) 2003-2006 Richard Barry.



	This file is part of the FreeRTOS.org distribution.



	FreeRTOS.org is free software; you can redistribute it and/or modify

	it under the terms of the GNU General Public License as published by

	the Free Software Foundation; either version 2 of the License, or

	(at your option) any later version.



	FreeRTOS.org 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

	along with FreeRTOS.org; if not, write to the Free Software

	Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA



	A special exception to the GPL can be applied should you wish to distribute

	a combined work that includes FreeRTOS.org, without being obliged to provide

	the source code for any proprietary components.  See the licensing section

	of http://www.FreeRTOS.org for full details of how and when the exception

	can be applied.



	***************************************************************************

	See http://www.FreeRTOS.org for documentation, latest information, license

	and contact details.  Please ensure to read the configuration and relevant

	port sections of the online documentation.

	***************************************************************************

*/



/*

 * This is the list implementation used by the scheduler.  While it is tailored

 * heavily for the schedulers needs, it is also available for use by

 * application code.

 *

 * xLists can only store pointers to xListItems.  Each xListItem contains a

 * numeric value (xItemValue).  Most of the time the lists are sorted in

 * descending item value order.

 *

 * Lists are created already containing one list item.  The value of this

 * item is the maximum possible that can be stored, it is therefore always at

 * the end of the list and acts as a marker.  The list member pxHead always

 * points to this marker - even though it is at the tail of the list.  This

 * is because the tail contains a wrap back pointer to the true head of

 * the list.

 *

 * In addition to it's value, each list item contains a pointer to the next

 * item in the list (pxNext), a pointer to the list it is in (pxContainer)

 * and a pointer to back to the object that contains it.  These later two

 * pointers are included for efficiency of list manipulation.  There is

 * effectively a two way link between the object containing the list item and

 * the list item itself.

 *

 *

 * \page ListIntroduction List Implementation

 * \ingroup FreeRTOSIntro

 */





#ifndef LIST_H

#define LIST_H



/*

 * Definition of the only type of object that a list can contain.

 */

struct xLIST_ITEM

{

	portTickType xItemValue;				/*< The value being listed.  In most cases this is used to sort the list in descending order. */

	volatile struct xLIST_ITEM * pxNext;	/*< Pointer to the next xListItem in the list. */

	volatile struct xLIST_ITEM * pxPrevious;/*< Pointer to the previous xListItem in the list. */

	void * pvOwner;							/*< Pointer to the object (normally a TCB) that contains the list item.  There is therefore a two way link between the object containing the list item and the list item itself. */

	void * pvContainer;						/*< Pointer to the list in which this list item is placed (if any). */

};

typedef struct xLIST_ITEM xListItem;		/* For some reason lint wants this as two separate definitions. */



struct xMINI_LIST_ITEM

{

	portTickType xItemValue;

	volatile struct xLIST_ITEM *pxNext;

	volatile struct xLIST_ITEM *pxPrevious;

};

typedef struct xMINI_LIST_ITEM xMiniListItem;



/*

 * Definition of the type of queue used by the scheduler.

 */

typedef struct xLIST

{

	volatile unsigned portBASE_TYPE uxNumberOfItems;

	volatile xListItem * pxIndex;			/*< Used to walk through the list.  Points to the last item returned by a call to pvListGetOwnerOfNextEntry (). */

	volatile xMiniListItem xListEnd;		/*< List item that contains the maximum possible item value meaning it is always at the end of the list and is therefore used as a marker. */

} xList;



/*

 * Access macro to set the owner of a list item.  The owner of a list item

 * is the object (usually a TCB) that contains the list item.

 *

 * \page listSET_LIST_ITEM_OWNER listSET_LIST_ITEM_OWNER

 * \ingroup LinkedList

 */

#define listSET_LIST_ITEM_OWNER( pxListItem, pxOwner )		( pxListItem )->pvOwner = ( void * ) pxOwner



/*

 * Access macro to set the value of the list item.  In most cases the value is

 * used to sort the list in descending order.

 *

 * \page listSET_LIST_ITEM_VALUE listSET_LIST_ITEM_VALUE

 * \ingroup LinkedList

 */

#define listSET_LIST_ITEM_VALUE( pxListItem, xValue )		( pxListItem )->xItemValue = xValue



/*

 * Access macro the retrieve the value of the list item.  The value can

 * represent anything - for example a the priority of a task, or the time at

 * which a task should be unblocked.

 *

 * \page listGET_LIST_ITEM_VALUE listGET_LIST_ITEM_VALUE

 * \ingroup LinkedList

 */

#define listGET_LIST_ITEM_VALUE( pxListItem )				( ( pxListItem )->xItemValue )



/*

 * Access macro to determine if a list contains any items.  The macro will

 * only have the value true if the list is empty.

 *

 * \page listLIST_IS_EMPTY listLIST_IS_EMPTY

 * \ingroup LinkedList

 */

#define listLIST_IS_EMPTY( pxList )				( ( pxList )->uxNumberOfItems == ( unsigned portBASE_TYPE ) 0 )



/*

 * Access macro to return the number of items in the list.

 */

#define listCURRENT_LIST_LENGTH( pxList )		( ( pxList )->uxNumberOfItems )



/*

 * Access function to obtain the owner of the next entry in a list.

 *

 * The list member pxIndex is used to walk through a list.  Calling

 * listGET_OWNER_OF_NEXT_ENTRY increments pxIndex to the next item in the list

 * and returns that entries pxOwner parameter.  Using multiple calls to this

 * function it is therefore possible to move through every item contained in

 * a list.

 *

 * The pxOwner parameter of a list item is a pointer to the object that owns

 * the list item.  In the scheduler this is normally a task control block.

 * The pxOwner parameter effectively creates a two way link between the list

 * item and its owner.

 *

 * @param pxList The list from which the next item owner is to be returned.

 *

 * \page listGET_OWNER_OF_NEXT_ENTRY listGET_OWNER_OF_NEXT_ENTRY

 * \ingroup LinkedList

 */

#define listGET_OWNER_OF_NEXT_ENTRY( pxTCB, pxList )									\

	/* Increment the index to the next item and return the item, ensuring */			\

	/* we don't return the marker used at the end of the list.  */						\

	( pxList )->pxIndex = ( pxList )->pxIndex->pxNext;									\

	if( ( pxList )->pxIndex == ( xListItem * ) &( ( pxList )->xListEnd ) )				\

	{																					\

		( pxList )->pxIndex = ( pxList )->pxIndex->pxNext;								\

	}																					\

	pxTCB = ( pxList )->pxIndex->pvOwner





/*

 * Access function to obtain the owner of the first entry in a list.  Lists

 * are normally sorted in ascending item value order.

 *

 * This function returns the pxOwner member of the first item in the list.

 * The pxOwner parameter of a list item is a pointer to the object that owns

 * the list item.  In the scheduler this is normally a task control block.

 * The pxOwner parameter effectively creates a two way link between the list

 * item and its owner.

 *

 * @param pxList The list from which the owner of the head item is to be

 * returned.

 *

 * \page listGET_OWNER_OF_HEAD_ENTRY listGET_OWNER_OF_HEAD_ENTRY

 * \ingroup LinkedList

 */

#define listGET_OWNER_OF_HEAD_ENTRY( pxList )  ( ( pxList->uxNumberOfItems != ( unsigned portBASE_TYPE ) 0 ) ? ( (&( pxList->xListEnd ))->pxNext->pvOwner ) : ( NULL ) )



/*

 * Check to see if a list item is within a list.  The list item maintains a

 * "container" pointer that points to the list it is in.  All this macro does

 * is check to see if the container and the list match.

 *

 * @param pxList The list we want to know if the list item is within.

 * @param pxListItem The list item we want to know if is in the list.

 * @return pdTRUE is the list item is in the list, otherwise pdFALSE.

 * pointer against

 */

#define listIS_CONTAINED_WITHIN( pxList, pxListItem ) ( ( pxListItem )->pvContainer == ( void * ) pxList )



/*

 * Must be called before a list is used!  This initialises all the members

 * of the list structure and inserts the xListEnd item into the list as a

 * marker to the back of the list.

 *

 * @param pxList Pointer to the list being initialised.

 *

 * \page vListInitialise vListInitialise

 * \ingroup LinkedList

 */

void vListInitialise( xList *pxList );



/*

 * Must be called before a list item is used.  This sets the list container to

 * null so the item does not think that it is already contained in a list.

 *

 * @param pxItem Pointer to the list item being initialised.

 *

 * \page vListInitialiseItem vListInitialiseItem

 * \ingroup LinkedList

 */

void vListInitialiseItem( xListItem *pxItem );



/*

 * Insert a list item into a list.  The item will be inserted into the list in

 * a position determined by its item value (descending item value order).

 *

 * @param pxList The list into which the item is to be inserted.

 *

 * @param pxNewListItem The item to that is to be placed in the list.

 *

 * \page vListInsert vListInsert

 * \ingroup LinkedList

 */

void vListInsert( xList *pxList, xListItem *pxNewListItem );



/*

 * Insert a list item into a list.  The item will be inserted in a position

 * such that it will be the last item within the list returned by multiple

 * calls to listGET_OWNER_OF_NEXT_ENTRY.

 *

 * The list member pvIndex is used to walk through a list.  Calling

 * listGET_OWNER_OF_NEXT_ENTRY increments pvIndex to the next item in the list.

 * Placing an item in a list using vListInsertEnd effectively places the item

 * in the list position pointed to by pvIndex.  This means that every other

 * item within the list will be returned by listGET_OWNER_OF_NEXT_ENTRY before

 * the pvIndex parameter again points to the item being inserted.

 *

 * @param pxList The list into which the item is to be inserted.

 *

 * @param pxNewListItem The list item to be inserted into the list.

 *

 * \page vListInsertEnd vListInsertEnd

 * \ingroup LinkedList

 */

void vListInsertEnd( xList *pxList, xListItem *pxNewListItem );



/*

 * Remove an item from a list.  The list item has a pointer to the list that

 * it is in, so only the list item need be passed into the function.

 *

 * @param vListRemove The item to be removed.  The item will remove itself from

 * the list pointed to by it's pxContainer parameter.

 *

 * \page vListRemove vListRemove

 * \ingroup LinkedList

 */

void vListRemove( xListItem *pxItemToRemove );







#endif



?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲成人黄色影院| 秋霞国产午夜精品免费视频| 精品乱人伦一区二区三区| 8x福利精品第一导航| 欧美特级限制片免费在线观看| 9i看片成人免费高清| 91在线码无精品| 日本韩国一区二区三区| 日本电影欧美片| 欧美日韩成人综合天天影院| 欧美亚日韩国产aⅴ精品中极品| 91福利视频在线| 欧美日韩mp4| 日韩精品一区国产麻豆| 久久综合色之久久综合| 国产嫩草影院久久久久| 亚洲精品中文字幕乱码三区| 亚洲在线中文字幕| 美国av一区二区| 国产传媒日韩欧美成人| 色哟哟国产精品| 777色狠狠一区二区三区| 精品国产乱码久久久久久蜜臀| 久久久青草青青国产亚洲免观| 国产欧美日韩综合精品一区二区 | 一个色妞综合视频在线观看| 一区二区在线观看免费| 捆绑变态av一区二区三区| 成人天堂资源www在线| 欧美亚一区二区| 国产视频一区二区三区在线观看| 中文在线免费一区三区高中清不卡| 亚洲欧美一区二区三区极速播放| 亚洲6080在线| 大美女一区二区三区| 欧美中文字幕久久| 久久久91精品国产一区二区精品 | 亚洲精品五月天| 三级一区在线视频先锋| 国产 欧美在线| 欧美一区国产二区| 最近日韩中文字幕| 国产一区二区在线看| 在线观看91精品国产入口| 久久―日本道色综合久久| 亚洲图片有声小说| 国产麻豆精品在线观看| 欧美女孩性生活视频| 亚洲嫩草精品久久| 国产精品夜夜爽| 日韩一区二区麻豆国产| 一区二区三区中文字幕电影| 国产一区二区电影| 日韩一区二区免费视频| 亚洲午夜一二三区视频| 91免费看`日韩一区二区| 久久久久99精品国产片| 蜜桃av一区二区在线观看| 一本色道久久综合狠狠躁的推荐| 久久久久久免费毛片精品| 国产精品蜜臀av| 成人av在线看| 日本午夜一区二区| 色94色欧美sute亚洲线路一ni| 国产欧美一区二区精品性色超碰| 久久99精品国产.久久久久久| 欧美日韩美女一区二区| 一区二区三区日韩精品| 91在线看国产| 中文字幕一区二区视频| 北条麻妃国产九九精品视频| 久久精品一区二区三区四区| 韩国女主播一区| 精品成人佐山爱一区二区| 免费视频最近日韩| 日韩精品一区国产麻豆| 麻豆成人免费电影| 337p日本欧洲亚洲大胆色噜噜| 奇米影视一区二区三区| 日韩精品一区二区三区三区免费| 青青草精品视频| 欧美成人一区二区| 国产成人免费视| 亚洲欧洲日韩在线| 91啪亚洲精品| 婷婷久久综合九色国产成人| 337p亚洲精品色噜噜| 奇米色一区二区| 久久久激情视频| 99久久国产综合精品女不卡| 亚洲欧美日韩电影| 欧美日韩一区二区不卡| 美女尤物国产一区| 国产午夜亚洲精品羞羞网站| 国产91对白在线观看九色| 亚洲精选在线视频| 欧美久久久久久久久| 黄色日韩三级电影| 国产精品国产三级国产有无不卡| av高清久久久| 日韩主播视频在线| 国产欧美一区二区三区鸳鸯浴| 91猫先生在线| 精彩视频一区二区三区| 国产精品三级视频| 欧美特级限制片免费在线观看| 蜜臀av性久久久久蜜臀aⅴ| 国产三级精品三级在线专区| 色综合网色综合| 美女www一区二区| 国产精品国产馆在线真实露脸| 欧美亚洲国产一区二区三区va| 久久精品99国产国产精| 亚洲色欲色欲www| 欧美成人精品高清在线播放 | 亚洲欧洲www| 欧美伦理电影网| 99久久99久久精品国产片果冻| 五月天亚洲婷婷| 亚洲视频一区二区免费在线观看| 日韩一区二区视频在线观看| 高清在线不卡av| 精品亚洲免费视频| 婷婷夜色潮精品综合在线| 国产精品国产三级国产三级人妇| 欧美美女激情18p| 91麻豆国产在线观看| 国产一区在线观看视频| 首页亚洲欧美制服丝腿| 成人欧美一区二区三区白人| 久久久久久久综合日本| 欧美剧情电影在线观看完整版免费励志电影 | 国产欧美一二三区| 欧美一级片在线看| 欧美日韩一区不卡| 色哟哟一区二区| 国产精品一二三区| 国产一区二区在线免费观看| 免费成人深夜小野草| 亚洲一区二区3| 亚洲精品乱码久久久久久日本蜜臀| 久久亚洲精品小早川怜子| 欧美一二三区在线观看| 91福利精品视频| 一本色道**综合亚洲精品蜜桃冫| 国产精品18久久久久久久久 | 欧美国产日本韩| 久久综合中文字幕| 精品sm在线观看| 日韩精品一区二区在线观看| 日韩一区二区三区免费观看| 91麻豆精品国产91| 在线播放中文一区| 日韩欧美精品在线视频| 7777精品伊人久久久大香线蕉的| 欧美猛男gaygay网站| 欧美日韩一区二区三区免费看 | 久久午夜国产精品| 337p日本欧洲亚洲大胆色噜噜| 欧美精品一区男女天堂| www国产精品av| 国产婷婷色一区二区三区四区| 久久婷婷国产综合精品青草| 久久亚区不卡日本| 国产精品成人免费| 亚洲五月六月丁香激情| 首页综合国产亚洲丝袜| 激情六月婷婷综合| av资源站一区| 欧美三级视频在线| 26uuu精品一区二区在线观看| 久久久久久久久99精品| 自拍偷拍国产亚洲| 亚洲成人一区二区在线观看| 免费高清在线视频一区·| 国产精品白丝av| 色国产综合视频| 日韩视频免费直播| 欧美韩国日本一区| 亚洲第一二三四区| 九一九一国产精品| 色又黄又爽网站www久久| 欧美丰满美乳xxx高潮www| 2020日本不卡一区二区视频| 亚洲天堂精品在线观看| 日本一不卡视频| 粉嫩一区二区三区在线看| 欧美日韩国产乱码电影| 国产日韩亚洲欧美综合| 亚洲综合视频在线| 国产河南妇女毛片精品久久久| 一本大道久久a久久综合| 日韩欧美中文字幕公布| 国产精品成人免费在线| 开心九九激情九九欧美日韩精美视频电影 | 欧美一区二区三区在线电影| 欧美国产激情一区二区三区蜜月| 亚洲香蕉伊在人在线观| 丁香亚洲综合激情啪啪综合| 欧美日韩mp4|