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

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

?? os_q.lst

?? 實現ucos任務調度時保存LCD上的顯示信息
?? LST
?? 第 1 頁 / 共 4 頁
字號:
C51 COMPILER V8.02   OS_Q                                                                  05/22/2008 18:01:52 PAGE 1   


C51 COMPILER V8.02, COMPILATION OF MODULE OS_Q
OBJECT MODULE PLACED IN OS_Q.obj
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE ucos\OS_Q.C LARGE BROWSE INCDIR(.\dataflash;.\lcd;.\task;.\uart;.\ucos;.\ke
                    -y) DEBUG OBJECTEXTEND PRINT(.\OS_Q.lst) OBJECT(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)
  20          /*
  21          *********************************************************************************************************
  22          *                                      ACCEPT MESSAGE FROM QUEUE
  23          *
  24          * Description: This function checks the queue to see if a message is available.  Unlike OSQPend(),
  25          *              OSQAccept() does not suspend the calling task if a message is not available.
  26          *
  27          * Arguments  : pevent        is a pointer to the event control block
  28          *
  29          * Returns    : != (void *)0  is the message in the queue if one is available.  The message is removed
  30          *                            from the so the next time OSQAccept() is called, the queue will contain
  31          *                            one less entry.
  32          *              == (void *)0  if the queue is empty or,
  33          *                            if 'pevent' is a NULL pointer or,
  34          *                            if you passed an invalid event type
  35          *********************************************************************************************************
  36          */
  37          
  38          #if OS_Q_ACCEPT_EN > 0
  39          void  *OSQAccept (OS_EVENT *pevent) KCREENTRANT
  40          {
  41   1      #if OS_CRITICAL_METHOD == 3                      /* Allocate storage for CPU status register           */
  42   1          OS_CPU_SR  cpu_sr;
  43   1      #endif
  44   1          void      *msg;
  45   1          OS_Q      *pq;
  46   1      
  47   1      
  48   1      #if OS_ARG_CHK_EN > 0
  49   1          if (pevent == (OS_EVENT *)0) {               /* Validate 'pevent'                                  */
  50   2              return ((void *)0);
  51   2          }
  52   1          if (pevent->OSEventType != OS_EVENT_TYPE_Q) {/* Validate event block type                          */
  53   2              return ((void *)0);
  54   2          }
C51 COMPILER V8.02   OS_Q                                                                  05/22/2008 18:01:52 PAGE 2   

  55   1      #endif
  56   1          OS_ENTER_CRITICAL();
  57   1          pq = (OS_Q *)pevent->OSEventPtr;             /* Point at queue control block                       */
  58   1          if (pq->OSQEntries > 0) {                    /* See if any messages in the queue                   */
  59   2              msg = *pq->OSQOut++;                     /* Yes, extract oldest message from the queue         */
  60   2              pq->OSQEntries--;                        /* Update the number of entries in the queue          */
  61   2              if (pq->OSQOut == pq->OSQEnd) {          /* Wrap OUT pointer if we are at the end of the queue */
  62   3                  pq->OSQOut = pq->OSQStart;
  63   3              }
  64   2          } else {
  65   2              msg = (void *)0;                         /* Queue is empty                                     */
  66   2          }
  67   1          OS_EXIT_CRITICAL();
  68   1          return (msg);                                /* Return message received (or NULL)                  */
  69   1      }
  70          #endif
  71          /*$PAGE*/
  72          /*
  73          *********************************************************************************************************
  74          *                                        CREATE A MESSAGE QUEUE
  75          *
  76          * Description: This function creates a message queue if free event control blocks are available.
  77          *
  78          * Arguments  : start         is a pointer to the base address of the message queue storage area.  The
  79          *                            storage area MUST be declared as an array of pointers to 'void' as follows
  80          *
  81          *                            void *MessageStorage[size]
  82          *
  83          *              size          is the number of elements in the storage area
  84          *
  85          * Returns    : != (OS_EVENT *)0  is a pointer to the event control clock (OS_EVENT) associated with the
  86          *                                created queue
  87          *              == (OS_EVENT *)0  if no event control blocks were available or an error was detected
  88          *********************************************************************************************************
  89          */
  90          
  91          OS_EVENT  *OSQCreate (void **start, INT16U size) KCREENTRANT
  92          {
  93   1      #if OS_CRITICAL_METHOD == 3                      /* Allocate storage for CPU status register           */
  94   1          OS_CPU_SR  cpu_sr;
  95   1      #endif
  96   1          OS_EVENT  *pevent;
  97   1          OS_Q      *pq;
  98   1      
  99   1      
 100   1          if (OSIntNesting > 0) {                      /* See if called from ISR ...                         */
 101   2              return ((OS_EVENT *)0);                  /* ... can't CREATE from an ISR                       */
 102   2          }
 103   1          OS_ENTER_CRITICAL();
 104   1          pevent = OSEventFreeList;                    /* Get next free event control block                  */
 105   1          if (OSEventFreeList != (OS_EVENT *)0) {      /* See if pool of free ECB pool was empty             */
 106   2              OSEventFreeList = (OS_EVENT *)OSEventFreeList->OSEventPtr;
 107   2          }
 108   1          OS_EXIT_CRITICAL();
 109   1          if (pevent != (OS_EVENT *)0) {               /* See if we have an event control block              */
 110   2              OS_ENTER_CRITICAL();
 111   2              pq = OSQFreeList;                        /* Get a free queue control block                     */
 112   2              if (pq != (OS_Q *)0) {                   /* Were we able to get a queue control block ?        */
 113   3                  OSQFreeList         = OSQFreeList->OSQPtr;    /* Yes, Adjust free list pointer to next free*/
 114   3                  OS_EXIT_CRITICAL();
 115   3                  pq->OSQStart        = start;                  /*      Initialize the queue                 */
 116   3                  pq->OSQEnd          = &start[size];
C51 COMPILER V8.02   OS_Q                                                                  05/22/2008 18:01:52 PAGE 3   

 117   3                  pq->OSQIn           = start;
 118   3                  pq->OSQOut          = start;
 119   3                  pq->OSQSize         = size;
 120   3                  pq->OSQEntries      = 0;
 121   3                  pevent->OSEventType = OS_EVENT_TYPE_Q;
 122   3                  pevent->OSEventCnt  = 0;
 123   3                  pevent->OSEventPtr  = pq;
 124   3                  OS_EventWaitListInit(pevent);                 /*      Initalize the wait list              */
 125   3              } else {
 126   3                  pevent->OSEventPtr = (void *)OSEventFreeList; /* No,  Return event control block on error  */
 127   3                  OSEventFreeList    = pevent;
 128   3                  OS_EXIT_CRITICAL();
 129   3                  pevent = (OS_EVENT *)0;
 130   3              }
 131   2          }
 132   1          return (pevent);
 133   1      }
 134          /*$PAGE*/
 135          /*
 136          *********************************************************************************************************
 137          *                                        DELETE A MESSAGE QUEUE
 138          *
 139          * Description: This function deletes a message queue and readies all tasks pending on the queue.
 140          *
 141          * Arguments  : pevent        is a pointer to the event control block associated with the desired
 142          *                            queue.
 143          *
 144          *              opt           determines delete options as follows:
 145          *                            opt == OS_DEL_NO_PEND   Delete the queue ONLY if no task pending
 146          *                            opt == OS_DEL_ALWAYS    Deletes the queue even if tasks are waiting.
 147          *                                                    In this case, all the tasks pending will be readied.
 148          *
 149          *              err           is a pointer to an error code that can contain one of the following values:
 150          *                            OS_NO_ERR               The call was successful and the queue was deleted
 151          *                            OS_ERR_DEL_ISR          If you tried to delete the queue from an ISR
 152          *                            OS_ERR_INVALID_OPT      An invalid option was specified
 153          *                            OS_ERR_TASK_WAITING     One or more tasks were waiting on the queue
 154          *                            OS_ERR_EVENT_TYPE       If you didn't pass a pointer to a queue
 155          *                            OS_ERR_PEVENT_NULL      If 'pevent' is a NULL pointer.
 156          *
 157          * Returns    : pevent        upon error
 158          *              (OS_EVENT *)0 if the queue was successfully deleted.
 159          *
 160          * Note(s)    : 1) This function must be used with care.  Tasks that would normally expect the presence of
 161          *                 the queue MUST check the return code of OSQPend().
 162          *              2) OSQAccept() callers will not know that the intended queue has been deleted unless
 163          *                 they check 'pevent' to see that it's a NULL pointer.
 164          *              3) This call can potentially disable interrupts for a long time.  The interrupt disable
 165          *                 time is directly proportional to the number of tasks waiting on the queue.
 166          *              4) Because ALL tasks pending on the queue will be readied, you MUST be careful in
 167          *                 applications where the queue is used for mutual exclusion because the resource(s)
 168          *                 will no longer be guarded by the queue.
 169          *              5) If the storage for the message queue was allocated dynamically (i.e. using a malloc()
 170          *                 type call) then your application MUST release the memory storage by call the counterpart
 171          *                 call of the dynamic allocation scheme used.  If the queue storage was created statically
 172          *                 then, the storage can be reused.
 173          *********************************************************************************************************
 174          */
 175          
 176          #if OS_Q_DEL_EN > 0
 177          OS_EVENT  *OSQDel (OS_EVENT *pevent, INT8U opt, INT8U *err) KCREENTRANT
 178          {
C51 COMPILER V8.02   OS_Q                                                                  05/22/2008 18:01:52 PAGE 4   

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产成人精品免费一区二区| 国产亚洲女人久久久久毛片| 欧美精品一区二区三区蜜桃视频| 视频在线在亚洲| 欧美美女一区二区| 麻豆一区二区99久久久久| 欧美精品一区二区三区蜜臀| 精品一区二区免费看| 欧美成人猛片aaaaaaa| 色婷婷久久久久swag精品 | eeuss鲁片一区二区三区在线观看| 日韩精品一区二区三区三区免费| 精品一区二区影视| 中文字幕亚洲在| 欧美日本在线看| 国产精品影音先锋| 亚洲在线视频一区| 日韩欧美国产三级电影视频| www.日韩在线| 蜜桃久久精品一区二区| 亚洲免费资源在线播放| 欧美一级片在线看| 青青草精品视频| 国产日韩精品一区二区浪潮av| 欧美性大战xxxxx久久久| 国产高清不卡二三区| 免费成人av在线| 亚洲成人动漫一区| 国产精品久久三| 久久久综合网站| 久久一区二区三区国产精品| 欧美日韩免费一区二区三区| 色老综合老女人久久久| 一本久久精品一区二区| 成+人+亚洲+综合天堂| 国产成a人亚洲精| 国产麻豆精品视频| 精品在线一区二区三区| 国产精一区二区三区| 国产99久久久精品| 成人激情免费视频| 日本韩国一区二区三区视频| 色老汉一区二区三区| 欧美精品自拍偷拍动漫精品| 欧美日韩黄色影视| 亚洲精品一区二区精华| 久久精品视频免费观看| 国产精品日日摸夜夜摸av| 亚洲人成亚洲人成在线观看图片| 亚洲欧美日韩系列| 麻豆国产一区二区| 福利一区福利二区| 欧美日韩一区不卡| 久久久亚洲欧洲日产国码αv| 亚洲欧美一区二区视频| 热久久免费视频| 波多野结衣中文字幕一区二区三区 | 亚洲综合免费观看高清完整版 | 欧美伊人久久久久久久久影院 | 91丨porny丨中文| 欧美日韩激情在线| 一区二区三区国产| 国产精品996| 欧美丰满少妇xxxxx高潮对白| 国产清纯白嫩初高生在线观看91| 亚洲va欧美va人人爽| 成人手机在线视频| 日韩欧美国产三级电影视频| 亚洲国产精品影院| av电影天堂一区二区在线| 国产农村妇女毛片精品久久麻豆 | 精品久久人人做人人爽| 亚洲电影在线播放| 色综合天天视频在线观看| 国产精品麻豆视频| 不卡av在线网| 亚洲成国产人片在线观看| 色综合av在线| 亚洲一级片在线观看| 91传媒视频在线播放| 亚洲色图.com| 欧美精品久久一区二区三区| 五月综合激情网| 久久一留热品黄| 91无套直看片红桃| 五月婷婷另类国产| 日韩区在线观看| 成人免费三级在线| 亚洲免费观看高清完整版在线 | 亚洲bt欧美bt精品| 欧美日韩大陆在线| 狠狠色丁香久久婷婷综合_中| 中文字幕第一区第二区| 在线国产电影不卡| 国产一区二区三区日韩| 国产精品青草综合久久久久99| 91免费视频观看| 久久99久国产精品黄毛片色诱| 欧美国产日韩精品免费观看| 欧洲一区二区三区在线| 国内精品视频一区二区三区八戒| 午夜久久久久久电影| 色诱亚洲精品久久久久久| 日韩制服丝袜av| 亚洲男人的天堂av| 久久久国产精品午夜一区ai换脸| 亚洲男人天堂av网| 欧美经典一区二区| 日韩一区二区三区在线视频| 91视视频在线观看入口直接观看www| 天天免费综合色| 亚洲福利国产精品| 亚洲精选免费视频| 亚洲天堂2014| 18欧美乱大交hd1984| 欧美激情在线一区二区| 久久婷婷久久一区二区三区| 欧美一二三区精品| 欧美变态tickle挠乳网站| 高潮精品一区videoshd| 日韩成人免费电影| 亚洲成人激情自拍| 亚洲综合图片区| 一区二区久久久久| 日本亚洲电影天堂| 久久aⅴ国产欧美74aaa| 极品美女销魂一区二区三区| 中文字幕第一区第二区| 精品视频色一区| 欧美一级二级三级乱码| 久久久久久久久久看片| 亚洲啪啪综合av一区二区三区| 国产精品久久精品日日| 亚洲va国产天堂va久久en| 激情综合色播五月| 91亚洲精品乱码久久久久久蜜桃| 在线视频一区二区三区| 日韩欧美色电影| 国产精品美女久久久久久久久| 亚洲图片欧美激情| 国模娜娜一区二区三区| 91国偷自产一区二区三区成为亚洲经典 | 中文字幕一区二区视频| 亚洲一二三区不卡| 成人国产一区二区三区精品| 日韩欧美三级在线| 亚洲国产精品自拍| av电影在线观看不卡| 精品99999| 裸体歌舞表演一区二区| 欧洲亚洲精品在线| 亚洲天堂2014| 波多野结衣在线一区| 久久麻豆一区二区| 蜜臀久久99精品久久久久久9| 亚洲精品成人悠悠色影视| 亚洲毛片av在线| 99精品欧美一区| 国产精品免费久久久久| 成人精品在线视频观看| 国产亚洲视频系列| 成人午夜av影视| 亚洲精品老司机| 亚洲成人精品影院| 成人高清av在线| 亚洲六月丁香色婷婷综合久久 | 成人91在线观看| 亚洲色图欧美偷拍| 91精品国产乱| 国产成人精品免费一区二区| 国产精品网站在线观看| 99天天综合性| 亚洲图片欧美视频| 久久久久久久久久久久久夜| 91色综合久久久久婷婷| 亚洲国产精品久久不卡毛片| 欧美哺乳videos| 欧美亚一区二区| 国产精品18久久久久久久久久久久 | 91视频在线观看| 天堂在线一区二区| 亚洲欧美综合在线精品| 欧美私模裸体表演在线观看| 欧美激情综合在线| 色狠狠综合天天综合综合| 亚洲最大色网站| 欧美videos大乳护士334| 91在线视频18| 国产成人在线观看免费网站| 一区二区三区小说| 国产精品美女久久久久久久网站| 91精品视频网| 欧美日韩在线直播| 91老司机福利 在线| 国内精品国产成人国产三级粉色 | 欧美电影免费观看高清完整版| 色天使色偷偷av一区二区| 国产白丝精品91爽爽久久| 国产中文字幕精品| 国内外成人在线|