From 2c99b32e5afb301d1ef42a849ef26d377f20ecd7 Mon Sep 17 00:00:00 2001 From: bunnie Date: Sat, 7 Jun 2025 02:46:42 +0800 Subject: [PATCH] add an API opcode for messaging the cramium_hal_service in the Xous context, because the IRQ banks are owned by a global object, not every server can simply refer to the IRQ bits by just dereferencing a pointer. Instead, it needs to send a message to the cram_hal_service with an API number which then catches this and does the dereference on behalf of the caller. --- libs/cramium-api/src/api.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/cramium-api/src/api.rs b/libs/cramium-api/src/api.rs index 3eed7e1a8..7d2a073a0 100644 --- a/libs/cramium-api/src/api.rs +++ b/libs/cramium-api/src/api.rs @@ -36,6 +36,8 @@ pub enum HalOpcode { ConfigureUdmaClock = 7, // blocking scalar ConfigureUdmaEvent = 8, + // blocking scalar + UdmaIrqStatusBits = 16, /// I2C operations I2c = 9,