diff options
author | 2020-04-22 10:58:14 +0000 | |
---|---|---|
committer | 2020-09-25 14:29:34 +0000 | |
commit | 8df2ec11b0ee3209678dcc1b1a5baa479fa1dfe5 (patch) | |
tree | 832c0e11695545449904835f2fb8f57bf086407a /examples/t-spawn.rs | |
parent | 4d61437bb4debea5adc578ee072bff3619d8077b (diff) | |
download | rtic-8df2ec11b0ee3209678dcc1b1a5baa479fa1dfe5.tar.gz rtic-8df2ec11b0ee3209678dcc1b1a5baa479fa1dfe5.tar.zst rtic-8df2ec11b0ee3209678dcc1b1a5baa479fa1dfe5.zip |
Examples using mod instead of const
Diffstat (limited to 'examples/t-spawn.rs')
-rw-r--r-- | examples/t-spawn.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/t-spawn.rs b/examples/t-spawn.rs index 35831ccf..7a64e1cc 100644 --- a/examples/t-spawn.rs +++ b/examples/t-spawn.rs @@ -8,7 +8,7 @@ use panic_halt as _; #[rtic::app(device = lm3s6965)] -const APP: () = { +mod APP { #[init(spawn = [foo, bar, baz])] fn init(c: init::Context) { let _: Result<(), ()> = c.spawn.foo(); @@ -60,4 +60,4 @@ const APP: () = { extern "C" { fn SSI0(); } -}; +} |