Skip to content

Commit

Permalink
fix ewram name (#541)
Browse files Browse the repository at this point in the history
- [ ] Changelog updated / no changelog update needed
  • Loading branch information
corwinkuiper authored Jan 13, 2024
2 parents 156fe0f + 7c752b2 commit 863afbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions agb/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 863afbb

Please sign in to comment.