mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 16:21:33 +11:00
fix ewram name
This commit is contained in:
parent
e35bfd0636
commit
7c752b2e97
|
@ -417,11 +417,11 @@ mod test {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[link_section = ".ewram"]
|
#[link_section = ".ewram"]
|
||||||
static mut EWART_TEST: u32 = 5;
|
static mut EWRAM_TEST: u32 = 5;
|
||||||
#[test_case]
|
#[test_case]
|
||||||
fn ewram_static_test(_gba: &mut Gba) {
|
fn ewram_static_test(_gba: &mut Gba) {
|
||||||
unsafe {
|
unsafe {
|
||||||
let ewram_ptr = addr_of_mut!(EWART_TEST);
|
let ewram_ptr = addr_of_mut!(EWRAM_TEST);
|
||||||
let content = ewram_ptr.read_volatile();
|
let content = ewram_ptr.read_volatile();
|
||||||
assert_eq!(content, 5, "expected data in ewram to be 5");
|
assert_eq!(content, 5, "expected data in ewram to be 5");
|
||||||
ewram_ptr.write_volatile(content + 1);
|
ewram_ptr.write_volatile(content + 1);
|
||||||
|
|
Loading…
Reference in a new issue