add the hal-side implementation

this call works either on bare iron or in a xous context
This commit is contained in:
bunnie 2025-06-07 02:45:59 +08:00
parent c24bb3a450
commit c48c97ebdd

View file

@ -165,6 +165,12 @@ impl UdmaGlobalConfig for GlobalConfig {
}
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 ------------------------------------
pub(crate) const CFG_EN: u32 = 0b01_0000; // start a transfer