![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
CoOS Demonstrator adapted to mbed Hardware.
Diff: OsKernelHeap.h
- Revision:
- 0:57690853989a
diff -r 000000000000 -r 57690853989a OsKernelHeap.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/OsKernelHeap.h Fri Dec 03 19:45:30 2010 +0000 @@ -0,0 +1,48 @@ +/** + ******************************************************************************* + * @file OsKernelHeap.h + * @version V1.1.3 + * @date 2010.04.26 + * @brief Header file related to memory management + * @details This file including some defines and function declare related to + * kernel heap management. + ******************************************************************************* + * @copy + * + * INTERNAL FILE,DON'T PUBLIC. + * + * <h2><center>© COPYRIGHT 2009 CooCox </center></h2> + ******************************************************************************* + */ + + +#ifndef _KERNELHEAP_H +#define _KERNELHEAP_H + + +typedef struct KennelHeap +{ + U32 startAddr; + U32 endAddr; +}KHeap,*P_KHeap; + + +typedef struct UsedMemBlk +{ + void* nextMB; + void* preMB; +}UMB,*P_UMB; + + +typedef struct FreeMemBlk +{ + struct FreeMemBlk* nextFMB; + struct UsedMemBlk* nextUMB; + struct UsedMemBlk* preUMB; +}FMB,*P_FMB; + +/*---------------------------- Function Declare ------------------------------*/ +extern void CoCreateKheap(void); + +#endif /* _KERNELHEAP_H */ +