diff options
author | 2021-07-07 22:50:59 +0200 | |
---|---|---|
committer | 2021-07-07 23:07:09 +0200 | |
commit | 98d2af9d73da56910c8bb6cb662fbc4d609a704a (patch) | |
tree | 46914250a980b9164b2d20cbeb08e126a86cf7ea /examples/extern_spawn.rs | |
parent | 633012190baa0801efc7e3ab2f699778c5038d54 (diff) | |
download | rtic-98d2af9d73da56910c8bb6cb662fbc4d609a704a.tar.gz rtic-98d2af9d73da56910c8bb6cb662fbc4d609a704a.tar.zst rtic-98d2af9d73da56910c8bb6cb662fbc4d609a704a.zip |
Fixing tests
Diffstat (limited to 'examples/extern_spawn.rs')
-rw-r--r-- | examples/extern_spawn.rs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/examples/extern_spawn.rs b/examples/extern_spawn.rs index 275ac539..d035fe7f 100644 --- a/examples/extern_spawn.rs +++ b/examples/extern_spawn.rs @@ -21,11 +21,17 @@ fn foo(_c: app::foo::Context, x: i32, y: u32) { mod app { use crate::foo; + #[shared] + struct Shared {} + + #[local] + struct Local {} + #[init] - fn init(_c: init::Context) -> (init::LateResources, init::Monotonics) { + fn init(_: init::Context) -> (Shared, Local, init::Monotonics) { foo::spawn(1, 2).unwrap(); - (init::LateResources {}, init::Monotonics()) + (Shared {}, Local {}, init::Monotonics()) } extern "Rust" { |