56 releases

0.9.55 Apr 1, 2024
0.9.54 Feb 6, 2024
0.9.53 Jan 14, 2024
0.9.52 Dec 25, 2023
0.9.21 Nov 26, 2022

#3 in #suspend

Download history 43/week @ 2023-12-25 12/week @ 2024-01-08 33/week @ 2024-02-05 7/week @ 2024-02-12 8/week @ 2024-02-19 34/week @ 2024-02-26 13/week @ 2024-03-04 17/week @ 2024-03-11 8/week @ 2024-03-18 224/week @ 2024-04-01

250 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

~2.5MB
~57K SLoC