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

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

?? queue.h

?? mc9s08gb在ucos移植源碼.太難找了
?? H
?? 第 1 頁 / 共 2 頁
字號:
/*
	FreeRTOS V3.2.0 - Copyright (C) 2003 - 2005 Richard Barry.

	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 as published by
	the Free Software Foundation; either version 2 of the License, or
	(at your option) any later version.

	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
	along with FreeRTOS; 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, 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.
	***************************************************************************
*/

#ifndef QUEUE_H
#define QUEUE_H

typedef void * xQueueHandle;

/**
 * queue. h
 * <pre>
 * xQueueHandle xQueueCreate( 
 *                            unsigned portBASE_TYPE uxQueueLength, 
 *                            unsigned portBASE_TYPE uxItemSize 
 *                          );
 * </pre>
 *
 * Creates a new queue instance.  This allocates the storage required by the
 * new queue and returns a handle for the queue.
 *
 * @param uxQueueLength The maximum number of items that the queue can contain.
 *
 * @param uxItemSize The number of bytes each item in the queue will require.  
 * Items are queued by copy, not by reference, so this is the number of bytes
 * that will be copied for each posted item.  Each item on the queue must be
 * the same size.
 *
 * @return If the queue is successfully create then a handle to the newly 
 * created queue is returned.  If the queue cannot be created then 0 is
 * returned.
 * 
 * Example usage:
   <pre>
 struct AMessage
 {
    portCHAR ucMessageID;
    portCHAR ucData[ 20 ];
 };

 void vATask( void *pvParameters )
 {
 xQueueHandle xQueue1, xQueue2;

    // Create a queue capable of containing 10 unsigned long values.
    xQueue1 = xQueueCreate( 10, sizeof( unsigned portLONG ) );
    if( xQueue1 == 0 )
    {
        // Queue was not created and must not be used.
    }

    // Create a queue capable of containing 10 pointers to AMessage structures.
    // These should be passed by pointer as they contain a lot of data.
    xQueue2 = xQueueCreate( 10, sizeof( struct AMessage * ) );
    if( xQueue2 == 0 )
    {
        // Queue was not created and must not be used.
    }

    // ... Rest of task code.
 }
 </pre>
 * \defgroup xQueueCreate xQueueCreate
 * \ingroup QueueManagement
 */
xQueueHandle xQueueCreate( unsigned portBASE_TYPE uxQueueLength, unsigned portBASE_TYPE uxItemSize );

/**
 * queue. h
 * <pre>
 * portBASE_TYPE xQueueSend( 
 *								xQueueHandle xQueue, 
 *								const void * pvItemToQueue, 
 *								portTickType xTicksToWait 
 *							);
 * </pre>
 *
 * Post an item on a queue.  The item is queued by copy, not by reference.
 * This function must not be called from an interrupt service routine.
 * See xQueueSendFromISR () for an alternative which may be used in an ISR.
 *
 * @param xQueue The handle to the queue on which the item is to be posted.
 * 
 * @param pvItemToQueue A pointer to the item that is to be placed on the 
 * queue.  The size of the items the queue will hold was defined when the
 * queue was created, so this many bytes will be copied from pvItemToQueue
 * into the queue storage area.
 *
 * @param xTicksToWait The maximum amount of time the task should block
 * waiting for space to become available on the queue, should it already
 * be full.  The call will return immediately if this is set to 0.  The
 * time is defined in tick periods so the constant portTICK_RATE_MS 
 * should be used to convert to real time if this is required.
 *
 * @return pdTRUE if the item was successfully posted, otherwise errQUEUE_FULL.
 *
 * Example usage:
   <pre>
 struct AMessage
 {
    portCHAR ucMessageID;
    portCHAR ucData[ 20 ];
 } xMessage;

 unsigned portLONG ulVar = 10UL;

 void vATask( void *pvParameters )
 {
 xQueueHandle xQueue1, xQueue2;
 struct AMessage *pxMessage;

    // Create a queue capable of containing 10 unsigned long values.
    xQueue1 = xQueueCreate( 10, sizeof( unsigned portLONG ) );

    // Create a queue capable of containing 10 pointers to AMessage structures.
    // These should be passed by pointer as they contain a lot of data.
    xQueue2 = xQueueCreate( 10, sizeof( struct AMessage * ) );

    // ...

    if( xQueue1 != 0 )
    {
        // Send an unsigned long.  Wait for 10 ticks for space to become 
        // available if necessary.
        if( xQueueSend( xQueue1, ( void * ) &ulVar, ( portTickType ) 10 ) != pdPASS )
        {
            // Failed to post the message, even after 10 ticks.
        }
    }

    if( xQueue2 != 0 )
    {
        // Send a pointer to a struct AMessage object.  Don't block if the
        // queue is already full.
        pxMessage = & xMessage;
        xQueueSend( xQueue2, ( void * ) &pxMessage, ( portTickType ) 0 );
    }

	// ... Rest of task code.
 }
 </pre>
 * \defgroup xQueueSend xQueueSend
 * \ingroup QueueManagement
 */
