mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
define backup flags
This commit is contained in:
parent
39eb15003d
commit
a5303a707f
1 changed files with 15 additions and 0 deletions
|
|
@ -18,6 +18,8 @@ pub mod signatures;
|
||||||
pub use offsets::*;
|
pub use offsets::*;
|
||||||
pub mod clocks;
|
pub mod clocks;
|
||||||
pub mod pubkeys;
|
pub mod pubkeys;
|
||||||
|
use arbitrary_int::u31;
|
||||||
|
use bitbybit::bitfield;
|
||||||
pub use clocks::*;
|
pub use clocks::*;
|
||||||
|
|
||||||
/// UF2 Family ID. Randomly generated, no collisions with the known list, still to be merged
|
/// UF2 Family ID. Randomly generated, no collisions with the known list, still to be merged
|
||||||
|
|
@ -44,6 +46,19 @@ pub const SERVER_NAME_KBD: &str = "_Matrix keyboard driver_";
|
||||||
/// circular dependencies on the IFRAM block.
|
/// circular dependencies on the IFRAM block.
|
||||||
pub const SERVER_NAME_BAO1X_HAL: &str = "_bao1x-SoC HAL_";
|
pub const SERVER_NAME_BAO1X_HAL: &str = "_bao1x-SoC HAL_";
|
||||||
|
|
||||||
|
/// Flags register in the backup register bank. Used to track system state between soft resets.
|
||||||
|
#[bitfield(u32)]
|
||||||
|
#[derive(PartialEq, Eq, Debug)]
|
||||||
|
pub struct BackupFlags {
|
||||||
|
#[bits(1..=31, rw)]
|
||||||
|
reserved: u31,
|
||||||
|
/// When `false`, indicates that the time in the RTC register is not synchronized to the offset
|
||||||
|
/// that is read from disk. Upon first encounter with an external time source, the offset should
|
||||||
|
/// be captured and recorded to disk.
|
||||||
|
#[bit(0, rw)]
|
||||||
|
rtc_synchronized: bool,
|
||||||
|
}
|
||||||
|
|
||||||
pub mod camera {
|
pub mod camera {
|
||||||
#[derive(Clone, Copy)]
|
#[derive(Clone, Copy)]
|
||||||
pub enum Resolution {
|
pub enum Resolution {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue