1 /*---------------------------------------------------------------------------*
2   Project:  TwlSDK - os - include
3   File:     codecmode.h
4 
5   Copyright 2007-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-10-08#$
14   $Rev: 8904 $
15   $Author: yada $
16  *---------------------------------------------------------------------------*/
17 #ifndef TWL_OS_COMMON_CODECMODE_H_
18 #define TWL_OS_COMMON_CODECMODE_H_
19 #ifdef  __cplusplus
20 extern  "C" {
21 #endif
22 /*---------------------------------------------------------------------------*/
23 
24 #include    <twl/types.h>
25 #ifdef  SDK_ARM9
26 #include    <twl/memorymap.h>
27 #else
28 #include    <twl/memorymap_sp.h>
29 #endif
30 
31 typedef enum
32 {
33     OS_CODECMODE_NITRO = 0,
34     OS_CODECMODE_TWL   = 1
35 }
36 OSCodecMode;
37 
38 #define OS_IsCodecTwlMode OSi_IsCodecTwlMode
39 
40 //---- internal
41 #ifdef SDK_TWL
42 BOOL OSi_IsCodecTwlMode(void);
43 #else // SDK_NITRO
44 #define OSi_IsCodecTwlMode()  (FALSE)
45 #endif
46 
47 /*---------------------------------------------------------------------------*/
48 #ifdef __cplusplus
49 }   /* extern "C" */
50 #endif
51 #endif  /* TWL_OS_COMMON_CODECMODE_H_ */
52