signed portBASE_TYPE xQueueSend( xQueueHandle xQueue, const void * pvItemToQueue, portTickType xTicksToWait );

/**
 * queue. h
 * <pre>
 * portBASE_TYPE xQueueReceive( 
 *                              xQueueHandle xQueue, 
 *                              void *pcBuffer, 
 *                              portTickType xTicksToWait 
 *                            );</pre>
 *
 * Receive an item from a queue.  The item is received by copy so a buffer of 
 * adequate size must be provided.  The number of bytes copied into the buffer
 * was defined when the queue was created.
 *
 * This function must not be used in an interrupt service routine.  See
 * xQueueReceiveFromISR for an alternative that can.
 *
 * @param pxQueue The handle to the queue from which the item is to be
 * received.
 *
 * @param pcBuffer Pointer to the buffer into which the received item will
 * be copied.
 * 
 * @param xTicksToWait The maximum amount of time the task should block
 * waiting for an item to receive should the queue be empty at the time
 * of the call.    The time is defined in tick periods so the constant 
 * portTICK_RATE_MS should be used to convert to real time if this is required.
 *
 * @return pdTRUE if an item was successfully received from the queue,
 * otherwise pdFALSE.
 *
 * Example usage:
   <pre>
 struct AMessage
 {
    portCHAR ucMessageID;
    portCHAR ucData[ 20 ];
 } xMessage;

 xQueueHandle xQueue;
 
 // Task to create a queue and post a value.
 void vATask( void *pvParameters )
 {
 struct AMessage *pxMessage;

    // Create a queue capable of containing 10 pointers to AMessage structures.
    // These should be passed by pointer as they contain a lot of data.
    xQueue = xQueueCreate( 10, sizeof( struct AMessage * ) );
    if( xQueue == 0 )
    {
        // Failed to create the queue.
    }

    // ...

    // Send a pointer to a struct AMessage object.  Don't block if the

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲午夜羞羞片| 欧美一区午夜视频在线观看| 美女在线一区二区| 2017欧美狠狠色| 3d动漫精品啪啪1区2区免费| 色哟哟一区二区三区| 国产白丝网站精品污在线入口| 久久精品国产亚洲a| 一区二区三区免费在线观看| 亚洲欧洲日产国码二区| 久久精品一区二区三区不卡牛牛 | 在线电影一区二区三区| 99久久精品一区| 在线播放91灌醉迷j高跟美女 | 亚洲欧洲综合另类| 日韩理论在线观看| 自拍偷在线精品自拍偷无码专区| 国产精品久久久久久亚洲毛片 | 亚洲h动漫在线| 亚洲国产精品成人综合| 欧美国产欧美综合| 欧美xxxxx裸体时装秀| 国产成人综合在线播放| 97se狠狠狠综合亚洲狠狠| 91福利视频在线| 日韩一级片在线播放| 国产无一区二区| 亚洲国产精品久久久久秋霞影院| 蜜臀av性久久久久蜜臀av麻豆| 国产一区二区三区四区五区入口| 99久久国产综合精品麻豆| 3atv一区二区三区| 国产区在线观看成人精品| 亚洲成a人片综合在线| 极品美女销魂一区二区三区| 色一区在线观看| 精品捆绑美女sm三区| 一区二区在线免费| 国产精品系列在线观看| 欧美日韩在线播放三区四区| 久久久国产精华| 日韩高清在线不卡| 91在线播放网址| 国产视频一区在线播放| 亚洲日本一区二区| 精品在线免费观看| 91免费视频网址| 国产亚洲精品aa| 免费人成精品欧美精品| 久久久国产午夜精品| 亚洲精品第1页| 韩国视频一区二区| 欧美日韩一级视频| 亚洲美女免费在线| 懂色av一区二区三区蜜臀| 日韩精品一区二区三区视频| 一区二区在线免费观看| 99精品欧美一区| 中文字幕av不卡| 国产精品资源网站| 精品久久免费看| 美国十次综合导航| 日韩欧美自拍偷拍| 美女尤物国产一区| 精品久久久久一区| 久久精品99国产国产精| 日韩免费电影网站| 全国精品久久少妇| 日韩欧美精品在线| 依依成人综合视频| 国产成人aaaa| 日韩一级视频免费观看在线| 亚洲午夜电影在线观看| 日本精品裸体写真集在线观看 | 精品欧美一区二区三区精品久久| 亚洲国产精品一区二区久久| 欧美三级韩国三级日本三斤| 亚洲国产sm捆绑调教视频 | 欧美日本乱大交xxxxx| 一区二区三区国产| 欧美日韩一区二区三区视频| 午夜精品久久一牛影视| 欧美一级黄色大片| 国产精品亚洲第一区在线暖暖韩国| 久久久国产精品午夜一区ai换脸| 岛国精品在线播放| 亚洲欧洲综合另类| 91麻豆精品91久久久久久清纯| 天天色综合天天| 久久久久久久性| 91蜜桃网址入口| 日韩av在线免费观看不卡| 精品国免费一区二区三区| 国产成人在线电影| 亚洲综合在线第一页| 在线不卡一区二区| 国产精品主播直播| 亚洲精品欧美在线| 欧美一区日本一区韩国一区| 激情图片小说一区| 亚洲同性gay激情无套| 正在播放一区二区| 成熟亚洲日本毛茸茸凸凹| 国产精品久久久久久久午夜片| 欧美系列一区二区| 国产一区二区三区最好精华液| 中文字幕在线不卡一区二区三区| 欧美日韩国产三级| 国产精品亚洲第一区在线暖暖韩国| 综合激情成人伊人| www国产亚洲精品久久麻豆| 99re热视频这里只精品| 日本伊人精品一区二区三区观看方式 | 中文字幕一区二区三| 欧美日韩午夜精品| 伊人夜夜躁av伊人久久| 2019国产精品| 欧美老女人在线| 91精品国产免费| 色屁屁一区二区| 国产高清精品久久久久| 亚洲成人精品在线观看| 欧美国产成人在线| 欧美精品一区二区三区久久久 | 精品一区二区三区av| 亚洲精品国产一区二区精华液| 精品美女被调教视频大全网站| 欧美在线免费观看亚洲| 成人伦理片在线| 国产乱码字幕精品高清av| 奇米色一区二区| 亚洲综合在线免费观看| 国产精品久久毛片| 久久久久久久久久久久电影| 日韩精品一区二区三区视频在线观看| 欧美色窝79yyyycom| 91啪亚洲精品| 波多野结衣中文字幕一区| 国产在线播放一区| 久99久精品视频免费观看| 婷婷国产在线综合| 亚洲成人综合视频| 亚洲一区在线观看免费| 亚洲综合久久久久| 亚洲高清三级视频| 五月天欧美精品| 亚洲.国产.中文慕字在线| 亚洲国产成人tv| 午夜精品福利一区二区三区蜜桃| 一区二区三区四区在线播放| 亚洲免费观看高清完整版在线| 国产三级精品视频| 国产亚洲成av人在线观看导航| 久久久久久久久蜜桃| 亚洲国产经典视频| 亚洲丝袜制服诱惑| 一区二区免费在线播放| 国产成人小视频| 不卡一区二区三区四区| 99久久国产综合精品色伊| 91国偷自产一区二区使用方法| 99re66热这里只有精品3直播| 97久久人人超碰| 欧美日韩久久久久久| 欧美成人精品二区三区99精品| 久久夜色精品国产欧美乱极品| 久久久精品国产免大香伊| 欧美国产精品一区| 亚洲第一福利视频在线| 蜜臀av一区二区在线免费观看| 国产一区欧美一区| 92国产精品观看| 555www色欧美视频| 久久久久97国产精华液好用吗| 国产精品久久福利| 亚洲国产欧美在线| 国产一区二区三区香蕉| 色拍拍在线精品视频8848| 91精品麻豆日日躁夜夜躁| 久久久噜噜噜久久中文字幕色伊伊| 国产精品伦一区| 性久久久久久久久久久久| 国产精品中文欧美| 欧美在线视频全部完| 26uuu精品一区二区三区四区在线| 欧美亚一区二区| 国产精品一区二区果冻传媒| av综合在线播放| 欧美福利电影网| 国产精品亲子乱子伦xxxx裸| 午夜精品一区二区三区三上悠亚| 国产精品影音先锋| 欧美日韩午夜影院| 国产精品进线69影院| 麻豆极品一区二区三区| 91啪亚洲精品| 欧美激情自拍偷拍| 理论片日本一区| 欧美色精品在线视频| 一区二区中文视频|