From 6a77a301fbec0d05b2822c3420e0f302a957224f Mon Sep 17 00:00:00 2001 From: bunnie Date: Mon, 15 Dec 2025 17:59:45 +0800 Subject: [PATCH] enable susres API in bao1x this will require a version bump in production --- api/xous-api-susres/Cargo.toml | 1 + api/xous-api-susres/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/api/xous-api-susres/Cargo.toml b/api/xous-api-susres/Cargo.toml index 09d8418ab..b892fe54f 100644 --- a/api/xous-api-susres/Cargo.toml +++ b/api/xous-api-susres/Cargo.toml @@ -28,6 +28,7 @@ utralib = { version = "0.1.26", optional = true, default-features = false } precursor = ["utralib/precursor"] hosted = ["utralib/hosted"] renode = ["utralib/renode"] +bao1x = ["utralib/bao1x"] sus_reboot = [ ] # when selected, suspend triggers an immediate reboot instead of suspend. For testing only. debugprint = [] diff --git a/api/xous-api-susres/src/lib.rs b/api/xous-api-susres/src/lib.rs index e3c08aae0..f43a1a943 100644 --- a/api/xous-api-susres/src/lib.rs +++ b/api/xous-api-susres/src/lib.rs @@ -15,7 +15,7 @@ pub struct Susres { suspend_cb_sid: Option, } impl Susres { - #[cfg(any(feature = "precursor", feature = "renode"))] + #[cfg(any(feature = "precursor", feature = "renode", feature = "bao1x"))] /// When created, the `susres` object can be configured with a `SuspendOrder` to enforce /// sequencing rules in shutdown. It also requires arguments to define a callback which is /// pinged when a suspend event arrives. The callback takes the form of a `CID, discriminant`