rtfm-syntax 0.4.0

The Real Time for The Masses (RTFM) meta language
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#![no_main]

#[mock::app(cores = 2, parse_cores)]
const APP: () = {
    struct Resources {
        a: u32,
        b: u32,
    }

    #[init(core = 0, late = [a])]
    fn init(_: init::Context) -> init::LateResources {}

    #[init(core = 1, late = [a])]
    fn init(_: init::Context) -> init::LateResources {}
};