rt 0.19.1

A real-time operating system capable of full preemption
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![no_main]
#![cfg_attr(target_os = "none", no_std)]

fn simple(arg: usize) {
    rt::task::drop_privilege();
    for _ in 0..100 {
        rt::task::yield_now();
    }

    if arg == 1 {
        rt::exit();
    }
}

rt::task!(simple(0), rt::stack::MIN, 0);
rt::task!(simple(1), rt::stack::MIN, 0);