diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-09-04 07:50:13 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-04 07:50:13 +0000 |
| commit | 7506bd8ae0ba335fc058c2138438fab5f20f6dab (patch) | |
| tree | fe65b335b19171370bd6be0bd5cd6b776a1d6110 /heterogeneous/examples/x-init.rs | |
| parent | c5e6d1fa49e3596227a8ee8fe89e2e4f66db3169 (diff) | |
| parent | ad2b80907899cc335edcebfc77ae4b4b51272b87 (diff) | |
Merge #355
355: Multi-core removal r=korken89 a=AfoHT
Dependent on https://github.com/rtic-rs/rtic-syntax/pull/27
With the same reasoning as ^^
For now the testing is done against my rtic-syntax/multiremove-branch, but before we merge it should corrected.
Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
Diffstat (limited to 'heterogeneous/examples/x-init.rs')
| -rw-r--r-- | heterogeneous/examples/x-init.rs | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/heterogeneous/examples/x-init.rs b/heterogeneous/examples/x-init.rs deleted file mode 100644 index 20601b1..0000000 --- a/heterogeneous/examples/x-init.rs +++ /dev/null @@ -1,26 +0,0 @@ -//! [compile-pass] Split initialization of late resources - -#![deny(unsafe_code)] -#![deny(warnings)] -#![no_main] -#![no_std] - -use panic_halt as _; - -#[rtic::app(cores = 2, device = heterogeneous)] -const APP: () = { - struct Resources { - x: u32, - y: u32, - } - - #[init(core = 0, late = [x])] - fn a(_: a::Context) -> a::LateResources { - a::LateResources { x: 0 } - } - - #[init(core = 1)] - fn b(_: b::Context) -> b::LateResources { - b::LateResources { y: 0 } - } -}; |
