rtos 0.0.1

Rust flavoured no_std RTOS, Coming Soon™
Documentation
enum Priority {
    Low,
    BelowNormal,
    Normal,
    AboveNormal,
    High,
    Realtime,
}

pub struct TaskHandle {}

pub struct Builder {
    stack_size: u32,
    priority: Priority,
}

impl Default for Builder {
    fn default() -> Self {
        Self {
            stack_size: 1024,
            priority: Priority::Normal,
        }
    }
}

impl Builder {
    pub fn new() -> Self {
        Self::default()
    }

    pub fn spawn(&self, entrypoint: impl FnOnce() -> ()) -> TaskHandle {
        TaskHandle {}
    }
}

pub fn spawn(entrypoint: impl FnOnce() -> ()) -> TaskHandle {
    Builder::new().spawn(entrypoint)
}