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

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

?? queue.h

?? Este é um rtos free para a familia arm7
?? H
?? 第 1 頁 / 共 2 頁
字號:

 // Task to receive from the queue.
 void vADifferentTask( void *pvParameters )
 {
 struct AMessage *pxRxedMessage;

    if( xQueue != 0 )
    {
        // Receive a message on the created queue.  Block for 10 ticks if a
        // message is not immediately available.
        if( xQueueReceive( xQueue, &( pxRxedMessage ), ( portTickType ) 10 ) )
        {
            // pcRxedMessage now points to the struct AMessage variable posted
            // by vATask.
        }
    }

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

/**
 * queue. h
 * <pre>unsigned portBASE_TYPE uxQueueMessagesWaiting( xQueueHandle xQueue );</pre>
 *
 * Return the number of messages stored in a queue.
 *
 * @param xQueue A handle to the queue being queried.
 * 
 * @return The number of messages available in the queue.
 *
 * \page uxQueueMessagesWaiting uxQueueMessagesWaiting
 * \ingroup QueueManagement
 */
unsigned portBASE_TYPE uxQueueMessagesWaiting( xQueueHandle xQueue );

/**
 * queue. h
 * <pre>void vQueueDelete( xQueueHandle xQueue );</pre>
 *
 * Delete a queue - freeing all the memory allocated for storing of items
 * placed on the queue.
 * 
 * @param xQueue A handle to the queue to be deleted.
 *
 * \page vQueueDelete vQueueDelete
 * \ingroup QueueManagement
 */
void vQueueDelete( xQueueHandle xQueue );

/**
 * queue. h
 * <pre>
 portBASE_TYPE xQueueSendFromISR( 
                                    xQueueHandle pxQueue, 
                                    const void *pvItemToQueue, 
                                    portBASE_TYPE xTaskPreviouslyWoken 
                                );
 </pre>
 *
 * Post an item on a queue.  It is safe to use this function from within an
 * interrupt service routine.
 *
 * Items are queued by copy not reference so it is preferable to only
 * queue small items, especially when called from an ISR.  In most cases
 * it would be preferable to store a pointer to the item being queued.
 *
 * @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 cTaskPreviouslyWoken This is included so an ISR can post onto
 * the same queue multiple times from a single interrupt.  The first call
 * should always pass in pdFALSE.  Subsequent calls should pass in
 * the value returned from the previous call.  See the file serial .c in the
 * PC port for a good example of this mechanism.
 *
 * @return pdTRUE if a task was woken by posting onto the queue.  This is 
 * used by the ISR to determine if a context switch may be required following
 * the ISR.
 *
 * Example usage for buffered IO (where the ISR can obtain more than one value
 * per call):
   <pre>
 void vBufferISR( void )
 {
 portCHAR cIn;
 portBASE_TYPE xTaskWokenByPost;

    // We have not woken a task at the start of the ISR.
    cTaskWokenByPost = pdFALSE;

    // Loop until the buffer is empty.
    do
    {
        // Obtain a byte from the buffer.
        cIn = portINPUT_BYTE( RX_REGISTER_ADDRESS );						

        // Post the byte.  The first time round the loop cTaskWokenByPost
        // will be pdFALSE.  If the queue send causes a task to wake we do
        // not want the task to run until we have finished the ISR, so
        // xQueueSendFromISR does not cause a context switch.  Also we 
        // don't want subsequent posts to wake any other tasks, so we store
        // the return value back into cTaskWokenByPost so xQueueSendFromISR
        // knows not to wake any task the next iteration of the loop.
        xTaskWokenByPost = xQueueSendFromISR( xRxQueue, &cIn, cTaskWokenByPost );

    } while( portINPUT_BYTE( BUFFER_COUNT ) );

    // Now the buffer is empty we can switch context if necessary.
    if( cTaskWokenByPost )
    {
        taskYIELD ();
    }
 }
 </pre>
 *
 * \defgroup xQueueSendFromISR xQueueSendFromISR
 * \ingroup QueueManagement
 */
signed portBASE_TYPE xQueueSendFromISR( xQueueHandle pxQueue, const void *pvItemToQueue, signed portBASE_TYPE xTaskPreviouslyWoken );

/**
 * queue. h
 * <pre>
 portBASE_TYPE xQueueReceiveFromISR( 
                                       xQueueHandle pxQueue, 
                                       void *pvBuffer, 
                                       portBASE_TYPE *pxTaskWoken 
                                   ); 
 * </pre>
 *
 * Receive an item from a queue.  It is safe to use this function from within an
 * interrupt service routine.
 *
 * @param pxQueue The handle to the queue from which the item is to be
 * received.
 *
 * @param pvBuffer Pointer to the buffer into which the received item will
 * be copied.
 * 
 * @param pxTaskWoken A task may be blocked waiting for space to become
 * available on the queue.  If xQueueReceiveFromISR causes such a task to
 * unblock *pxTaskWoken will get set to pdTRUE, otherwise *pxTaskWoken will
 * remain unchanged.
 *
 * @return pdTRUE if an item was successfully received from the queue,
 * otherwise pdFALSE.
 *
 * Example usage:
   <pre>
 
 xQueueHandle xQueue;
 
 // Function to create a queue and post some values.
 void vAFunction( void *pvParameters )
 {
 portCHAR cValueToPost;
 const portTickType xBlockTime = ( portTickType )0xff;

    // Create a queue capable of containing 10 characters.
    xQueue = xQueueCreate( 10, sizeof( portCHAR ) );
    if( xQueue == 0 )
    {
        // Failed to create the queue.
    }

    // ...

    // Post some characters that will be used within an ISR.  If the queue
    // is full then this task will block for xBlockTime ticks.
    cValueToPost = 'a';
    xQueueSend( xQueue, ( void * ) &cValueToPost, xBlockTime );
    cValueToPost = 'b';
    xQueueSend( xQueue, ( void * ) &cValueToPost, xBlockTime );

    // ... keep posting characters ... this task may block when the queue
    // becomes full.

    cValueToPost = 'c';
    xQueueSend( xQueue, ( void * ) &cValueToPost, xBlockTime );
 }

 // ISR that outputs all the characters received on the queue. 
 void vISR_Routine( void )
 {
 portBASE_TYPE xTaskWokenByReceive = pdFALSE;
 portCHAR cRxedChar;

    while( xQueueReceiveFromISR( xQueue, ( void * ) &cRxedChar, &xTaskWokenByReceive) )
    {
        // A character was received.  Output the character now.
        vOutputCharacter( cRxedChar );

        // If removing the character from the queue woke the task that was 
        // posting onto the queue cTaskWokenByReceive will have been set to
        // pdTRUE.  No matter how many times this loop iterates only one
        // task will be woken.
    }

    if( cTaskWokenByPost != ( portCHAR ) pdFALSE;
    {
        taskYIELD ();
    }
 }
 </pre>
 * \defgroup xQueueReceiveFromISR xQueueReceiveFromISR
 * \ingroup QueueManagement
 */
signed portBASE_TYPE xQueueReceiveFromISR( xQueueHandle pxQueue, void *pvBuffer, signed portBASE_TYPE *pxTaskWoken );


/* 
 * The functions defined above are for passing data to and from tasks.  The 
 * functions below are the equivalents for passing data to and from 
 * co-rtoutines.
 *
 * These functions are called from the co-routine macro implementation and
 * should not be called directly from application code.  Instead use the macro
 * wrappers defined within croutine.h.
 */
signed portBASE_TYPE xQueueCRSendFromISR( xQueueHandle pxQueue, const void *pvItemToQueue, signed portBASE_TYPE xCoRoutinePreviouslyWoken );
signed portBASE_TYPE xQueueCRReceiveFromISR( xQueueHandle pxQueue, void *pvBuffer, signed portBASE_TYPE *pxTaskWoken );
signed portBASE_TYPE xQueueCRSend( xQueueHandle pxQueue, const void *pvItemToQueue, portTickType xTicksToWait );
signed portBASE_TYPE xQueueCRReceive( xQueueHandle pxQueue, void *pvBuffer, portTickType xTicksToWait );

#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲午夜免费福利视频| 93久久精品日日躁夜夜躁欧美| 国产成人亚洲精品狼色在线| 色婷婷国产精品综合在线观看| 日韩欧美国产wwwww| 国产精品久久精品日日| 日韩国产欧美在线观看| aa级大片欧美| 欧美激情综合五月色丁香小说| 三级一区在线视频先锋 | 色综合天天性综合| 日韩精品在线看片z| 亚洲精品一二三| 成人在线视频首页| www日韩大片| 奇米精品一区二区三区四区 | 日韩一区有码在线| 国产一区二区三区四区五区美女 | 日韩理论片在线| 国产精品一级二级三级| 欧美一区二区三区在线| 亚洲精选免费视频| 91老司机福利 在线| 欧美激情在线观看视频免费| 国产做a爰片久久毛片| 日韩久久精品一区| 青椒成人免费视频| 欧美一区二区视频在线观看2020| 亚洲成人免费影院| 欧美四级电影在线观看| 亚洲黄色小说网站| 欧美亚洲动漫精品| 亚洲一区二区三区四区在线免费观看 | 日日嗨av一区二区三区四区| 91福利资源站| 亚洲丰满少妇videoshd| 欧美在线观看一二区| 一区二区三区不卡视频| 欧美亚洲动漫精品| 日韩综合小视频| 欧美一区二区三区四区高清| 美国av一区二区| 精品久久久久久久久久久久久久久 | 1024精品合集| 日本高清成人免费播放| 亚洲成人在线免费| 日韩欧美一二三四区| 国产一区二区免费视频| 亚洲国产成人在线| 色偷偷88欧美精品久久久| 亚洲电影在线免费观看| 91精品在线观看入口| 蜜臂av日日欢夜夜爽一区| 久久久噜噜噜久噜久久综合| kk眼镜猥琐国模调教系列一区二区| 中文字幕高清不卡| 在线日韩av片| 麻豆国产91在线播放| 国产欧美精品一区二区色综合朱莉| 成人不卡免费av| 午夜亚洲国产au精品一区二区| 欧美一区二区视频免费观看| 国产成人8x视频一区二区| 亚洲日本欧美天堂| 欧美一区二区三区在线看| 国产不卡一区视频| 亚洲一卡二卡三卡四卡| 久久中文字幕电影| 91成人免费网站| 精品亚洲欧美一区| 一区二区三区四区不卡在线| 日韩欧美123| 色国产精品一区在线观看| 久久精品久久精品| 亚洲情趣在线观看| www成人在线观看| 欧美午夜精品一区二区三区| 国产一区在线精品| 午夜在线电影亚洲一区| 中文字幕一区二区三区在线观看| 欧美精品日韩精品| 99精品久久99久久久久| 久久精品免费观看| 亚洲成av人片一区二区三区| 国产精品天天摸av网| 91精品黄色片免费大全| 不卡欧美aaaaa| 国产在线一区观看| 日韩电影在线一区二区三区| 亚洲特级片在线| 久久久精品国产免大香伊| 欧美日韩一区二区三区在线 | 亚洲色图另类专区| 国产香蕉久久精品综合网| 欧美精品第1页| 色噜噜偷拍精品综合在线| 国产一区二区三区香蕉| 日韩高清国产一区在线| 夜夜亚洲天天久久| 国产精品三级在线观看| www久久精品| 精品免费99久久| 欧美高清视频www夜色资源网| 99久久久久免费精品国产| 国产精品影视网| 久久99精品国产| 免费成人在线观看| 日韩精品成人一区二区三区| 亚洲成人在线网站| 亚洲v中文字幕| 亚洲风情在线资源站| 亚洲一区二区视频在线观看| 亚洲男人的天堂一区二区| 亚洲色图视频网站| 自拍偷在线精品自拍偷无码专区| 日本一区二区成人在线| 中文字幕乱码一区二区免费| 国产精品午夜久久| 国产精品国产自产拍在线| 国产精品麻豆久久久| 亚洲欧美在线aaa| 一区二区三区中文免费| 夜夜爽夜夜爽精品视频| 婷婷开心久久网| 性做久久久久久免费观看欧美| 亚洲一级电影视频| 日韩在线一区二区三区| 久久er精品视频| 国产精品911| 91年精品国产| 欧美日韩激情在线| 日韩一区二区免费高清| 久久久久久久一区| 日韩理论片在线| 婷婷久久综合九色综合伊人色| 玖玖九九国产精品| 国产大陆亚洲精品国产| 91在线无精精品入口| 在线观看av一区| 欧美r级电影在线观看| 国产日本一区二区| 亚洲狼人国产精品| 免费久久99精品国产| 国产综合色产在线精品| 91伊人久久大香线蕉| 欧美高清dvd| 久久精品欧美日韩精品| 亚洲综合网站在线观看| 久久99这里只有精品| 成人黄色小视频| 欧美日韩国产成人在线91| 久久综合给合久久狠狠狠97色69| 国产精品美女一区二区三区| 亚洲h动漫在线| 国产成人在线视频网址| 色94色欧美sute亚洲13| 精品入口麻豆88视频| 亚洲欧美另类久久久精品2019| 丝袜国产日韩另类美女| 国产成人免费高清| 欧美精品丝袜久久久中文字幕| 欧美国产精品一区二区| 日韩主播视频在线| 盗摄精品av一区二区三区| 3751色影院一区二区三区| 日本一区二区三区电影| 蜜臀精品久久久久久蜜臀| 99久久精品国产毛片| 精品国产在天天线2019| 亚洲精品视频观看| 精品一区二区三区蜜桃| 欧美三级韩国三级日本三斤| 久久噜噜亚洲综合| 免费人成精品欧美精品| 在线欧美日韩国产| 国产精品成人免费在线| 精品一区二区免费在线观看| 欧美色国产精品| 亚洲天堂久久久久久久| 国产福利电影一区二区三区| 538prom精品视频线放| 亚洲精品久久久蜜桃| 高清不卡一二三区| 久久久精品影视| 久久99国产精品免费| 欧美放荡的少妇| 亚洲一区二区不卡免费| 91免费国产在线观看| 国产欧美中文在线| 国产高清不卡一区| 欧美mv日韩mv国产网站app| 热久久国产精品| 91精品国产福利| 亚洲国产精品自拍| 欧美日韩你懂的| 亚洲午夜在线观看视频在线| 91看片淫黄大片一级| 亚洲国产精品99久久久久久久久| 国精品**一区二区三区在线蜜桃| 精品日韩一区二区|