1 /*---------------------------------------------------------------------------*
2   Project:  TwlSDK
3   File:     twl_hybrid.h
4 
5   Copyright 2008-2009 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:: 2009-06-04#$
14   $Rev: 10698 $
15   $Author: okubata_ryoma $
16  *---------------------------------------------------------------------------*/
17 #ifndef TWL_HYBRID_H_
18 #define TWL_HYBRID_H_
19 
20 #ifdef  SDK_ASM
21 //-------------------------------- SDK_ASM
22 #ifndef  SDK_TWL
23 //---- NITRO
24 #include <nitro/spec.h>
25 #include <nitro/types.h>
26 #include <nitro/memorymap.h>
27 #include <nitro/hw/common/armArch.h>
28 #else
29 //---- TWL
30 #include <twl/spec.h>
31 #include <twl/types.h>
32 #include <twl/memorymap.h>
33 #include <twl/hw/common/armArch.h>
34 #endif //SDK_NITRO
35 
36 #else  //SDK_ASM
37 //-------------------------------- not SDK_ASM
38 //
39 // Workaround for no macro warnings on CW:
40 //  - __embedded_cplusplus in MSL_C\MSL_ARM\Include\ansi_prefix.ARM.h
41 //  - __VEC__              in MSL_C\MSL_Common\Include\stdlib.h
42 //  - _MSL_USE_INLINE      in MSL_C\MSL_ARM\Include\math.ARM.h,
43 //
44 #ifdef        __MWERKS__
45 #  ifdef      __cplusplus
46 #    ifndef   __embedded_cplusplus
47 #      define __embedded_cplusplus 0
48 #    endif
49 #    ifndef   __VEC__
50 #      define __VEC__			0
51 #    endif
52 #  endif
53 #  if         !defined(_MSL_USE_INLINE) && __option(dont_inline)
54 #  define     _MSL_USE_INLINE		0
55 #  endif
56 #endif
57 
58 #ifndef SDK_TWL
59 //---------------- for NITRO
60 #include <nitro/spec.h>
61 #include <nitro/misc.h>
62 #include <nitro/init/crt0.h>
63 
64 #include <nitro/types.h>
65 #include <nitro/memorymap.h>
66 #include <nitro/hw/common/armArch.h>
67 #include <nitro/hw/common/lcd.h>
68 
69 #include <nitro/os.h>
70 #include <nitro/mi.h>
71 #else
72 //---------------- for TWL
73 #include <twl/spec.h>
74 #include <twl/misc.h>
75 #include <twl/init/crt0.h>
76 
77 #include <twl/types.h>
78 #include <twl/memorymap.h>
79 #include <twl/hw/common/armArch.h>
80 #include <nitro/hw/common/lcd.h>
81 
82 #include <twl/os.h>
83 #include <twl/mi.h>
84 #endif // SDK_NITRO
85 
86 //---------------- for common
87 #include <nitro/pxi.h>
88 #include <nitro/pad.h>
89 
90 #ifndef SDK_TWL
91 //---------------- for NITRO
92 #include <nitro/spi.h>
93 #include <nitro/rtc.h>
94 #include <nitro/snd.h>
95 #else
96 //---------------- for TWL
97 #include <twl/spi.h>
98 #include <twl/rtc.h>
99 #include <twl/snd.h>
100 #endif
101 
102 //---------------- for common
103 #include <nitro/card.h>
104 #include <nitro/fs.h>
105 #include <nitro/gx.h>
106 #include <nitro/wm.h>
107 #include <nitro/wvr.h>
108 #include <nitro/ctrdg.h>
109 #include <nitro/math.h>
110 //#include <nitro/utest.h>
111 #include <nitro/std.h>
112 
113 #ifdef SDK_TWL
114 //---------------- for TWL
115 #include <twl/nwm.h>
116 #include <twl/scfg.h>
117 #include <twl/camera.h>
118 #include <twl/dsp.h>
119 #endif
120 
121 //---------------- for common
122 #ifdef  SDK_ARM9
123 //---- only for ARM9
124 #include <nitro/fx/fx.h>
125 #include <nitro/fx/fx_const.h>
126 #include <nitro/fx/fx_trig.h>
127 #include <nitro/fx/fx_cp.h>
128 #include <nitro/fx/fx_vec.h>
129 #include <nitro/fx/fx_mtx.h>
130 #include <nitro/cp.h>
131 #include <nitro/ext.h>
132 #include <nitro/mb.h>
133 #include <nitro/wbt.h>
134 #include <nitro/wfs.h>
135 #include <nitro/env.h>
136 #include <nitro/vib.h>
137 
138 #else  //SDK_ARM7
139 //---- only for ARM7
140 #include <nitro/exi.h>
141 
142 #endif //SDK_ARM7
143 
144 //------------------------------------------------
145 #endif //SDK_ASM
146 
147 /* TWL_HYBRID_H_ */
148 #endif
149