diff options
| author | Henrik Tjäder <henrik@tjaders.com> | 2020-09-01 17:09:25 +0000 |
|---|---|---|
| committer | Henrik Tjäder <henrik@tjaders.com> | 2020-09-01 17:48:53 +0000 |
| commit | d2151ccbf935da23d44c183f1ddb185c7ad83bfa (patch) | |
| tree | 8136a672825057484e201aa8d2a609cf3773672a /homogeneous/examples/x-init-2.rs | |
| parent | d06cf91acc1126e66002f8884b1e7b7a65a9b24a (diff) | |
Remove all of heterogeneous and homogeneous modules
Diffstat (limited to 'homogeneous/examples/x-init-2.rs')
| -rw-r--r-- | homogeneous/examples/x-init-2.rs | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/homogeneous/examples/x-init-2.rs b/homogeneous/examples/x-init-2.rs deleted file mode 100644 index 11caacd..0000000 --- a/homogeneous/examples/x-init-2.rs +++ /dev/null @@ -1,39 +0,0 @@ -//! [compile-pass] Cross initialization of late resources - -#![deny(unsafe_code)] -#![deny(warnings)] -#![no_main] -#![no_std] - -use panic_halt as _; - -#[rtic::app(cores = 2, device = homogeneous)] -const APP: () = { - struct Resources { - // owned by core #1 but initialized by core #0 - x: u32, - - // owned by core #0 but initialized by core #1 - y: u32, - } - - #[init(core = 0, late = [x])] - fn a(_: a::Context) -> a::LateResources { - a::LateResources { x: 0 } - } - - #[idle(core = 0, resources = [y])] - fn b(_: b::Context) -> ! { - loop {} - } - - #[init(core = 1)] - fn c(_: c::Context) -> c::LateResources { - c::LateResources { y: 0 } - } - - #[idle(core = 1, resources = [x])] - fn d(_: d::Context) -> ! { - loop {} - } -}; |
