astroboy astroboy
/
CoOS_LWIP
Quick and dirty CoOS + LWIP ( Webserver )
CoOS/kernel/OsFlag.h@0:94897d537b31, 2011-09-10 (annotated)
- Committer:
- astroboy
- Date:
- Sat Sep 10 22:41:10 2011 +0000
- Revision:
- 0:94897d537b31
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
astroboy | 0:94897d537b31 | 1 | /** |
astroboy | 0:94897d537b31 | 2 | ******************************************************************************* |
astroboy | 0:94897d537b31 | 3 | * @file OsFlag.h |
astroboy | 0:94897d537b31 | 4 | * @version V1.1.4 |
astroboy | 0:94897d537b31 | 5 | * @date 2011.04.20 |
astroboy | 0:94897d537b31 | 6 | * @brief Evnet flag management header file |
astroboy | 0:94897d537b31 | 7 | * @details This file including some defines and declares about flag management. |
astroboy | 0:94897d537b31 | 8 | ******************************************************************************* |
astroboy | 0:94897d537b31 | 9 | * @copy |
astroboy | 0:94897d537b31 | 10 | * |
astroboy | 0:94897d537b31 | 11 | * INTERNAL FILE,DON'T PUBLIC. |
astroboy | 0:94897d537b31 | 12 | * |
astroboy | 0:94897d537b31 | 13 | * <h2><center>© COPYRIGHT 2009 CooCox </center></h2> |
astroboy | 0:94897d537b31 | 14 | ******************************************************************************* |
astroboy | 0:94897d537b31 | 15 | */ |
astroboy | 0:94897d537b31 | 16 | |
astroboy | 0:94897d537b31 | 17 | |
astroboy | 0:94897d537b31 | 18 | #ifndef _FLAG_H |
astroboy | 0:94897d537b31 | 19 | #define _FLAG_H |
astroboy | 0:94897d537b31 | 20 | |
astroboy | 0:94897d537b31 | 21 | /** |
astroboy | 0:94897d537b31 | 22 | * @struct FlagNode flag.h |
astroboy | 0:94897d537b31 | 23 | * @brief Flag node struct |
astroboy | 0:94897d537b31 | 24 | * @details |
astroboy | 0:94897d537b31 | 25 | */ |
astroboy | 0:94897d537b31 | 26 | typedef struct FlagNode |
astroboy | 0:94897d537b31 | 27 | { |
astroboy | 0:94897d537b31 | 28 | struct FlagNode* nextNode; /*!< A pointer to next flag node */ |
astroboy | 0:94897d537b31 | 29 | struct FlagNode* prevNode; /*!< A pointer to prev flag node */ |
astroboy | 0:94897d537b31 | 30 | U32 waitFlags; /*!< Flag value */ |
astroboy | 0:94897d537b31 | 31 | P_OSTCB waitTask; /*!< A pointer to task waitting flag */ |
astroboy | 0:94897d537b31 | 32 | U8 waitType; /*!< Wait type */ |
astroboy | 0:94897d537b31 | 33 | }FLAG_NODE,*P_FLAG_NODE; |
astroboy | 0:94897d537b31 | 34 | |
astroboy | 0:94897d537b31 | 35 | |
astroboy | 0:94897d537b31 | 36 | /** |
astroboy | 0:94897d537b31 | 37 | * @struct Flag flag.h |
astroboy | 0:94897d537b31 | 38 | * @brief Flag control block |
astroboy | 0:94897d537b31 | 39 | * @details This struct use to mange event flag. |
astroboy | 0:94897d537b31 | 40 | */ |
astroboy | 0:94897d537b31 | 41 | typedef struct Flag |
astroboy | 0:94897d537b31 | 42 | { |
astroboy | 0:94897d537b31 | 43 | U32 flagRdy; /*!< Ready flag */ |
astroboy | 0:94897d537b31 | 44 | U32 resetOpt; /*!< Reset option */ |
astroboy | 0:94897d537b31 | 45 | U32 flagActive; /*!< Active flag */ |
astroboy | 0:94897d537b31 | 46 | P_FLAG_NODE headNode; /*!< Head node */ |
astroboy | 0:94897d537b31 | 47 | P_FLAG_NODE tailNode; /*!< Tail node */ |
astroboy | 0:94897d537b31 | 48 | }FCB,*P_FCB; |
astroboy | 0:94897d537b31 | 49 | |
astroboy | 0:94897d537b31 | 50 | |
astroboy | 0:94897d537b31 | 51 | /*---------------------------- Variable declare ------------------------------*/ |
astroboy | 0:94897d537b31 | 52 | extern FCB FlagCrl; |
astroboy | 0:94897d537b31 | 53 | |
astroboy | 0:94897d537b31 | 54 | /*---------------------------- Function declare ------------------------------*/ |
astroboy | 0:94897d537b31 | 55 | extern void RemoveLinkNode(P_FLAG_NODE pnode); |
astroboy | 0:94897d537b31 | 56 | #endif |
astroboy | 0:94897d537b31 | 57 |