aboutsummaryrefslogtreecommitdiff
path: root/examples/only-shared-access.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/only-shared-access.rs')
-rw-r--r--examples/only-shared-access.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/only-shared-access.rs b/examples/only-shared-access.rs
index c022b037..fbc7bfd4 100644
--- a/examples/only-shared-access.rs
+++ b/examples/only-shared-access.rs
@@ -10,7 +10,7 @@ use lm3s6965::Interrupt;
use panic_semihosting as _;
#[rtic::app(device = lm3s6965)]
-const APP: () = {
+mod APP {
struct Resources {
key: u32,
}
@@ -35,4 +35,4 @@ const APP: () = {
fn uart1(cx: uart1::Context) {
hprintln!("UART1(key = {:#x})", cx.resources.key).unwrap();
}
-};
+}