System Control Functions

Functions


Function Documentation

void hel_SysSetPrefetch ( u32  Value  ) 

Enable/Disable Prefetch buffer.

When prefetch buffer is enabled, the GBA attempts to read opcodes from Game Pak ROM during periods when the CPU is not using the bus (if any). Memory access is then performed with 0 Waits if the CPU requests data which is already stored in the buffer.

Parameters:
[in] Value Set this either to TRUE or FALSE, whether you want to enable or disable the Prefetch buffer.
Note:
Description copied from GBATek (System Control section)

void hel_SysSetWaitState0 ( u32  FirstAccess,
u32  SecondAccess 
)

Configure GamePak ROM access timings.

First Access (Non-sequential) and Second Access (Sequential) define the waitstates for N and S cycles, the actual access time is 1 clock cycle PLUS the number of waitstates. GamePak uses 16bit data bus, so that a 32bit access is split into TWO 16bit accesses (of which, the second fragment is always sequential, even if the first fragment was non-sequential).

Parameters:
[in] FirstAccess 
  • 0 = 4 cycles
  • 1 = 3 cycles
  • 2 = 2 cycles
  • 3 = 8 cycles
[in] SecondAccess 
  • 0 = 2 cycles
  • 1 = 1 cycle
Note:
Description copied from GBATek (System Control section)
See also:
hel_SysSetWaitState1#, hel_SysSetWaitState2

void hel_SysSetWaitState1 ( u32  FirstAccess,
u32  SecondAccess 
)

Configure GamePak ROM access timings.

Parameters:
[in] FirstAccess 
  • 0 = 4 cycles
  • 1 = 3 cycles
  • 2 = 2 cycles
  • 3 = 8 cycles
[in] SecondAccess 
  • 0 = 4 cycles
  • 1 = 1 cycle
See also:
hel_SysSetWaitState0#, hel_SysSetWaitState2

void hel_SysSetWaitState2 ( u32  FirstAccess,
u32  SecondAccess 
)

Configure GamePak ROM access timings.

Parameters:
[in] FirstAccess 
  • 0 = 4 cycles
  • 1 = 3 cycles
  • 2 = 2 cycles
  • 3 = 8 cycles
[in] SecondAccess 
  • 0 = 8 cycles
  • 1 = 1 cycle
See also:
hel_SysSetWaitState0#, hel_SysSetWaitState1


Generated on Mon Apr 9 16:39:01 2007 for HEL Library by  doxygen 1.5.1