Eric Ebert
/
CoOS
CoOS Demonstrator adapted to mbed Hardware.
OsKernelHeap.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 OsKernelHeap.h |
ericebert | 0:57690853989a | 4 | * @version V1.1.3 |
ericebert | 0:57690853989a | 5 | * @date 2010.04.26 |
ericebert | 0:57690853989a | 6 | * @brief Header file related to memory management |
ericebert | 0:57690853989a | 7 | * @details This file including some defines and function declare related to |
ericebert | 0:57690853989a | 8 | * kernel heap management. |
ericebert | 0:57690853989a | 9 | ******************************************************************************* |
ericebert | 0:57690853989a | 10 | * @copy |
ericebert | 0:57690853989a | 11 | * |
ericebert | 0:57690853989a | 12 | * INTERNAL FILE,DON'T PUBLIC. |
ericebert | 0:57690853989a | 13 | * |
ericebert | 0:57690853989a | 14 | * <h2><center>© COPYRIGHT 2009 CooCox </center></h2> |
ericebert | 0:57690853989a | 15 | ******************************************************************************* |
ericebert | 0:57690853989a | 16 | */ |
ericebert | 0:57690853989a | 17 | |
ericebert | 0:57690853989a | 18 | |
ericebert | 0:57690853989a | 19 | #ifndef _KERNELHEAP_H |
ericebert | 0:57690853989a | 20 | #define _KERNELHEAP_H |
ericebert | 0:57690853989a | 21 | |
ericebert | 0:57690853989a | 22 | |
ericebert | 0:57690853989a | 23 | typedef struct KennelHeap |
ericebert | 0:57690853989a | 24 | { |
ericebert | 0:57690853989a | 25 | U32 startAddr; |
ericebert | 0:57690853989a | 26 | U32 endAddr; |
ericebert | 0:57690853989a | 27 | }KHeap,*P_KHeap; |
ericebert | 0:57690853989a | 28 | |
ericebert | 0:57690853989a | 29 | |
ericebert | 0:57690853989a | 30 | typedef struct UsedMemBlk |
ericebert | 0:57690853989a | 31 | { |
ericebert | 0:57690853989a | 32 | void* nextMB; |
ericebert | 0:57690853989a | 33 | void* preMB; |
ericebert | 0:57690853989a | 34 | }UMB,*P_UMB; |
ericebert | 0:57690853989a | 35 | |
ericebert | 0:57690853989a | 36 | |
ericebert | 0:57690853989a | 37 | typedef struct FreeMemBlk |
ericebert | 0:57690853989a | 38 | { |
ericebert | 0:57690853989a | 39 | struct FreeMemBlk* nextFMB; |
ericebert | 0:57690853989a | 40 | struct UsedMemBlk* nextUMB; |
ericebert | 0:57690853989a | 41 | struct UsedMemBlk* preUMB; |
ericebert | 0:57690853989a | 42 | }FMB,*P_FMB; |
ericebert | 0:57690853989a | 43 | |
ericebert | 0:57690853989a | 44 | /*---------------------------- Function Declare ------------------------------*/ |
ericebert | 0:57690853989a | 45 | extern void CoCreateKheap(void); |
ericebert | 0:57690853989a | 46 | |
ericebert | 0:57690853989a | 47 | #endif /* _KERNELHEAP_H */ |
ericebert | 0:57690853989a | 48 |