yarr-common 0.0.0

Toy real-time operating system
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#[repr(C)]
#[derive(Debug, PartialEq, Eq, PartialOrd, Ord)]
#[allow(dead_code)]
pub enum Sleep {
    Ticks(u64),
    Until(u64),
}

#[repr(C)]
#[derive(Debug, PartialEq, Eq, PartialOrd, Ord)]
#[allow(dead_code)]
pub enum State {
    Running,
    Waiting,
    Sleeping(Sleep),
}