#include <nitro/mi.h>
void MIi_SetCartridgeProcessor( MIProcessor proc )
proc | Setup for access rights |
None.
This function sets up access rights to the AGB compatible 32-pin cartridge slot hardware. The argument proc
is in MIProcessor
enumeration format and has the following meanings:
MI_PROCESSOR_ARM9 |
Sets access permission to ARM9. |
MI_PROCESSOR_ARM7 |
Sets access permission to ARM7. |
Note: If a debug print is carried out with OS_Printf()
while using the TEG version of the IS_NITRO_EMULATOR, the access rights will go to the ARM7 processor.
Do not use this function as the usual method of setting up access rights. Carry out the process while considering spinLock
with OS_LockCartridge()
and OS_TryLockCartridge()
.
Accesses the EXMEMCNT
I/O register (0x4000204)
.
08/17/2004 Standardized the notation of IS-NITRO-EMULATOR.
03/30/2004 "MI_
" is changed to "MIi_
".
03/16/2004 Description of going to ARM7 when debug print is carried out.
01/14/2004 Changed function name from MI_SetCartridgePriority.
12/25/2003 Changed enum name to MIProcessor.
12/18/2003 Initial version.