Eric Ebert
/
CoOS
CoOS Demonstrator adapted to mbed Hardware.
OsQueue.h@0:57690853989a, 2010-12-03 (annotated)
- Committer:
- ericebert
- Date:
- Fri Dec 03 19:45:30 2010 +0000
- Revision:
- 0:57690853989a
Some basic LED-Flashing works in the CoOS-RTOS using Tasks
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ericebert | 0:57690853989a | 1 | /** |
ericebert | 0:57690853989a | 2 | ******************************************************************************* |
ericebert | 0:57690853989a | 3 | * @file OsQueue.h |
ericebert | 0:57690853989a | 4 | * @version V1.1.3 |
ericebert | 0:57690853989a | 5 | * @date 2010.04.26 |
ericebert | 0:57690853989a | 6 | * @brief Queue management header file |
ericebert | 0:57690853989a | 7 | * @details This file including some defines and declares about queue management. |
ericebert | 0:57690853989a | 8 | ******************************************************************************* |
ericebert | 0:57690853989a | 9 | * @copy |
ericebert | 0:57690853989a | 10 | * |
ericebert | 0:57690853989a | 11 | * INTERNAL FILE,DON'T PUBLIC. |
ericebert | 0:57690853989a | 12 | * |
ericebert | 0:57690853989a | 13 | * <h2><center>© COPYRIGHT 2009 CooCox </center></h2> |
ericebert | 0:57690853989a | 14 | ******************************************************************************* |
ericebert | 0:57690853989a | 15 | */ |
ericebert | 0:57690853989a | 16 | |
ericebert | 0:57690853989a | 17 | |
ericebert | 0:57690853989a | 18 | #ifndef _QUEUE_H |
ericebert | 0:57690853989a | 19 | #define _QUEUE_H |
ericebert | 0:57690853989a | 20 | |
ericebert | 0:57690853989a | 21 | |
ericebert | 0:57690853989a | 22 | /** |
ericebert | 0:57690853989a | 23 | * @struct Queue queue.h |
ericebert | 0:57690853989a | 24 | * @brief Queue struct |
ericebert | 0:57690853989a | 25 | * @details This struct use to manage queue. |
ericebert | 0:57690853989a | 26 | * |
ericebert | 0:57690853989a | 27 | */ |
ericebert | 0:57690853989a | 28 | typedef struct Queue |
ericebert | 0:57690853989a | 29 | { |
ericebert | 0:57690853989a | 30 | void **qStart; /*!< */ |
ericebert | 0:57690853989a | 31 | U8 id; /*!< */ |
ericebert | 0:57690853989a | 32 | U16 head; /*!< The header of queue */ |
ericebert | 0:57690853989a | 33 | U16 tail; /*!< The end of queue */ |
ericebert | 0:57690853989a | 34 | U16 qMaxSize; /*!< The max size of queue */ |
ericebert | 0:57690853989a | 35 | U16 qSize; /*!< Current size of queue */ |
ericebert | 0:57690853989a | 36 | }QCB,*P_QCB; |
ericebert | 0:57690853989a | 37 | |
ericebert | 0:57690853989a | 38 | |
ericebert | 0:57690853989a | 39 | #endif |