mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-22 07:06:41 +11:00
fix ewram name
This commit is contained in:
parent
e35bfd0636
commit
7c752b2e97
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue