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 total_usable_ram() -> usize {
    if let Some(info) = crate::memory::info::detect_memory_info() {
        return info.total_bytes as usize;
    }
    0
}