1 /*---------------------------------------------------------------------------* 2 Project: TwlSDK - MB - demos - multiboot-PowerSave 3 File: common.h 4 5 Copyright 2006-2008 Nintendo. All rights reserved. 6 7 These coded instructions, statements, and computer programs contain 8 proprietary information of Nintendo of America Inc. and/or Nintendo 9 Company Ltd., and are protected by Federal copyright law. They may 10 not be disclosed to third parties or copied or duplicated in any form, 11 in whole or in part, without the prior written consent of Nintendo. 12 13 $Date:: 2008-09-18#$ 14 $Rev: 8573 $ 15 $Author: okubata_ryoma $ 16 *---------------------------------------------------------------------------*/ 17 #if !defined(NITRO_MB_DEMO_MULTIBOOT_POWERSAVE_COMMON_H_) 18 #define NITRO_MB_DEMO_MULTIBOOT_POWERSAVE_COMMON_H_ 19 20 21 #ifdef SDK_TWL 22 #include <twl.h> 23 #else 24 #include <nitro.h> 25 #endif 26 27 28 /*****************************************************************************/ 29 /* Variables */ 30 31 /* Configures power-save mode */ 32 extern BOOL g_power_save_mode; 33 34 35 /*****************************************************************************/ 36 /* Functions */ 37 38 /*---------------------------------------------------------------------------* 39 Name: ReadKeySetTrigger 40 41 Description: Detects key trigger. 42 43 Arguments: None. 44 45 Returns: A bit set showing the keys that were pressed during this invocation and not the previous one. 46 47 *---------------------------------------------------------------------------*/ 48 u16 ReadKeySetTrigger(void); 49 50 /*---------------------------------------------------------------------------* 51 Name: MenuMode 52 53 Description: Initial settings menu for the DS Single-Card parent device. 54 55 Arguments: None. 56 57 Returns: None. 58 *---------------------------------------------------------------------------*/ 59 void MenuMode(void); 60 61 /*---------------------------------------------------------------------------* 62 Name: ParentMode 63 64 Description: DS Single-Card play parent processing. 65 66 Arguments: None. 67 68 Returns: None. 69 *---------------------------------------------------------------------------*/ 70 void ParentMode(void); 71 72 73 #endif /* !defined(NITRO_MB_DEMO_MULTIBOOT_POWERSAVE_COMMON_H_) */ 74