/*---------------------------------------------------------------------------* Project: Wii Connect 24 API demos File: base.h Copyright 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: base.h,v $ Revision 1.1 2006/08/24 12:32:28 terui new additions $NoKeywords: $ *---------------------------------------------------------------------------*/ #ifndef __DEMOS_NWC24DEMO_BASE_H__ #define __DEMOS_NWC24DEMO_BASE_H__ #include #ifdef __cplusplus extern "C" { #endif /*===========================================================================*/ /* * Network setting set by the end user are saved in NAND flash memory. * Typically, this stored network setting will be read * automatically through the firmware, so there is no need to change the setting. * If you wish to match the development environment settings without rewriting the NAND flash memory, * you may make debug setting change temporarily. */ #ifdef NDEBUG #undef TEMPORARY_CONFIG #else #define TEMPORARY_CONFIG 1 #endif /*---------------------------------------------------------------------------*/ static inline void SetInAddr( u8* addr, u8 para0, u8 para1, u8 para2, u8 para3 ) { addr[ 0 ] = para0; addr[ 1 ] = para1; addr[ 2 ] = para2; addr[ 3 ] = para3; } static inline void SetInAddr32( u8* addr, u32 para ) { addr[ 0 ] = (u8)( ( para >> 24 ) & 0x0ff ); addr[ 1 ] = (u8)( ( para >> 16 ) & 0x0ff ); addr[ 2 ] = (u8)( ( para >> 8 ) & 0x0ff ); addr[ 3 ] = (u8)( ( para >> 0 ) & 0x0ff ); } /*---------------------------------------------------------------------------*/ u8 GetConfigId( void ); /*===========================================================================*/ #ifdef __cplusplus } #endif #endif /* __DEMOS_NWC24DEMO_BASE_H__ */ /*---------------------------------------------------------------------------* End of file *---------------------------------------------------------------------------*/