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

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

?? os_q.lst

?? ucos v2.62 安裝程序 附帶已移植到C8051F020的UCOS源碼
?? LST
?? 第 1 頁 / 共 4 頁
字號:
C51 COMPILER V8.05a   OS_Q                                                                 04/11/2007 16:19:49 PAGE 1   


C51 COMPILER V8.05a, COMPILATION OF MODULE OS_Q
OBJECT MODULE PLACED IN ..\Output\os_q.obj
COMPILER INVOKED BY: D:\Program Files\keil\C51\BIN\C51.EXE ..\SOURCE\os_q.c LARGE BROWSE INCDIR(..\app;..\Main;..\Port;.
                    -.\SOURCE) DEBUG OBJECTEXTEND PRINT(..\Output\os_q.lst) OBJECT(..\Output\os_q.obj)

line level    source

   1          /*
   2          *********************************************************************************************************
   3          *                                                uC/OS-II
   4          *                                          The Real-Time Kernel
   5          *                                        MESSAGE QUEUE MANAGEMENT
   6          *
   7          *                          (c) Copyright 1992-2002, Jean J. Labrosse, Weston, FL
   8          *                                           All Rights Reserved
   9          *
  10          * File : OS_Q.C
  11          * By   : Jean J. Labrosse
  12          *********************************************************************************************************
  13          */
  14          
  15          #ifndef  OS_MASTER_FILE
  16          #include "includes.h"
  17          #endif
  18          
  19          #if (OS_Q_EN > 0) && (OS_MAX_QS > 0)
              /*
              *********************************************************************************************************
              *                                      ACCEPT MESSAGE FROM QUEUE
              *
              * Description: This function checks the queue to see if a message is available.  Unlike OSQPend(),
              *              OSQAccept() does not suspend the calling task if a message is not available.
              *
              * Arguments  : pevent        is a pointer to the event control block
              *
              *              err           is a pointer to where an error message will be deposited.  Possible error
              *                            messages are:
              *
              *                            OS_NO_ERR           The call was successful and your task received a
              *                                                message.
              *                            OS_ERR_EVENT_TYPE   You didn't pass a pointer to a queue
              *                            OS_ERR_PEVENT_NULL  If 'pevent' is a NULL pointer
              *                            OS_Q_EMPTY          The queue did not contain any messages
              *
              * Returns    : != (void *)0  is the message in the queue if one is available.  The message is removed
              *                            from the so the next time OSQAccept() is called, the queue will contain
              *                            one less entry.
              *              == (void *)0  if you received a NULL pointer message
              *                            if the queue is empty or,
              *                            if 'pevent' is a NULL pointer or,
              *                            if you passed an invalid event type
              *
              * Note(s)    : As of V2.60, you can now pass NULL pointers through queues.  Because of this, the argument
              *              'err' has been added to the API to tell you about the outcome of the call.
              *********************************************************************************************************
              */
              
              #if OS_Q_ACCEPT_EN > 0
              void  *OSQAccept (OS_EVENT *pevent, INT8U *err)
              {
              #if OS_CRITICAL_METHOD == 3                      /* Allocate storage for CPU status register           */
C51 COMPILER V8.05a   OS_Q                                                                 04/11/2007 16:19:49 PAGE 2   

                  OS_CPU_SR  cpu_sr;
              #endif
                  void      *msg;
                  OS_Q      *pq;
              
              
              #if OS_ARG_CHK_EN > 0
                  if (pevent == (OS_EVENT *)0) {               /* Validate 'pevent'                                  */
                      *err = OS_ERR_PEVENT_NULL;
                      return ((void *)0);
                  }
              #endif
                  if (pevent->OSEventType != OS_EVENT_TYPE_Q) {/* Validate event block type                          */
                      *err = OS_ERR_EVENT_TYPE;
                      return ((void *)0);
                  }
                  OS_ENTER_CRITICAL();
                  pq = (OS_Q *)pevent->OSEventPtr;             /* Point at queue control block                       */
                  if (pq->OSQEntries > 0) {                    /* See if any messages in the queue                   */
                      msg = *pq->OSQOut++;                     /* Yes, extract oldest message from the queue         */
                      pq->OSQEntries--;                        /* Update the number of entries in the queue          */
                      if (pq->OSQOut == pq->OSQEnd) {          /* Wrap OUT pointer if we are at the end of the queue */
                          pq->OSQOut = pq->OSQStart;
                      }
                      *err = OS_NO_ERR;
                  } else {
                      *err = OS_Q_EMPTY;
                      msg  = (void *)0;                        /* Queue is empty                                     */
                  }
                  OS_EXIT_CRITICAL();
                  return (msg);                                /* Return message received (or NULL)                  */
              }
              #endif
              /*$PAGE*/
              /*
              *********************************************************************************************************
              *                                        CREATE A MESSAGE QUEUE
              *
              * Description: This function creates a message queue if free event control blocks are available.
              *
              * Arguments  : start         is a pointer to the base address of the message queue storage area.  The
              *                            storage area MUST be declared as an array of pointers to 'void' as follows
              *
              *                            void *MessageStorage[size]
              *
              *              size          is the number of elements in the storage area
              *
              * Returns    : != (OS_EVENT *)0  is a pointer to the event control clock (OS_EVENT) associated with the
              *                                created queue
              *              == (OS_EVENT *)0  if no event control blocks were available or an error was detected
              *********************************************************************************************************
              */
              
              OS_EVENT  *OSQCreate (void **start, INT16U size)
              {
              #if OS_CRITICAL_METHOD == 3                      /* Allocate storage for CPU status register           */
                  OS_CPU_SR  cpu_sr;
              #endif
                  OS_EVENT  *pevent;
                  OS_Q      *pq;
              
              
C51 COMPILER V8.05a   OS_Q                                                                 04/11/2007 16:19:49 PAGE 3   

                  if (OSIntNesting > 0) {                      /* See if called from ISR ...                         */
                      return ((OS_EVENT *)0);                  /* ... can't CREATE from an ISR                       */
                  }
                  OS_ENTER_CRITICAL();
                  pevent = OSEventFreeList;                    /* Get next free event control block                  */
                  if (OSEventFreeList != (OS_EVENT *)0) {      /* See if pool of free ECB pool was empty             */
                      OSEventFreeList = (OS_EVENT *)OSEventFreeList->OSEventPtr;
                  }
                  OS_EXIT_CRITICAL();
                  if (pevent != (OS_EVENT *)0) {               /* See if we have an event control block              */
                      OS_ENTER_CRITICAL();
                      pq = OSQFreeList;                        /* Get a free queue control block                     */
                      if (pq != (OS_Q *)0) {                   /* Were we able to get a queue control block ?        */
                          OSQFreeList         = OSQFreeList->OSQPtr;    /* Yes, Adjust free list pointer to next free*/
                          OS_EXIT_CRITICAL();
                          pq->OSQStart        = start;                  /*      Initialize the queue                 */
                          pq->OSQEnd          = &start[size];
                          pq->OSQIn           = start;
                          pq->OSQOut          = start;
                          pq->OSQSize         = size;
                          pq->OSQEntries      = 0;
                          pevent->OSEventType = OS_EVENT_TYPE_Q;
                          pevent->OSEventCnt  = 0;
                          pevent->OSEventPtr  = pq;
              #if OS_EVENT_NAME_SIZE > 0
                          (void)strcpy(pevent->OSEventName, "?");
              #endif
                          OS_EventWaitListInit(pevent);                 /*      Initalize the wait list              */
                      } else {
                          pevent->OSEventPtr = (void *)OSEventFreeList; /* No,  Return event control block on error  */
                          OSEventFreeList    = pevent;
                          OS_EXIT_CRITICAL();
                          pevent = (OS_EVENT *)0;
                      }
                  }
                  return (pevent);
              }
              /*$PAGE*/
              /*
              *********************************************************************************************************
              *                                        DELETE A MESSAGE QUEUE
              *
              * Description: This function deletes a message queue and readies all tasks pending on the queue.
              *
              * Arguments  : pevent        is a pointer to the event control block associated with the desired
              *                            queue.
              *
              *              opt           determines delete options as follows:
              *                            opt == OS_DEL_NO_PEND   Delete the queue ONLY if no task pending
              *                            opt == OS_DEL_ALWAYS    Deletes the queue even if tasks are waiting.
              *                                                    In this case, all the tasks pending will be readied.
              *
              *              err           is a pointer to an error code that can contain one of the following values:
              *                            OS_NO_ERR               The call was successful and the queue was deleted
              *                            OS_ERR_DEL_ISR          If you tried to delete the queue from an ISR
              *                            OS_ERR_INVALID_OPT      An invalid option was specified
              *                            OS_ERR_TASK_WAITING     One or more tasks were waiting on the queue
              *                            OS_ERR_EVENT_TYPE       If you didn't pass a pointer to a queue
              *                            OS_ERR_PEVENT_NULL      If 'pevent' is a NULL pointer.
              *
              * Returns    : pevent        upon error
              *              (OS_EVENT *)0 if the queue was successfully deleted.
C51 COMPILER V8.05a   OS_Q                                                                 04/11/2007 16:19:49 PAGE 4   

              *
              * Note(s)    : 1) This function must be used with care.  Tasks that would normally expect the presence of
              *                 the queue MUST check the return code of OSQPend().
              *              2) OSQAccept() callers will not know that the intended queue has been deleted unless
              *                 they check 'pevent' to see that it's a NULL pointer.
              *              3) This call can potentially disable interrupts for a long time.  The interrupt disable
              *                 time is directly proportional to the number of tasks waiting on the queue.
              *              4) Because ALL tasks pending on the queue will be readied, you MUST be careful in

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人午夜激情片| 亚洲va天堂va国产va久| 国产日韩欧美高清| 亚洲视频在线观看三级| 日产国产高清一区二区三区| youjizz国产精品| 91精品国产日韩91久久久久久| 国产精品传媒在线| 日本亚洲欧美天堂免费| 92精品国产成人观看免费| 久久综合九色综合97_久久久| 亚洲国产毛片aaaaa无费看 | 久久嫩草精品久久久精品一| 亚洲精品高清在线观看| 国产一区二区不卡在线| 欧美群妇大交群中文字幕| 亚洲天堂免费看| 国产不卡在线播放| 日韩一区二区不卡| 国产精品久久看| 国产宾馆实践打屁股91| 欧美xxxxxxxxx| 午夜a成v人精品| 91激情在线视频| 综合久久久久久| 99在线精品一区二区三区| 国产亚洲欧美在线| 韩国视频一区二区| 精品日产卡一卡二卡麻豆| 日韩国产精品久久久| 欧美午夜宅男影院| 亚洲综合色网站| 欧美网站一区二区| 亚洲图片欧美视频| 欧美日韩一区二区三区免费看| 亚洲精品国产一区二区精华液| 91麻豆视频网站| 一区二区三区欧美激情| 国产丝袜美腿一区二区三区| 开心九九激情九九欧美日韩精美视频电影 | 亚洲午夜久久久| 在线视频你懂得一区| 一区二区三区蜜桃| 欧美性感一类影片在线播放| 午夜久久福利影院| 日韩一区二区三区av| 久久精品国产网站| 久久久国产午夜精品| 粉嫩av一区二区三区在线播放 | 自拍偷拍国产精品| 色先锋aa成人| 亚洲www啪成人一区二区麻豆| 91精品国产综合久久精品性色| 男人的天堂久久精品| 精品国产乱码久久久久久1区2区| 国产寡妇亲子伦一区二区| 国产精品天天看| 欧美亚洲国产bt| 日本美女视频一区二区| 久久久久免费观看| a4yy欧美一区二区三区| 一区二区不卡在线播放 | 亚洲一区二区在线播放相泽| 911精品产国品一二三产区| 久久av中文字幕片| 国产精品久久久久影院| 欧美色偷偷大香| 国产在线看一区| 亚洲视频网在线直播| 欧美日韩一级二级| 国产一区二区在线看| 亚洲欧美日韩在线| 欧美一级理论片| 91丨九色porny丨蝌蚪| 日韩精品成人一区二区在线| 日韩高清不卡一区二区| 97精品久久久久中文字幕| 日韩免费看网站| 亚洲一区二区三区中文字幕| 国产成人一区二区精品非洲| 欧美精品丝袜中出| 一区二区三区丝袜| 国产风韵犹存在线视精品| 91精品欧美一区二区三区综合在 | 国产激情精品久久久第一区二区| 在线一区二区三区四区五区 | 欧美精品123区| 国产一区二区视频在线播放| 亚洲福利视频一区| 久久久亚洲精品一区二区三区| 欧美午夜不卡视频| 成人黄色网址在线观看| 秋霞电影一区二区| 一区二区三区在线视频免费 | 欧美一级精品在线| 色综合久久久久综合| 国产中文字幕一区| 图片区小说区区亚洲影院| 国产精品乱码妇女bbbb| 精品欧美一区二区三区精品久久| 欧美日韩中文字幕一区| 成人午夜av在线| 狠狠v欧美v日韩v亚洲ⅴ| 天堂成人免费av电影一区| 亚洲六月丁香色婷婷综合久久 | 91精品在线免费观看| 色综合久久九月婷婷色综合| 国产不卡在线播放| 国产精品一区一区| 久久99精品久久久久| 日本一道高清亚洲日美韩| 亚洲第一av色| 亚洲国产精品视频| 亚洲精品你懂的| 亚洲免费观看视频| 亚洲男人都懂的| 亚洲三级免费电影| 亚洲日本青草视频在线怡红院| 国产精品色呦呦| 国产精品久线观看视频| 国产精品美女久久久久久| 国产精品丝袜91| ...xxx性欧美| 亚洲色图一区二区| 亚洲综合成人在线| 亚洲国产乱码最新视频| 亚洲电影你懂得| 视频在线在亚洲| 日韩和欧美的一区| 蜜桃av一区二区| 国产一区视频在线看| 国产精品一二三四区| 成人综合婷婷国产精品久久| 一本大道久久a久久精二百| 一本一道久久a久久精品综合蜜臀| 日本韩国欧美在线| 欧美性大战久久久久久久蜜臀| 欧美日韩夫妻久久| 日韩一二三区视频| 性做久久久久久免费观看欧美| 日韩电影在线观看电影| 国产综合色在线| 91小视频免费观看| 欧美日韩一区二区三区在线看| 日韩一区二区三区精品视频 | 国产不卡视频一区| 91在线视频观看| 69p69国产精品| 国产日产欧美精品一区二区三区| 亚洲私人黄色宅男| 日韩高清不卡一区二区三区| 懂色av一区二区在线播放| 一本一道久久a久久精品综合蜜臀 一本一道综合狠狠老 | 日韩有码一区二区三区| 国产综合色在线视频区| 91麻豆精东视频| 欧美一区二区三区电影| 中文字幕一区在线观看视频| 日韩电影一区二区三区| 成人一道本在线| 欧美一区日韩一区| 中文字幕不卡三区| 日韩av一二三| 91在线观看地址| 337p日本欧洲亚洲大胆精品| 亚洲精品成人少妇| 精品影视av免费| 在线亚洲精品福利网址导航| 国产日韩视频一区二区三区| 亚洲va欧美va国产va天堂影院| 大桥未久av一区二区三区中文| 欧美美女网站色| 亚洲视频你懂的| 成人中文字幕合集| 91精品国产aⅴ一区二区| 亚洲精品欧美激情| 丁香婷婷综合网| 欧美不卡视频一区| 午夜视频一区在线观看| 一本色道久久综合亚洲aⅴ蜜桃| 久久久久成人黄色影片| 三级在线观看一区二区| 色综合久久综合| 中文字幕av不卡| 精品一二三四区| 337p亚洲精品色噜噜| 亚洲人成小说网站色在线| 国产成人精品免费| 日韩欧美美女一区二区三区| 日韩在线一二三区| 欧美三级中文字| 亚洲摸摸操操av| 91亚洲国产成人精品一区二三| 国产精品网友自拍| 成人午夜在线免费| 欧美国产激情二区三区| 国内精品在线播放| 欧美电视剧免费全集观看| 日韩精品久久理论片| 欧美精品久久久久久久久老牛影院|