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

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

?? os_q.lst

?? uCos-ii 2.86 在C8051F410單片機上移植成功!!! 其中包括:UART驅動
?? LST
?? 第 1 頁 / 共 4 頁
字號:
C51 COMPILER V8.17   OS_Q                                                                  03/26/2009 14:24:25 PAGE 1   


C51 COMPILER V8.17, COMPILATION OF MODULE OS_Q
OBJECT MODULE PLACED IN .\out-files\os_q.obj
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE uCOS II Files\os_q.c LARGE BROWSE INCDIR(.\smaRTC;.\SMBus) DEBUG OBJECTEXTE
                    -ND PRINT(.\list-files\os_q.lst) TABS(2) OBJECT(.\out-files\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-2007, Micrium, Weston, FL
   8          *                                           All Rights Reserved
   9          *
  10          * File    : OS_Q.C
  11          * By      : Jean J. Labrosse
  12          * Version : V2.86
  13          *
  14          * LICENSING TERMS:
  15          * ---------------
  16          *   uC/OS-II is provided in source form for FREE evaluation, for educational use or for peaceful research.
             -  
  17          * If you plan on using  uC/OS-II  in a commercial product you need to contact Micri祄 to properly license 
  18          * its use in your product. We provide ALL the source code for your convenience and to help you experience 
  19          * uC/OS-II.   The fact that the  source is provided does  NOT  mean that you can use it without  paying a 
  20          * licensing fee.
  21          *********************************************************************************************************
  22          */
  23          
  24          #ifndef  OS_MASTER_FILE
  25          #include "..\header files\includes.h"
  26          #endif
  27          
  28          #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
              *
              *              perr          is a pointer to where an error message will be deposited.  Possible error
              *                            messages are:
              *
              *                            OS_ERR_NONE         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_ERR_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
C51 COMPILER V8.17   OS_Q                                                                  03/26/2009 14:24:25 PAGE 2   

              *
              * Note(s)    : As of V2.60, you can now pass NULL pointers through queues.  Because of this, the argument
              *              'perr' 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 *perr) reentrant
              {
                  void      *pmsg;
                  OS_Q      *pq;
              #if OS_CRITICAL_METHOD == 3                      /* Allocate storage for CPU status register           */
                  OS_CPU_SR  cpu_sr = 0;
              #endif
              
              
              
              #if OS_ARG_CHK_EN > 0
                  if (perr == (INT8U *)0) {                    /* Validate 'perr'                                    */
                      return ((void *)0);
                  }
                  if (pevent == (OS_EVENT *)0) {               /* Validate 'pevent'                                  */
                      *perr = OS_ERR_PEVENT_NULL;
                      return ((void *)0);
                  }
              #endif
                  if (pevent->OSEventType != OS_EVENT_TYPE_Q) {/* Validate event block type                          */
                      *perr = 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                   */
                      pmsg = *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;
                      }
                      *perr = OS_ERR_NONE;
                  } else {
                      *perr = OS_ERR_Q_EMPTY;
                      pmsg  = (void *)0;                       /* Queue is empty                                     */
                  }
                  OS_EXIT_CRITICAL();
                  return (pmsg);                               /* 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
C51 COMPILER V8.17   OS_Q                                                                  03/26/2009 14:24:25 PAGE 3   

              *                                created queue
              *              == (OS_EVENT *)0  if no event control blocks were available or an error was detected
              *********************************************************************************************************
              */
              
              OS_EVENT  *OSQCreate (void **start, INT16U size) reentrant
              {
                  OS_EVENT  *pevent;
                  OS_Q      *pq;
              #if OS_CRITICAL_METHOD == 3                      /* Allocate storage for CPU status register           */
                  OS_CPU_SR  cpu_sr = 0;
              #endif
              
              
              
                  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 > 1
                          pevent->OSEventName[0] = '?';                  /* Unknown name                             */
                          pevent->OSEventName[1] = OS_ASCII_NUL;
              #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.
C51 COMPILER V8.17   OS_Q                                                                  03/26/2009 14:24:25 PAGE 4   

              *
              *              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.
              *
              *              perr          is a pointer to an error code that can contain one of the following values:
              *                            OS_ERR_NONE             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.
              *
              * 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
              *                 applications where the queue is used for mutual exclusion because the resource(s)
              *                 will no longer be guarded by the queue.
              *              5) If the storage for the message queue was allocated dynamically (i.e. using a malloc()
              *                 type call) then your application MUST release the memory storage by call the counterpart
              *                 call of the dynamic allocation scheme used.  If the queue storage was created statically
              *                 then, the storage can be reused.
              *********************************************************************************************************
              */
              
              #if OS_Q_DEL_EN > 0
              OS_EVENT  *OSQDel (OS_EVENT *pevent, INT8U opt, INT8U *perr)  reentrant
              {
                  BOOLEAN    tasks_waiting;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲不卡一区二区三区| 久久综合九色欧美综合狠狠| 一区二区高清在线| 色呦呦一区二区三区| 亚洲一级不卡视频| 欧美一区二区三区视频免费| 麻豆精品视频在线观看视频| 日韩视频免费观看高清完整版在线观看| 婷婷开心久久网| 欧美哺乳videos| 国产.欧美.日韩| 一区二区三区自拍| 日韩欧美在线影院| 成人午夜在线播放| 亚洲黄色小说网站| 日韩精品一区二区三区视频播放 | 国产精品成人一区二区三区夜夜夜| 国产大片一区二区| 亚洲精品va在线观看| 欧美另类高清zo欧美| 国内外成人在线视频| 国产精品美女久久久久久 | 亚洲在线视频免费观看| 日韩一区二区三区在线观看 | 免费看日韩a级影片| 26uuu亚洲综合色| 91香蕉视频黄| 蜜桃一区二区三区四区| 国产精品蜜臀av| 6080日韩午夜伦伦午夜伦| 国产很黄免费观看久久| 夜夜精品浪潮av一区二区三区| 日韩一区二区免费在线电影| 成人黄色软件下载| 蜜臀久久99精品久久久久宅男| 国产午夜精品一区二区三区视频 | 免费成人av在线| 国产精品乱人伦| 91精品国产乱| 99久久综合精品| 老司机免费视频一区二区三区| 国产精品亲子伦对白| 欧美一区二区三区免费| 99精品久久久久久| 国产精品一二三区在线| 午夜精品成人在线| 中文字幕日韩精品一区| 精品少妇一区二区三区日产乱码 | 精品系列免费在线观看| 亚洲韩国一区二区三区| 日本一区二区视频在线| 日韩精品一区二区三区四区视频| 色综合欧美在线视频区| 国产精品一区二区不卡| 日韩av二区在线播放| 亚洲美女精品一区| 国产精品久久久久久久浪潮网站 | 久久婷婷综合激情| 制服.丝袜.亚洲.中文.综合 | 欧美福利电影网| 色综合久久中文字幕| 高清beeg欧美| 韩国精品久久久| 久久超碰97中文字幕| 五月婷婷激情综合| 性久久久久久久久| 亚洲福利一区二区三区| 亚洲美女视频在线| 一区二区在线观看免费| 中文字幕一区二区不卡| 国产精品久久毛片| 国产精品毛片高清在线完整版| 欧美videofree性高清杂交| 欧美一级高清片| 日韩欧美精品在线| 日韩欧美精品三级| 久久综合久久综合亚洲| 精品久久久久久久人人人人传媒| 91精品国产手机| 欧美一级片在线| 欧美大片一区二区| 久久久久国产精品人| 国产三级欧美三级日产三级99| 精品国产一区二区三区忘忧草| 欧美成人女星排行榜| 精品国产乱码久久久久久免费| 精品国产三级电影在线观看| 久久午夜电影网| 国产精品久久久一区麻豆最新章节| 亚洲欧洲日本在线| 一区二区三区在线免费播放| 亚洲成人免费观看| 五月婷婷激情综合网| 日本不卡一二三区黄网| 看片网站欧美日韩| 国产suv精品一区二区三区| gogo大胆日本视频一区| 在线免费观看日韩欧美| 欧美剧情电影在线观看完整版免费励志电影 | 午夜视黄欧洲亚洲| 秋霞午夜鲁丝一区二区老狼| 久久99国产精品成人| 成人黄色av网站在线| 在线看日本不卡| 精品少妇一区二区三区免费观看| 国产三区在线成人av| 又紧又大又爽精品一区二区| 日韩电影在线免费观看| 国产成人自拍网| 欧美视频一区二区三区在线观看 | 久久蜜桃av一区精品变态类天堂| 中文字幕精品一区二区精品绿巨人 | 国产日韩v精品一区二区| 欧美福利视频一区| 久久嫩草精品久久久久| 国产日韩欧美高清在线| 国产精品免费视频网站| 18成人在线观看| 日本午夜一本久久久综合| 国产精一品亚洲二区在线视频| 国产精品77777| caoporn国产一区二区| 日本道色综合久久| 精品国产乱码久久久久久久| 国产日韩影视精品| 一区二区三区欧美亚洲| 日本vs亚洲vs韩国一区三区 | 欧美亚洲综合在线| 日韩欧美专区在线| 精品国产乱码久久久久久牛牛| 国产精品污www在线观看| 亚洲综合视频网| 看片网站欧美日韩| 99久久久久久| 日韩欧美卡一卡二| 亚洲超碰97人人做人人爱| 韩国女主播一区| 欧美亚洲一区二区三区四区| 精品久久一二三区| 国产片一区二区| 奇米精品一区二区三区在线观看一| 国产精品白丝av| 欧美日韩亚洲不卡| 国产精品天天看| 亚洲国产精品天堂| 波多野结衣在线aⅴ中文字幕不卡| 欧美视频一区二区| 国产精品视频在线看| 日韩黄色在线观看| 国产精品综合一区二区三区| 欧美一级电影网站| 一区二区三区四区亚洲| 国产麻豆精品久久一二三| 欧美亚洲一区三区| 国产精品乱码人人做人人爱| 免费视频最近日韩| 欧美色图免费看| 国产欧美一区二区在线观看| 蜜臀av亚洲一区中文字幕| 在线免费观看日本欧美| 欧美激情自拍偷拍| 久久精品久久精品| 欧美一区二区免费观在线| 一区二区在线观看av| 国产成人精品三级| 2024国产精品| 麻豆久久久久久久| 欧美mv和日韩mv的网站| 日韩极品在线观看| 欧美日韩五月天| 亚洲激情成人在线| 久久国产精品无码网站| 日韩精品一区二区三区四区视频| 亚洲123区在线观看| 91精品1区2区| 亚洲欧美区自拍先锋| 色综合视频一区二区三区高清| 久久久久久久网| 激情五月播播久久久精品| 日韩一区二区三区视频| 亚洲激情男女视频| 欧美欧美欧美欧美| 天天亚洲美女在线视频| 6080亚洲精品一区二区| 日韩精品1区2区3区| 欧美精品一区二区三区视频| 久久精品国产久精国产| 欧美成人艳星乳罩| 狠狠色综合日日| 国产欧美一区二区三区在线老狼| 国产在线精品一区二区不卡了 | 99精品黄色片免费大全| 亚洲欧美乱综合| 欧美日韩中文精品| 午夜国产精品影院在线观看| 777色狠狠一区二区三区| 日韩国产一区二| 欧美mv和日韩mv国产网站| 国产精品1区2区| 国产精品久久久久久久岛一牛影视 |