Skip to main content

sram

Attribute Macro sram 

#[sram]
Available on crate feature pak only.
Expand description

Place a value at the base of an SRAM bank.

#[sram(0)]
static FILE: Save;

The type must derive zerocopy::FromBytes and the bank number is required. See the sram module of gb-pak for both.