fix ewram name

This commit is contained in:
Corwin 2024-01-13 14:34:59 +00:00
parent e35bfd0636
commit 7c752b2e97
No known key found for this signature in database

View file

@ -417,11 +417,11 @@ mod test {
}
#[link_section = ".ewram"]
static mut EWART_TEST: u32 = 5;
static mut EWRAM_TEST: u32 = 5;
#[test_case]
fn ewram_static_test(_gba: &mut Gba) {
unsafe {
let ewram_ptr = addr_of_mut!(EWART_TEST);
let ewram_ptr = addr_of_mut!(EWRAM_TEST);
let content = ewram_ptr.read_volatile();
assert_eq!(content, 5, "expected data in ewram to be 5");
ewram_ptr.write_volatile(content + 1);