aboutsummaryrefslogtreecommitdiff
path: root/examples/init.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/init.rs')
-rw-r--r--examples/init.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/init.rs b/examples/init.rs
index aaf71f97..ea543338 100644
--- a/examples/init.rs
+++ b/examples/init.rs
@@ -23,6 +23,10 @@ mod app {
// Safe access to local `static mut` variable
let _x: &'static mut u32 = X;
+ // Access to the critical section token,
+ // to indicate that this is a critical seciton
+ let _cs_token: bare_metal::CriticalSection = cx.cs;
+
hprintln!("init").unwrap();
debug::exit(debug::EXIT_SUCCESS);