Game Pak » Game Pak SRAM module

Allows game or application data to be saved when the GBA is turned off.

Files

file bn_config_sram.h
file bn_sram.h
file bn_sram_wait_state.h

Namespaces

namespace bn
Main Butano namespace.
namespace bn::sram
SRAM related functions.

Defines

#define BN_CFG_SRAM_WAIT_STATE
#define BN_SRAM_WAIT_STATE_4
#define BN_SRAM_WAIT_STATE_3
#define BN_SRAM_WAIT_STATE_2
#define BN_SRAM_WAIT_STATE_8

Define documentation

#define BN_CFG_SRAM_WAIT_STATE

Specifies SRAM access time in clock cycles.

Values not specified in BN_SRAM_WAIT_STATE_* macros are not allowed.

#define BN_SRAM_WAIT_STATE_4

SRAM access time is 4+1 clock cycles.

#define BN_SRAM_WAIT_STATE_3

SRAM access time is 3+1 clock cycles.

#define BN_SRAM_WAIT_STATE_2

SRAM access time is 2+1 clock cycles.

#define BN_SRAM_WAIT_STATE_8

SRAM access time is 8+1 clock cycles.