CooCox 1.1.4 on mbed with simple blinky example

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers OsKernelHeap.h Source File

OsKernelHeap.h

Go to the documentation of this file.
00001 /**
00002  *******************************************************************************
00003  * @file       OsKernelHeap.h
00004  * @version    V1.1.4    
00005  * @date       2011.04.20
00006  * @brief      Header file related to memory management 
00007  * @details    This file including some defines and function declare related to 
00008  *             kernel heap management. 
00009  *******************************************************************************
00010  * @copy
00011  *
00012  * INTERNAL FILE,DON'T PUBLIC.
00013  * 
00014  * <h2><center>&copy; COPYRIGHT 2009 CooCox </center></h2>
00015  *******************************************************************************
00016  */ 
00017 
00018 
00019 #ifndef  _KERNELHEAP_H
00020 #define  _KERNELHEAP_H
00021 
00022 
00023 typedef struct KennelHeap
00024 {
00025   U32   startAddr;
00026   U32   endAddr;
00027 }KHeap,*P_KHeap;
00028 
00029 
00030 typedef struct UsedMemBlk
00031 {
00032   void* nextMB;
00033   void* preMB;  
00034 }UMB,*P_UMB;
00035 
00036 
00037 typedef struct FreeMemBlk
00038 {
00039   struct FreeMemBlk* nextFMB;
00040   struct UsedMemBlk* nextUMB;
00041   struct UsedMemBlk* preUMB;
00042 }FMB,*P_FMB;
00043 
00044 /*---------------------------- Function Declare ------------------------------*/
00045 extern void   CoCreateKheap(void);
00046 
00047 #endif  /* _KERNELHEAP_H */
00048