www.pudn.com > MP3+JPEG.rar > VarDefine.h
//========================================================================= // The information contained herein is the exclusive property of Sunplus // Technology Co. And shall not be distributed, reproduced, or disclosed // in whole in part without prior written permission. // (C) Copyright 2003 Sunplus Technology Co. All rights reserved. // The entire notice above must be reproduced on all authorized copies //========================================================================= //========================================================================= // project name: u'nSP Buddy System // Project Description:u'nSP Buddy System on MiniOS // Environment: SPL16256 with 47.9232MHz // SUNPLUS u'nSPTM IDE 1.8.1£¨or later£© // Library Dependency: OS-Lib: SpOSA153.lib // // Author: wang quan // Date: 2003.12.10 // E-mail: unsp@sunnorth.com.cn // Revision history: // ------------------------------------------------------------------------ // YYYY-MM-DD Modified By Description // ------------------------------------------------------------------------ //========================================================================== #ifndef __VARDEFINE_h__ #define __VARDEFINE_h__ // write your header here /*************************************************/ #include "BuddyStruct.h" /*************************************************/ extern const unsigned int _BS_Num; extern const unsigned int _BS_MinBlock; extern const unsigned int _BS_MaxBlock; extern const unsigned int _BS_StackSize; extern const unsigned int _BS_ListBlock; extern const unsigned int _BS_BlockExp; extern const unsigned int _BS_ExtNum; extern const unsigned int _BS_ExtMinBlock; extern const unsigned int _BS_ExtMaxBlock; extern const unsigned int _BS_ExtListBlock; extern const unsigned int _BS_ExtBlockExp; extern const unsigned int _BS_ExtRAMSection; extern const ExtRAM_list _BS_RAMSection[]; extern free_list_head _BS_HeadList[]; extern Extfree_list_head _BS_ExtHeadList[]; extern int _BS_RAMMask; extern int _BS_TotalSize; extern unsigned int _BS_ExtTotalSize; extern unsigned long _BS_ExtRAMMask; /*************************************************/ extern int Mem_GetMemStart (void); extern int Mem_GetMemMax (void); extern int AddFreeBlock(int BuddyAdr,int Index); extern int AddExtFreeBlock(unsigned long BuddyAdr,int Index); extern void ClearExtRAMArea(unsigned int ExtTotalSize, unsigned long ExtRamStart); /*************************************************/ #endif