2 releases
0.1.1 | Jun 2, 2022 |
---|---|
0.1.0 | Jun 1, 2022 |
#1047 in Embedded development
12KB
207 lines
embedded-flight-scheduler
Embedded flight real time scheduler library
For more check out the scheduler example on GitHub.
let clock = StandardClock::default();
let a: Task<(), Error> = Task::new(|_| {
dbg!("A");
Ok(())
});
let b: Task<(), Error> = Task::new(|_| {
dbg!("B");
Ok(())
});
let mut tasks = [a.with_hz(2.), b.with_hz(1.)];
let mut scheduler = Scheduler::new(&mut tasks, clock, 400);
loop {
scheduler.run(&mut ())?;
}
Dependencies
~605KB
~11K SLoC