From c48c97ebdda92eeaafe036048cf952aca8aeb32b Mon Sep 17 00:00:00 2001 From: bunnie Date: Sat, 7 Jun 2025 02:45:59 +0800 Subject: [PATCH] add the hal-side implementation this call works either on bare iron or in a xous context --- libs/cramium-hal/src/udma/mod.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libs/cramium-hal/src/udma/mod.rs b/libs/cramium-hal/src/udma/mod.rs index 3bd8b60ad..8cb6ca337 100644 --- a/libs/cramium-hal/src/udma/mod.rs +++ b/libs/cramium-hal/src/udma/mod.rs @@ -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