/*---------------------------------------------------------------------------* Project: TwlSDK - SPI - include File: config.h Copyright 2003-2008 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. $Date:: 2008-09-18#$ $Rev: 8573 $ $Author: okubata_ryoma $ *---------------------------------------------------------------------------*/ #ifndef NITRO_SPI_COMMON_CONFIG_H_ #define NITRO_SPI_COMMON_CONFIG_H_ #ifdef __cplusplus extern "C" { #endif /*===========================================================================*/ #include #include #include // userInfo definition //#if ( SDK_NVRAM_FORMAT >= 300 ) #include //#else //#include //#endif // Storage position of userInfo in NVRAM //#ifdef SDK_TS #undef NVRAM_CONFIG_CONST_ADDRESS // User info position is obtained from header offset //#else //#define NVRAM_CONFIG_CONST_ADDRESS // Place user information at a fixed address //#endif //#ifdef NVRAM_CONFIG_CONST_ADDRESS //#define NVRAM_CONFIG_DATA_ADDRESS_DUMMY 0x3fe00 //#else #define NVRAM_CONFIG_DATA_OFFSET_ADDRESS 0x0020 #define NVRAM_CONFIG_DATA_OFFSET_SIZE 2 #define NVRAM_CONFIG_DATA_OFFSET_SHIFT 3 //#endif #define NVRAM_CONFIG_SAVE_COUNT_MAX 0x0080 // Max value of NitroConfigData.saveCount #define NVRAM_CONFIG_SAVE_COUNT_MASK 0x007f // Masks the range of NitroConfigData.saveCount values (0x00-0x7f) // MAC address storage location in NVRAM #define NVRAM_CONFIG_MACADDRESS_ADDRESS 0x00036 #define NVRAM_CONFIG_ENABLECHANNEL_ADDRESS 0x0003c /*===========================================================================*/ #ifdef __cplusplus } /* extern "C" */ #endif #endif /* NITRO_SPI_COMMON_CONFIG_H_ */ /*---------------------------------------------------------------------------* End of file *---------------------------------------------------------------------------*/