xous-api-susres

Crates.ioxous-api-susres
lib.rsxous-api-susres
version0.9.61
sourcesrc
created_at2022-10-02 18:08:07.049394
updated_at2024-09-23 14:06:42.070687
descriptionManager of suspend/resume operations
homepagehttps://betrusted.io/xous-book/
repositoryhttps://github.com/betrusted-io/xous-core/
max_upload_size
id678500
size23,528
bunnie (bunnie)

documentation

README

Xous Api: susres

This crate defines the Xous suspend/resume API.

The suspend/resume API is responsible for sequencing events before a system powers down, such that all of the SoC hardware blocks will lose state, but the RAM will retain its contents.

Every service that contains hardware state which can be lost when the SoC is powered down must register with the sequencer, and it must atomically back up its hardware state to battery-backed RAM and then call suspend_until_resume, which will block until power is restored. Once power is restored, the service should copy the hardware state out of battery-backed RAM and resume operations.

The API also contains hooks for initiating the suspend process, and for rebooting the device.

Commit count: 7672

cargo fmt