opentitanlib/ownership/
mod.rsuse std::sync::atomic::{AtomicBool, Ordering};
mod application_key;
mod flash;
mod flash_info;
mod misc;
pub mod owner;
mod rescue;
pub use application_key::{ApplicationKeyDomain, OwnerApplicationKey};
pub use flash::{FlashFlags, OwnerFlashConfig, OwnerFlashRegion};
pub use flash_info::{OwnerFlashInfoConfig, OwnerInfoPage};
pub use misc::{KeyMaterial, OwnershipKeyAlg, TlvHeader, TlvTag};
pub use owner::{OwnerBlock, OwnerConfigItem, SramExecMode};
pub use rescue::{CommandTag, OwnerRescueConfig, RescueType};
pub struct GlobalFlags;
static DEBUG: AtomicBool = AtomicBool::new(false);
impl GlobalFlags {
pub fn set_debug(v: bool) {
DEBUG.store(v, Ordering::Relaxed);
}
pub fn not_debug<T>(_: &T) -> bool {
!DEBUG.load(Ordering::Relaxed)
}
}