#include <nitro/mi.h>
void MI_SetWramBank( MIWram cnt )
cnt | Work RAM allocation setting |
None.
This function allocates the work RAM that is shared between ARM9 and ARM7. The argument cnt
is in the MI_WRAM
enum format and has the following meanings.
MI_WRAM_ARM9_ALL |
Allocates all blocks (32KB) to ARM9. |
MI_WRAM_1616_1 |
Allocates block1 (16KB) to ARM9, and block0 (16KB) to ARM7. |
MI_WRAM_1616_2 |
Allocates block0 (16KB) to ARM9, and block1 (16KB) to ARM7. |
MI_WRAM_ARM7_ALL |
Allocates all blocks (32KB) to ARM7. |
Accesses the WVRAMCNT I/O register (0x4000244) and WRAM BANK (d24 - d25).
None.
2004/03/12 Corrected MI_SetWRAMBank()
to MI_SetWramBank()
.
2003/12/24 Initial version.
CONFIDENTIAL