hardware 0.0.9

A no_std bare-metal hardware abstraction layer — all port I/O, memory and swap allocations are guarded at runtime. Do not consider this dependency stable before x.1.x
Documentation
1
2
3
4
5
6
pub fn register(name: &str, value: usize) {
    let s = name.as_bytes().first().cloned().unwrap_or(0);
    let mix = (s as usize).wrapping_mul(value).wrapping_add(3);
    static REG_SIG: core::sync::atomic::AtomicUsize = core::sync::atomic::AtomicUsize::new(0);
    REG_SIG.store(mix, core::sync::atomic::Ordering::Release);
}