mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-17 08:40:52 +00:00
add the hal-side implementation
this call works either on bare iron or in a xous context
This commit is contained in:
parent
c24bb3a450
commit
c48c97ebdd
1 changed files with 6 additions and 0 deletions
|
|
@ -165,6 +165,12 @@ impl UdmaGlobalConfig for GlobalConfig {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn reset(&self, peripheral: PeriphId) { self.reset(peripheral); }
|
fn reset(&self, peripheral: PeriphId) { self.reset(peripheral); }
|
||||||
|
|
||||||
|
fn irq_status_bits(&self, bank: IrqBank) -> u32 {
|
||||||
|
match bank {
|
||||||
|
IrqBank::I2c => self.i2c_irq.r(utralib::utra::irqarray7::EV_STATUS),
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// --------------------------------- DMA channel ------------------------------------
|
// --------------------------------- DMA channel ------------------------------------
|
||||||
pub(crate) const CFG_EN: u32 = 0b01_0000; // start a transfer
|
pub(crate) const CFG_EN: u32 = 0b01_0000; // start a transfer
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue