63 releases

new 0.9.62 Dec 2, 2024
0.9.61 Sep 23, 2024
0.9.59 Jun 26, 2024
0.9.54 Feb 6, 2024
0.9.21 Nov 26, 2022

#543 in Hardware support

Download history 2/week @ 2024-08-17 1/week @ 2024-08-24 1/week @ 2024-08-31 1/week @ 2024-09-07 20/week @ 2024-09-14 452/week @ 2024-09-21 74/week @ 2024-09-28 15/week @ 2024-10-05 10/week @ 2024-10-12 7/week @ 2024-10-19 1/week @ 2024-10-26 10/week @ 2024-11-02 7/week @ 2024-11-16 7/week @ 2024-11-23 156/week @ 2024-11-30

172 downloads per month
Used in 3 crates

MIT/Apache

2.5MB
41K 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

~3.5MB
~79K SLoC