#xous

xous-api-susres

Manager of suspend/resume operations

52 releases

new 0.9.51 Dec 1, 2023
0.9.50 Oct 31, 2023
0.9.47 Sep 12, 2023
0.9.44 Jul 19, 2023
0.9.21 Nov 26, 2022
Download history 69/week @ 2023-08-10 79/week @ 2023-08-17 121/week @ 2023-08-24 15/week @ 2023-08-31 144/week @ 2023-09-07 62/week @ 2023-09-14 113/week @ 2023-09-21 83/week @ 2023-09-28 78/week @ 2023-10-05 88/week @ 2023-10-12 105/week @ 2023-10-19 82/week @ 2023-10-26 55/week @ 2023-11-02 58/week @ 2023-11-09 91/week @ 2023-11-16 102/week @ 2023-11-23

316 downloads per month
Used in 3 crates

MIT/Apache

2.5MB
42K SLoC

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.

Dependencies

~2.5MB
~52K SLoC