1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3
4<head>
5<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
6<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows">
7<META http-equiv="Content-Style-Type" content="text/css">
8<title>MI_SetWramBank</title>
9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css">
10</head>
11
12<body>
13
14<h1 align="left">MI_SetWramBank </h1>
15<h2>Syntax</h2>
16
17<dl>
18  <dd>
19<CODE>#include &lt;nitro/mi.h&gt;</CODE><BR>
20  <BR>
21  <CODE>void MI_SetWramBank( MIWram cnt )</CODE><br>
22  </dd>
23</dl>
24<h2>Arguments</h2>
25<TABLE border="1" width="100%">
26  <TBODY>
27    <TR>
28      <TD width="13%"><EM><STRONG>cnt</STRONG></EM></TD>
29      <TD width="87%">Work RAM allocation setting</TD>
30    </TR>
31  </TBODY>
32</TABLE>
33
34<h2>Return Values</h2>
35<p>None.</p>
36
37<H2>Description</H2>
38<P>This function allocates the work RAM that is shared between ARM9 and ARM7. The argument <EM><STRONG><code>cnt</code></STRONG></EM> is in the <CODE>MI_WRAM</CODE> enum format and has the following meanings.</P>
39<TABLE>
40  <TBODY>
41    <TR>
42      <TD bgcolor="#e0e0e0"><CODE>MI_WRAM_ARM9_ALL</CODE></TD>
43      <TD bgcolor="#e0e0e0">Allocates all blocks (32KB) to ARM9.</TD>
44    </TR>
45    <TR>
46      <TD bgcolor="#e0e0e0"><CODE>MI_WRAM_1616_1</CODE></TD>
47      <TD bgcolor="#e0e0e0">Allocates block1 (16KB) to ARM9, and block0 (16KB) to ARM7.</TD>
48    </TR>
49    <TR>
50      <TD bgcolor="#e0e0e0"><CODE>MI_WRAM_1616_2</CODE></TD>
51      <TD bgcolor="#e0e0e0">Allocates block0 (16KB) to ARM9, and block1 (16KB) to ARM7.</TD>
52    </TR>
53    <TR>
54      <TD bgcolor="#e0e0e0"><CODE>MI_WRAM_ARM7_ALL</CODE></TD>
55      <TD bgcolor="#e0e0e0">Allocates all blocks (32KB) to ARM7.</TD>
56    </TR>
57  </TBODY>
58</TABLE>
59<h2>Internal Operation</h2>
60<p>Accesses the WVRAMCNT I/O register (0x4000244) and WRAM BANK (d24 - d25).</p>
61
62<h2>See Also</h2>
63<p>None.</p>
64
65<H2>Revision History</H2>
66<P>2004/03/12 Corrected <CODE>MI_SetWRAMBank()</CODE> to <CODE>MI_SetWramBank()</CODE>.<BR> 2003/12/24 Initial version.</P>
67<hr><p>CONFIDENTIAL</p></body>
68</html>
69