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