mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-09 16:41:33 +11:00
Fix remaining spelling errors in agb
This commit is contained in:
parent
45431615dc
commit
deb907b9eb
|
@ -66,7 +66,7 @@ bitflags! {
|
||||||
|
|
||||||
const BUTTON_INPUT: *mut u16 = (0x04000130) as *mut u16;
|
const BUTTON_INPUT: *mut u16 = (0x04000130) as *mut u16;
|
||||||
|
|
||||||
// const BUTTON_INTURRUPT: *mut u16 = (0x04000132) as *mut u16;
|
// const BUTTON_INTERRUPT: *mut u16 = (0x04000132) as *mut u16;
|
||||||
|
|
||||||
/// Helper to make it easy to get the current state of the GBA's buttons.
|
/// Helper to make it easy to get the current state of the GBA's buttons.
|
||||||
///
|
///
|
||||||
|
|
|
@ -312,7 +312,7 @@ where
|
||||||
pub struct VBlank {}
|
pub struct VBlank {}
|
||||||
|
|
||||||
impl VBlank {
|
impl VBlank {
|
||||||
/// Handles setting up everything reqired to be able to use the wait for
|
/// Handles setting up everything required to be able to use the wait for
|
||||||
/// interrupt syscall.
|
/// interrupt syscall.
|
||||||
#[must_use]
|
#[must_use]
|
||||||
pub fn get() -> Self {
|
pub fn get() -> Self {
|
||||||
|
|
|
@ -437,11 +437,11 @@ mod test {
|
||||||
let address = iwram_ptr as usize;
|
let address = iwram_ptr as usize;
|
||||||
assert!(
|
assert!(
|
||||||
(0x0300_0000..0x0300_8000).contains(&address),
|
(0x0300_0000..0x0300_8000).contains(&address),
|
||||||
"iwram is located beween 0x0300_0000 and 0x0300_8000, but was actually found to be at {:#010X}",
|
"iwram is located between 0x0300_0000 and 0x0300_8000, but was actually found to be at {:#010X}",
|
||||||
address
|
address
|
||||||
);
|
);
|
||||||
let c = iwram_ptr.read_volatile();
|
let c = iwram_ptr.read_volatile();
|
||||||
assert_eq!(c, 9, "exctected content to be 9");
|
assert_eq!(c, 9, "expected content to be 9");
|
||||||
iwram_ptr.write_volatile(u32::MAX);
|
iwram_ptr.write_volatile(u32::MAX);
|
||||||
let c = iwram_ptr.read_volatile();
|
let c = iwram_ptr.read_volatile();
|
||||||
assert_eq!(c, u32::MAX, "expected content to be {}", u32::MAX);
|
assert_eq!(c, u32::MAX, "expected content to be {}", u32::MAX);
|
||||||
|
@ -460,7 +460,7 @@ mod test {
|
||||||
address
|
address
|
||||||
);
|
);
|
||||||
let c = iwram_ptr.read_volatile();
|
let c = iwram_ptr.read_volatile();
|
||||||
assert_eq!(c, 9, "exctected content to be 9");
|
assert_eq!(c, 9, "expected content to be 9");
|
||||||
iwram_ptr.write_volatile(u32::MAX);
|
iwram_ptr.write_volatile(u32::MAX);
|
||||||
let c = iwram_ptr.read_volatile();
|
let c = iwram_ptr.read_volatile();
|
||||||
assert_eq!(c, u32::MAX, "expected content to be {}", u32::MAX);
|
assert_eq!(c, u32::MAX, "expected content to be {}", u32::MAX);
|
||||||
|
|
Loading…
Reference in a new issue