aboutsummaryrefslogtreecommitdiff
path: root/examples/cfg.rs
diff options
context:
space:
mode:
authorHenrik Tjäder <henrik@tjaders.com>2020-04-22 10:58:14 +0000
committerHenrik Tjäder <henrik@tjaders.com>2020-09-25 14:29:34 +0000
commit8df2ec11b0ee3209678dcc1b1a5baa479fa1dfe5 (patch)
tree832c0e11695545449904835f2fb8f57bf086407a /examples/cfg.rs
parent4d61437bb4debea5adc578ee072bff3619d8077b (diff)
Examples using mod instead of const
Diffstat (limited to 'examples/cfg.rs')
-rw-r--r--examples/cfg.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/cfg.rs b/examples/cfg.rs
index 8eeeb2a..626181d 100644
--- a/examples/cfg.rs
+++ b/examples/cfg.rs
@@ -11,7 +11,7 @@ use cortex_m_semihosting::hprintln;
use panic_semihosting as _;
#[rtic::app(device = lm3s6965)]
-const APP: () = {
+mod APP {
struct Resources {
#[cfg(debug_assertions)] // <- `true` when using the `dev` profile
#[init(0)]
@@ -66,4 +66,4 @@ const APP: () = {
fn SSI0();
fn QEI0();
}
-};
+}