欢迎来到天天文库
浏览记录
ID:37344037
大小:138.50 KB
页数:40页
时间:2019-05-22
《μCOS-II中OS_FLAG.C源码中文注释版》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、xilentz的网络文摘博客园 首页 新随笔 联系 订阅 管理随笔-204 文章-0 评论-10 trackbacks-0OS_FLAG.C/*********************************************************************************************************** uC/OS-II*
2、 TheReal-TimeKernel* EVENTFLAG MANAGEMENT** (c)Copyright2001-2002,JeanJ.Labrosse,Weston,FL* AllRightsReserved**File:OS_FLAG.C*By :JeanJ.Labrosse*****
3、*****************************************************************************************************/#ifndef OS_MASTER_FILE#include"INCLUDES.H"#endif#if(OS_VERSION>=251)&&(OS_FLAG_EN>0)&&(OS_MAX_FLAGS>0)/****************************************************************
4、******************************************* LOCALPROTOTYPES 局部定义**********************************************************************************************************/static
5、 void OS_FlagBlock(OS_FLAG_GRP*pgrp,OS_FLAG_NODE*pnode,OS_FLAGSflags,INT8Uwait_type,INT16Utimeout);static BOOLEAN OS_FlagTaskRdy(OS_FLAG_NODE*pnode,OS_FLAGSflags_rdy);/*$PAGE*//*****************************************************************************************
6、****************** CHECKTHESTATUSOFFLAGSINANEVENTFLAGGROUP**Description:Thisfunctioniscalledtocheckthestatusofacombinationofbitstobesetorcleared* inaneventflaggroup. YourapplicationcancheckforANYbittobeset/clearedorALL*
7、 bitstobeset/cleared.** Thiscalldoesnotblockifthedesiredflagsarenotpresent.**Arguments :pgrp isapointertothedesiredeventflaggroup.** flags Isabitpatternindicatingwhichbit(s)(i.e.flags)youwishtocheck.* T
8、hebitsyouwantarespecifiedbysettingthecorrespondingbitsin* 'flags'. e.g.ifyourapplicationwan
此文档下载收益归作者所有