electronix79
/
CoOS_mbed
CooCox 1.1.4 on mbed with simple blinky example
Embed:
(wiki syntax)
Show/hide line numbers
OsFlag.h
Go to the documentation of this file.
00001 /** 00002 ******************************************************************************* 00003 * @file OsFlag.h 00004 * @version V1.1.4 00005 * @date 2011.04.20 00006 * @brief Evnet flag management header file 00007 * @details This file including some defines and declares about flag management. 00008 ******************************************************************************* 00009 * @copy 00010 * 00011 * INTERNAL FILE,DON'T PUBLIC. 00012 * 00013 * <h2><center>© COPYRIGHT 2009 CooCox </center></h2> 00014 ******************************************************************************* 00015 */ 00016 00017 00018 #ifndef _FLAG_H 00019 #define _FLAG_H 00020 00021 /** 00022 * @struct FlagNode flag.h 00023 * @brief Flag node struct 00024 * @details 00025 */ 00026 typedef struct FlagNode 00027 { 00028 struct FlagNode* nextNode ; /*!< A pointer to next flag node */ 00029 struct FlagNode* prevNode ; /*!< A pointer to prev flag node */ 00030 U32 waitFlags ; /*!< Flag value */ 00031 P_OSTCB waitTask ; /*!< A pointer to task waitting flag */ 00032 U8 waitType ; /*!< Wait type */ 00033 }FLAG_NODE,*P_FLAG_NODE; 00034 00035 00036 /** 00037 * @struct Flag flag.h 00038 * @brief Flag control block 00039 * @details This struct use to mange event flag. 00040 */ 00041 typedef struct Flag 00042 { 00043 U32 flagRdy ; /*!< Ready flag */ 00044 U32 resetOpt ; /*!< Reset option */ 00045 U32 flagActive ; /*!< Active flag */ 00046 P_FLAG_NODE headNode ; /*!< Head node */ 00047 P_FLAG_NODE tailNode ; /*!< Tail node */ 00048 }FCB,*P_FCB; 00049 00050 00051 /*---------------------------- Variable declare ------------------------------*/ 00052 extern FCB FlagCrl ; 00053 00054 /*---------------------------- Function declare ------------------------------*/ 00055 extern void RemoveLinkNode(P_FLAG_NODE pnode); 00056 #endif 00057
Generated on Tue Jul 12 2022 18:19:10 by 1.7.2