diff options
author | 2020-10-05 08:40:19 +0000 | |
---|---|---|
committer | 2020-10-05 08:40:19 +0000 | |
commit | dbf9a7f2983fb00aee130305fec0019c12eaef76 (patch) | |
tree | 0422a3712af398436cebfa9f8e6ac422de65dde1 /examples/t-stask-main.rs | |
parent | 04d415c3c6cce7f763decdf02104d827f2e4de7c (diff) | |
parent | 95503b6bdff3f392450d1972b0c499b79a9c2092 (diff) | |
download | rtic-dbf9a7f2983fb00aee130305fec0019c12eaef76.tar.gz rtic-dbf9a7f2983fb00aee130305fec0019c12eaef76.tar.zst rtic-dbf9a7f2983fb00aee130305fec0019c12eaef76.zip |
Merge #368
368: Mod over const r=korken89 a=AfoHT
Related [RFC](https://github.com/rtic-rs/rfcs/pull/34)
Dependent on [rtic-syntax-PR30](https://github.com/rtic-rs/rtic-syntax/pull/30)
~~Currently using my own dev-branch~~
Co-authored-by: Henrik Tjäder <henrik@tjaders.com>
Diffstat (limited to 'examples/t-stask-main.rs')
-rw-r--r-- | examples/t-stask-main.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/t-stask-main.rs b/examples/t-stask-main.rs index f2709404..3e650f60 100644 --- a/examples/t-stask-main.rs +++ b/examples/t-stask-main.rs @@ -7,14 +7,14 @@ use cortex_m_semihosting::debug; use panic_semihosting as _; #[rtic::app(device = lm3s6965)] -const APP: () = { - #[init(spawn = [main])] +mod app { + #[init(spawn = [taskmain])] fn init(cx: init::Context) { - cx.spawn.main().ok(); + cx.spawn.taskmain().ok(); } #[task] - fn main(_: main::Context) { + fn taskmain(_: taskmain::Context) { debug::exit(debug::EXIT_SUCCESS); } @@ -24,4 +24,4 @@ const APP: () = { extern "C" { fn SSI0(); } -}; +} |