Crates.io | xous-api-susres |
lib.rs | xous-api-susres |
version | 0.9.59 |
source | src |
created_at | 2022-10-02 18:08:07.049394 |
updated_at | 2024-06-26 16:27:43.069078 |
description | Manager of suspend/resume operations |
homepage | https://betrusted.io/xous-book/ |
repository | https://github.com/betrusted-io/xous-core/ |
max_upload_size | |
id | 678500 |
size | 23,375 |
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.