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
7
8
9
10
11
12
13
14
pub struct GenericTpu;

impl GenericTpu {
    pub fn probe() -> Option<Self> {
        Some(GenericTpu)
    }

    pub fn init(&mut self) -> bool {
        let ok = crate::tpu::device::register_irq_vector(0x20usize);
        debug_assert!(ok);
        crate::interrupt::Controller::enable_irq(0);
        true
    }
}