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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? os_q.lst

?? 實(shí)現(xiàn)ucos任務(wù)調(diào)度時(shí)保存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   

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美性极品少妇| 欧美日韩国产大片| 亚洲网友自拍偷拍| 久久综合色天天久久综合图片| 国产丶欧美丶日本不卡视频| 一区二区成人在线| 国产欧美一区二区三区在线老狼 | 高清不卡一区二区在线| 一区二区三区欧美在线观看| 2023国产精品| 欧美日韩国产美| 91啪九色porn原创视频在线观看| 久久草av在线| 日韩激情在线观看| 亚洲综合免费观看高清完整版| 欧美大胆一级视频| 欧美人与z0zoxxxx视频| 97se亚洲国产综合自在线观| 国内精品久久久久影院色| 午夜私人影院久久久久| 亚洲日本免费电影| 亚洲精品一区在线观看| 91精品国产免费| 91麻豆国产自产在线观看| 高清成人免费视频| 韩国毛片一区二区三区| 蜜桃av噜噜一区二区三区小说| 亚洲卡通动漫在线| 亚洲欧洲日韩av| 国产精品入口麻豆原神| 国产欧美一区二区精品性色超碰| 精品99999| 欧美成人女星排名| 日韩欧美中文字幕制服| 91精品国产一区二区三区蜜臀| 91成人看片片| 欧美在线看片a免费观看| 色综合色狠狠天天综合色| 欧美一区二区啪啪| 欧美精品成人一区二区三区四区| 91福利社在线观看| 91福利在线播放| 欧美日韩一区二区三区高清| 91福利视频在线| 欧美日韩一区久久| 8v天堂国产在线一区二区| 欧美精品一二三| 91精品国产综合久久久久久| 91精品国产美女浴室洗澡无遮挡| 欧美一区二区精品在线| 日韩一区二区三区免费观看 | 国产清纯白嫩初高生在线观看91| 久久婷婷成人综合色| 国产欧美日韩精品在线| 中文字幕乱码日本亚洲一区二区 | 色播五月激情综合网| 91久久一区二区| 欧美日韩国产一区| 欧美一级精品在线| 久久久精品黄色| 欧美激情一区在线| 亚洲另类一区二区| 天天综合色天天综合色h| 日本不卡一区二区三区| 麻豆精品在线视频| 国产91露脸合集magnet| 色综合久久88色综合天天| 欧美日韩亚洲综合| 日韩欧美国产不卡| 国产精品丝袜91| 亚洲超丰满肉感bbw| 久久国产福利国产秒拍| 国产成人午夜电影网| 色综合久久久久久久久| 777奇米成人网| 国产人妖乱国产精品人妖| 亚洲精品成人悠悠色影视| 日日骚欧美日韩| 成人晚上爱看视频| 欧美三级电影精品| 国产日韩成人精品| 天堂影院一区二区| 国产成人av电影在线| 91精品办公室少妇高潮对白| 欧美一级片在线看| 国产精品家庭影院| 日本不卡高清视频| 99国内精品久久| 日韩女优毛片在线| 一区二区三区在线免费| 久草在线在线精品观看| 色悠悠亚洲一区二区| 日韩欧美色综合网站| 亚洲精品日日夜夜| 国产麻豆精品在线| 欧美丝袜丝交足nylons图片| 久久久久久久久久久久久女国产乱| 亚洲免费视频中文字幕| 国产乱妇无码大片在线观看| 欧美日韩免费视频| 国产精品欧美一区喷水| 毛片av一区二区三区| 欧美亚洲一区三区| 亚洲国产精品国自产拍av| 日本aⅴ精品一区二区三区| yourporn久久国产精品| 久久色视频免费观看| 亚洲一区二区成人在线观看| 国产精品888| 欧美xxxxxxxxx| 日日夜夜免费精品视频| 色香色香欲天天天影视综合网| 精品国产乱码久久久久久蜜臀| 亚洲午夜视频在线观看| 99久久综合精品| 国产精品女人毛片| 国产麻豆精品在线| 精品国产免费一区二区三区四区 | 欧美顶级少妇做爰| 亚洲精品国产一区二区精华液| 高清成人免费视频| 欧美精品一区二区三区视频| 日韩国产欧美在线视频| 在线观看国产精品网站| 亚洲午夜久久久| 欧美影院一区二区| 国产精品一卡二| 欧美草草影院在线视频| 亚洲综合丝袜美腿| 色一情一乱一乱一91av| 中文字幕的久久| 国产成人av一区二区三区在线| 欧美成人乱码一区二区三区| 蜜桃视频一区二区三区| 欧美一级片在线| 六月丁香婷婷色狠狠久久| 91精品国产综合久久婷婷香蕉| 日韩专区中文字幕一区二区| 欧美日韩高清不卡| 日本在线不卡一区| 欧美一区二区三区在线观看| 日韩精品高清不卡| 日韩网站在线看片你懂的| 男人操女人的视频在线观看欧美| 91精品综合久久久久久| 日日摸夜夜添夜夜添国产精品| 在线综合视频播放| 久久99国产精品免费网站| 2023国产精品自拍| 成人午夜av电影| 亚洲欧美国产毛片在线| 91久久精品网| 爽好多水快深点欧美视频| 欧美一区二区三区日韩| 国产综合成人久久大片91| 国产欧美在线观看一区| 91污片在线观看| 亚洲午夜在线观看视频在线| 91精品国产色综合久久久蜜香臀| 日本色综合中文字幕| 精品第一国产综合精品aⅴ| 国产高清不卡一区| 亚洲欧美日韩久久| 欧美综合天天夜夜久久| 日本在线播放一区二区三区| 日韩精品自拍偷拍| 播五月开心婷婷综合| 偷拍亚洲欧洲综合| 精品成人佐山爱一区二区| www.色综合.com| 无码av中文一区二区三区桃花岛| 精品成人佐山爱一区二区| 色综合欧美在线| 久久成人麻豆午夜电影| 中文字幕一区二区三区视频| 欧美日韩成人在线一区| 国产精品一区二区久激情瑜伽| 亚洲最大成人网4388xx| 精品国产伦一区二区三区免费| 91视频免费播放| 老司机精品视频线观看86| 亚洲女与黑人做爰| 精品国产乱码久久久久久蜜臀| 色综合天天综合网国产成人综合天| 日本aⅴ亚洲精品中文乱码| 国产精品久久久久三级| 日韩一区二区免费高清| 91在线观看一区二区| 免费成人你懂的| 一区二区三区中文免费| 久久精品夜色噜噜亚洲aⅴ| 日本韩国一区二区| 理论片日本一区| 亚洲超碰97人人做人人爱| 亚洲精品一区在线观看| 欧美精品一级二级| 成人免费视频app| 午夜精品久久久久久久久久| 国产精品私人自拍| 日韩一区二区视频在线观看|