/*---------------------------------------------------------------------------* Project: Utilities for sample programs of NAND library File: util.h Programmer: HIRATSU Daisuke Copyright (C) 2006 Nintendo. All rights reserved. These coded instructions, statements, and computer programs contain proprietary information of Nintendo of America Inc. and/or Nintendo Company Ltd., and are protected by Federal copyright law. They may not be disclosed to third parties or copied or duplicated in any form, in whole or in part, without the prior written consent of Nintendo. $Log: util.h,v $ Revision 1.2 03/17/2006 02:39:58 hiratsu Implemented MEM library wrapper in order to allocate buffer from MEM2 with 32byte alignment. Revision 1.1 01/24/2006 12:35:50 hiratsu Utility functions for NAND library demo program. *---------------------------------------------------------------------------*/ #ifndef __UTIL_H__ #define __UTIL_H__ #include #ifdef __cplusplus extern "C" { #endif void initializeHeap(void); void finalizeHeap(void); void* alloc32(u32 size); void free32(void *addr); void printErrMsg(s32 err); #ifdef __cplusplus } #endif #endif // end of __UTIL_H__