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/schedule.rs | |
| parent | 4d61437bb4debea5adc578ee072bff3619d8077b (diff) | |
Examples using mod instead of const
Diffstat (limited to 'examples/schedule.rs')
| -rw-r--r-- | examples/schedule.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/schedule.rs b/examples/schedule.rs index 70a7a5e..f2e7ed8 100644 --- a/examples/schedule.rs +++ b/examples/schedule.rs @@ -12,7 +12,7 @@ use rtic::cyccnt::{Instant, U32Ext as _}; // NOTE: does NOT work on QEMU! #[rtic::app(device = lm3s6965, monotonic = rtic::cyccnt::CYCCNT)] -const APP: () = { +mod APP { #[init(schedule = [foo, bar])] fn init(mut cx: init::Context) { // Initialize (enable) the monotonic timer (CYCCNT) @@ -50,4 +50,4 @@ const APP: () = { extern "C" { fn SSI0(); } -}; +} |
