lmalloc.h

来自「基于东南大学开发的SEP3203的ARM7中的所有驱动」· C头文件 代码 · 共 42 行

H
42
字号
/*************************************************************************
 *
 *  Copyright (C) Asic Center. 2001
 *  All Rights Reserved
 *
 *  Filename : malloc.h
 *  Function : 
 *  Revision :
 *          2001/10/16  Pessia      Create this file 
 ************************************************************************/
#ifndef LMALLOC_H
#define LMALLOC_H

#include "asixdef.h"

/* the material to be allocated */
/* 500000 bytes */
#define		Heapsize	500000

//#define		Memsem		USERSEMSTART + 1//semid

/* Disable debug */
#define		Memdebug	0	
//#define		DEBUG_CHL

#ifdef HOT_RESET_DEBUG_CODE_ENABLE
PUBLIC void SysLmallocInit(void);
#endif

PUBLIC void *SysLmalloc(DWORD nb);
PUBLIC void SysLfree(void * blk);
PUBLIC void *SysLrealloc(void *area, DWORD size);
PUBLIC void *SysLcalloc(DWORD size);

/* we don't use semaphore to wait for enough memory */
//void *SysLmallocw(WORD nb);
//void *SysLcallocw(unsigned size);

#endif /* LMALLOC_H */

 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?