enable susres API in bao1x

this will require a version bump in production
This commit is contained in:
bunnie 2025-12-15 17:59:45 +08:00
parent 8dc1e9c837
commit 6a77a301fb
2 changed files with 2 additions and 1 deletions

View file

@ -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 = []

View file

@ -15,7 +15,7 @@ pub struct Susres {
suspend_cb_sid: Option<xous::SID>,
}
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`