1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<HTML> 3<HEAD> 4<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 5<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows"> 6<META http-equiv="Content-Style-Type" content="text/css"> 7<TITLE>MI_SetMainMemoryPriority</TITLE> 8<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 9</HEAD> 10<BODY> 11<H1 align="left">MI_SetMainMemoryPriority <IMG src="../../image/NTR.gif" align="middle"><IMG src="../../image/TWL.gif" align="middle"></H1> 12<H2>Syntax</H2> 13<DL> 14 <DD><CODE>#include <nitro/mi.h></CODE><BR> 15 <BR> 16 <CODE>void MI_SetMainMemoryPriority( MIProcessor proc )</CODE> 17</DL> 18<H2>Arguments</H2> 19<TABLE border="1" width="100%"> 20 <TBODY> 21 <TR> 22 <TD width="13%"><EM><STRONG>proc</STRONG></EM></TD> 23 <TD width="87%">Access priority setting</TD> 24 </TR> 25 </TBODY> 26</TABLE> 27<H2>Return Values</H2> 28<P>None.</P> 29<H2>Description</H2> 30<P>This function sets the priority for access to the main memory. It sets the priority for instances when both ARM9 and ARM7 are accessed simultaneously. The argument <EM><STRONG><code>proc</code></STRONG></EM> is in <CODE>MIProcessor</CODE> enumeration format and has the following meanings:</P> 31<TABLE> 32 <TBODY> 33 <TR> 34 <TD bgcolor="#e0e0e0"><CODE>MI_PROCESSOR_ARM9</CODE></TD> 35 <TD bgcolor="#e0e0e0">Gives priority to ARM9.</TD> 36 </TR> 37 <TR> 38 <TD bgcolor="#e0e0e0"><CODE>MI_PROCESSOR_ARM7</CODE></TD> 39 <TD bgcolor="#e0e0e0">Gives priority to ARM7.</TD> 40 </TR> 41 </TBODY> 42</TABLE> 43<P>By default, priority is set to ARM7.</P> 44<P><FONT color="#ff3300">Caution: If you use this function to keep priority to ARM9, then there is a risk that ARM7 will stall and the wireless and sound processes will not behave normally.</FONT></P> 45 46<H2>Internal Operation</H2> 47<P>Accesses the <code>EXMEMCNT</code> I/O register <code>(0x4000204)</code>.</P> 48<H2>See Also</H2> 49<P><A href="MI_GetMainMemoryPriority.html"><code>MI_GetMainMemoryPriority</code></A>, <a href="../dma/MI_DispMemDmaCopy.html"><code>MI_DispMemDmaCopy</code></a>, <a href="../dma/MI_HBlankDmaCopy.html"><code>MI_HBlankDmaCopy</code></a></P> 50<H2>Revision History</H2> 51<P>2007/05/09 Added a Caution note to the description <BR>2004/08/26 Added <CODE>MI_DispMemDmaCopy</CODE> to See Also.<br> 2003/12/25 <CODE>enum</CODE> name changed to <CODE>MIProcessor</CODE>.<BR> 2003/12/18 Initial version.</P> 52<hr><p>CONFIDENTIAL</p></body> 53</HTML>