diff options
| author | Henrik Tjäder <henrik@tjaders.com> | 2020-04-22 10:58:14 +0000 |
|---|---|---|
| committer | Henrik Tjäder <henrik@tjaders.com> | 2020-09-25 14:29:34 +0000 |
| commit | 8df2ec11b0ee3209678dcc1b1a5baa479fa1dfe5 (patch) | |
| tree | 832c0e11695545449904835f2fb8f57bf086407a /examples/shared-with-init.rs | |
| parent | 4d61437bb4debea5adc578ee072bff3619d8077b (diff) | |
Examples using mod instead of const
Diffstat (limited to 'examples/shared-with-init.rs')
| -rw-r--r-- | examples/shared-with-init.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/shared-with-init.rs b/examples/shared-with-init.rs index bd55f7e..03391bd 100644 --- a/examples/shared-with-init.rs +++ b/examples/shared-with-init.rs @@ -13,7 +13,7 @@ use rtic::app; pub struct MustBeSend; #[app(device = lm3s6965)] -const APP: () = { +mod APP { struct Resources { #[init(None)] shared: Option<MustBeSend>, @@ -37,4 +37,4 @@ const APP: () = { debug::exit(debug::EXIT_SUCCESS); } } -}; +} |
