mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-04 04:27:34 +00:00
reformat busy statement for easier debug
This commit is contained in:
parent
4a99341269
commit
0c5fde7fc2
1 changed files with 5 additions and 1 deletions
|
|
@ -415,6 +415,10 @@ pub trait Udma {
|
|||
}
|
||||
fn udma_busy(&self, bank: Bank) -> bool {
|
||||
// Safety: only safe when used in the context of UDMA registers.
|
||||
unsafe { self.csr().base().add(bank as usize).add(DmaReg::Saddr.into()).read_volatile() != 0 }
|
||||
unsafe {
|
||||
let saddr = self.csr().base().add(bank as usize).add(DmaReg::Saddr.into()).read_volatile();
|
||||
// crate::println!("brx: {:x}", saddr);
|
||||
saddr != 0
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue