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/ramfunc.rs | |
| parent | 4d61437bb4debea5adc578ee072bff3619d8077b (diff) | |
Examples using mod instead of const
Diffstat (limited to 'examples/ramfunc.rs')
| -rw-r--r-- | examples/ramfunc.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/ramfunc.rs b/examples/ramfunc.rs index 1f95d49..cfe22e3 100644 --- a/examples/ramfunc.rs +++ b/examples/ramfunc.rs @@ -9,7 +9,7 @@ use cortex_m_semihosting::{debug, hprintln}; use panic_semihosting as _; #[rtic::app(device = lm3s6965)] -const APP: () = { +mod APP { #[init(spawn = [bar])] fn init(c: init::Context) { c.spawn.bar().unwrap(); @@ -38,4 +38,4 @@ const APP: () = { #[link_section = ".data.UART1"] fn UART1(); } -}; +} |
